Lines Matching +full:acpi +full:- +full:hid
5 * SPDX-License-Identifier: Apache-2.0
22 #include <zephyr/acpi/acpi.h>
125 * @param bar_index 0-based BAR index
218 &bar->phys_addr)) { in pcie_get_bar()
222 bar->phys_addr = PCIE_CONF_BAR_ADDR(phys_addr); in pcie_get_bar()
224 bar->size = size & ~(size-1); in pcie_get_bar()
239 * are order-preserving with respect to the endpoint BARs: e.g., index 0
240 * will return the lowest-numbered BAR on the endpoint.
243 * @param index (0-based) index
256 index > 0 && reg <= PCIE_CONF_BAR5; reg++, index--) { in pcie_probe_bar()
268 return pcie_get_bar(bdf, reg - PCIE_CONF_BAR0, bar, io); in pcie_probe_bar()
315 * IRQ from acpi. But if it is configurable then we allocate irq dynamically. in pcie_alloc_irq()
397 if (id == data->id) { in lookup_cb()
398 data->bdf = bdf; in lookup_cb()
424 return ((opt->flags & flag) != 0U); in scan_flag()
460 if (do_cb && !opt->cb(bdf, id, opt->cb_data)) { in scan_dev()
470 /* Only function 0 is valid for non-multifunction devices */ in scan_dev()
495 CHECKIF(opt->cb == NULL) { in pcie_scan()
496 return -EINVAL; in pcie_scan()
501 if (opt->bus == 0 && scan_flag(opt, PCIE_SCAN_RECURSIVE) && multi) { in pcie_scan()
516 scan_bus(opt->bus, opt); in pcie_scan()
532 if (dev->bdf != PCIE_BDF_NONE) { in pcie_dev_cb()
536 if (dev->id != id) { in pcie_dev_cb()
542 if (dev->class_rev == (class_rev & dev->class_rev_mask)) { in pcie_dev_cb()
543 dev->bdf = bdf; in pcie_dev_cb()
544 dev->class_rev = class_rev; in pcie_dev_cb()
545 data->found++; in pcie_dev_cb()
551 return (data->found != data->max_dev); in pcie_dev_cb()
564 const char *hid, *uid = ACPI_DT_UID(DT_DRV_INST(0)); in pcie_init() local
568 "No HID property for PCIe devicetree node"); in pcie_init()
569 hid = ACPI_DT_HID(DT_DRV_INST(0)); in pcie_init()
571 ret = acpi_legacy_irq_init(hid, uid); in pcie_init()
575 __ASSERT(ret == -ENOENT, "Error retrieve interrupt routing table!"); in pcie_init()