Lines Matching +full:entry +full:- +full:method
2 #include "hw/acpi/aml-build.h"
3 #include "hw/pci-host/gpex.h"
13 Aml *method, *crs; in acpi_dsdt_add_pci_route_table() local
47 method = aml_method("_SRS", 1, AML_NOTSERIALIZED); in acpi_dsdt_add_pci_route_table()
48 aml_append(dev_gsi, method); in acpi_dsdt_add_pci_route_table()
55 Aml *method, *UUID, *ifctx, *ifctx1, *elsectx, *buf; in acpi_dsdt_add_pci_osc() local
57 /* Declare an _OSC (OS Control Handoff) method */ in acpi_dsdt_add_pci_osc()
60 method = aml_method("_OSC", 4, AML_NOTSERIALIZED); in acpi_dsdt_add_pci_osc()
61 aml_append(method, in acpi_dsdt_add_pci_osc()
66 * The _OSC interface for a PCI/PCI-X/PCI Express hierarchy is in acpi_dsdt_add_pci_osc()
68 * 33DB4D5B-1FF7-401C-9657-7441C03DD766 in acpi_dsdt_add_pci_osc()
70 UUID = aml_touuid("33DB4D5B-1FF7-401C-9657-7441C03DD766"); in acpi_dsdt_add_pci_osc()
98 aml_append(method, ifctx); in acpi_dsdt_add_pci_osc()
104 aml_append(method, elsectx); in acpi_dsdt_add_pci_osc()
105 aml_append(dev, method); in acpi_dsdt_add_pci_osc()
107 method = aml_method("_DSM", 4, AML_NOTSERIALIZED); in acpi_dsdt_add_pci_osc()
112 * {E5C937D0-3553-4D7A-9117-EA4D19C3434D} in acpi_dsdt_add_pci_osc()
114 UUID = aml_touuid("E5C937D0-3553-4D7A-9117-EA4D19C3434D"); in acpi_dsdt_add_pci_osc()
121 aml_append(method, ifctx); in acpi_dsdt_add_pci_osc()
125 aml_append(method, aml_return(buf)); in acpi_dsdt_add_pci_osc()
126 aml_append(dev, method); in acpi_dsdt_add_pci_osc()
131 int nr_pcie_buses = cfg->ecam.size / PCIE_MMCFG_SIZE_MIN; in acpi_dsdt_add_gpex()
132 Aml *method, *crs, *dev, *rbuf; in acpi_dsdt_add_gpex() local
133 PCIBus *bus = cfg->bus; in acpi_dsdt_add_gpex()
135 CrsRangeEntry *entry; in acpi_dsdt_add_gpex() local
141 QLIST_FOREACH(bus, &bus->child, sibling) { in acpi_dsdt_add_gpex()
152 * 0 - (nr_pcie_buses - 1) is the bus range for the main in acpi_dsdt_add_gpex()
153 * host-bridge and it equals the MIN of the in acpi_dsdt_add_gpex()
154 * busNr defined for pxb-pcie. in acpi_dsdt_add_gpex()
181 acpi_dsdt_add_pci_route_table(dev, cfg->irq, scope, bus_num); in acpi_dsdt_add_gpex()
185 * 1. The resources the pci-brige/pcie-root-port need. in acpi_dsdt_add_gpex()
188 crs = build_crs(PCI_HOST_BRIDGE(BUS(bus)->parent), &crs_range_set, in acpi_dsdt_add_gpex()
189 cfg->pio.base, 0, 0, 0); in acpi_dsdt_add_gpex()
212 acpi_dsdt_add_pci_route_table(dev, cfg->irq, scope, 0); in acpi_dsdt_add_gpex()
214 method = aml_method("_CBA", 0, AML_NOTSERIALIZED); in acpi_dsdt_add_gpex()
215 aml_append(method, aml_return(aml_int(cfg->ecam.base))); in acpi_dsdt_add_gpex()
216 aml_append(dev, method); in acpi_dsdt_add_gpex()
226 0x0000, 0x0000, nr_pcie_buses - 1, 0x0000, in acpi_dsdt_add_gpex()
228 if (cfg->mmio32.size) { in acpi_dsdt_add_gpex()
230 cfg->mmio32.base, in acpi_dsdt_add_gpex()
231 cfg->mmio32.base + cfg->mmio32.size - 1); in acpi_dsdt_add_gpex()
232 for (i = 0; i < crs_range_set.mem_ranges->len; i++) { in acpi_dsdt_add_gpex()
233 entry = g_ptr_array_index(crs_range_set.mem_ranges, i); in acpi_dsdt_add_gpex()
237 entry->base, entry->limit, in acpi_dsdt_add_gpex()
238 0x0000, entry->limit - entry->base + 1)); in acpi_dsdt_add_gpex()
241 if (cfg->pio.size) { in acpi_dsdt_add_gpex()
244 cfg->pio.size - 1); in acpi_dsdt_add_gpex()
245 for (i = 0; i < crs_range_set.io_ranges->len; i++) { in acpi_dsdt_add_gpex()
246 entry = g_ptr_array_index(crs_range_set.io_ranges, i); in acpi_dsdt_add_gpex()
249 AML_ENTIRE_RANGE, 0x0000, entry->base, in acpi_dsdt_add_gpex()
250 entry->limit, cfg->pio.base, in acpi_dsdt_add_gpex()
251 entry->limit - entry->base + 1)); in acpi_dsdt_add_gpex()
254 if (cfg->mmio64.size) { in acpi_dsdt_add_gpex()
256 cfg->mmio64.base, in acpi_dsdt_add_gpex()
257 cfg->mmio64.base + cfg->mmio64.size - 1); in acpi_dsdt_add_gpex()
258 for (i = 0; i < crs_range_set.mem_64bit_ranges->len; i++) { in acpi_dsdt_add_gpex()
259 entry = g_ptr_array_index(crs_range_set.mem_64bit_ranges, i); in acpi_dsdt_add_gpex()
263 entry->base, in acpi_dsdt_add_gpex()
264 entry->limit, 0x0000, in acpi_dsdt_add_gpex()
265 entry->limit - entry->base + 1)); in acpi_dsdt_add_gpex()
278 cfg->ecam.base, in acpi_dsdt_add_gpex()
279 cfg->ecam.base + cfg->ecam.size - 1, in acpi_dsdt_add_gpex()
281 cfg->ecam.size)); in acpi_dsdt_add_gpex()
298 GPEX_HOST(obj)->gpex_cfg.irq = irq; in acpi_dsdt_add_gpex_host()
299 acpi_dsdt_add_gpex(scope, &GPEX_HOST(obj)->gpex_cfg); in acpi_dsdt_add_gpex_host()