1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| Scope(_SB) { // PCIe Root bus, for the ASL grammar, please refer to 19 charpter in [5] Device (PCI0) // acpi_get_devices("HISI0080", ...) ? { // for the details of items below, please refer to charpter 6 in [5] Name (_HID, "HISI0080") // PCI Express Root Bridge Name (_CID, "PNP0A03") // Compatible PCI Root Bridge, Compatible ID Name(_SEG, 0) // Segment of this Root complex Name(_BBN, 0) // Base Bus Number Name(_CCA, 1) // cache coherence attribute ?? Method (_CRS, 0, Serialized) { // Root complex resources, _CRS: current resource setting // Method is defined in 19.6.82 in [5] Name (RBUF, ResourceTemplate () { // Name: 19.6.87, ResourceTemplate: 19.6.111, // 19.3.3 in [5] WordBusNumber ( // Bus numbers assigned to this root, // wordBusNumber: 19.6.144 ResourceProducer, MinFixed, MaxFixed, PosDecode, 0, // AddressGranularity 0x0, // AddressMinimum - Minimum Bus Number 0x1f, // AddressMaximum - Maximum Bus Number 0, // AddressTranslation - Set to 0 0x20 // RangeLength - Number of Busses ) QWordMemory ( // 64-bit BAR Windows ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x0, // Granularity 0xb2000000, // Min Base Address pci address 0xb7feffff, // Max Base Address 0x0, // Translate 0x5ff0000 // Length ) QWordIO ( ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0, 0x0, 0xffff, 0xb7ff0000, 0x10000 ) }) // Name(RBUF) Return (RBUF) } // Method(_CRS), this method return RBUF! } // Device(PCI0) }
|