Lines Matching +full:acpi +full:- +full:hid

5  * SPDX-License-Identifier: Apache-2.0
22 #include <zephyr/acpi/acpi.h>
108 * @param bar_index 0-based BAR index
201 &bar->phys_addr)) { in pcie_get_bar()
205 bar->phys_addr = PCIE_CONF_BAR_ADDR(phys_addr); in pcie_get_bar()
207 bar->size = size & ~(size-1); in pcie_get_bar()
222 * are order-preserving with respect to the endpoint BARs: e.g., index 0
223 * will return the lowest-numbered BAR on the endpoint.
226 * @param index (0-based) index
239 (index > 0) && (reg <= PCIE_CONF_BAR5); reg++, index--) { in pcie_probe_bar()
251 return pcie_get_bar(bdf, reg - PCIE_CONF_BAR0, bar, io); in pcie_probe_bar()
298 * IRQ from acpi. But if it is configurable then we allocate irq dynamically. in pcie_alloc_irq()
373 return ((opt->flags & flag) != 0U); in scan_flag()
409 if (do_cb && !opt->cb(bdf, id, opt->cb_data)) { in scan_dev()
419 /* Only function 0 is valid for non-multifunction devices */ in scan_dev()
444 CHECKIF(opt->cb == NULL) { in pcie_scan()
445 return -EINVAL; in pcie_scan()
450 if (opt->bus == 0 && scan_flag(opt, PCIE_SCAN_RECURSIVE) && multi) { in pcie_scan()
465 scan_bus(opt->bus, opt); in pcie_scan()
481 if (dev->bdf != PCIE_BDF_NONE) { in pcie_dev_cb()
485 if (dev->id != id) { in pcie_dev_cb()
491 if (dev->class_rev == (class_rev & dev->class_rev_mask)) { in pcie_dev_cb()
492 dev->bdf = bdf; in pcie_dev_cb()
493 dev->class_rev = class_rev; in pcie_dev_cb()
494 data->found++; in pcie_dev_cb()
500 return (data->found != data->max_dev); in pcie_dev_cb()
513 const char *hid, *uid = ACPI_DT_UID(DT_DRV_INST(0)); in pcie_init() local
517 "No HID property for PCIe devicetree node"); in pcie_init()
518 hid = ACPI_DT_HID(DT_DRV_INST(0)); in pcie_init()
520 ret = acpi_legacy_irq_init(hid, uid); in pcie_init()
524 __ASSERT(ret == -ENOENT, "Error retrieve interrupt routing table!"); in pcie_init()