]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/x86/cpu/qemu/acpi/pci-crs.asl
x86: Add DSDT table for supporting ACPI on QEMU
[karo-tx-uboot.git] / arch / x86 / cpu / qemu / acpi / pci-crs.asl
1 /* PCI CRS (current resources) definition. */
2 Scope(\_SB.PCI0) {
3
4     Name(CRES, ResourceTemplate() {
5         WordBusNumber(ResourceProducer, MinFixed, MaxFixed, PosDecode,
6             0x0000,             /* Address Space Granularity */
7             0x0000,             /* Address Range Minimum */
8             0x00ff,             /* Address Range Maximum */
9             0x0000,             /* Address Translation Offset */
10             0x0100,             /* Address Length */
11             ,, )
12         IO(Decode16,
13             0x0cf8,             /* Address Range Minimum */
14             0x0cf8,             /* Address Range Maximum */
15             0x01,               /* Address Alignment */
16             0x08,               /* Address Length */
17             )
18         WordIO(ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
19             0x0000,             /* Address Space Granularity */
20             0x0000,             /* Address Range Minimum */
21             0x0cf7,             /* Address Range Maximum */
22             0x0000,             /* Address Translation Offset */
23             0x0cf8,             /* Address Length */
24             ,, , TypeStatic)
25         WordIO(ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
26             0x0000,             /* Address Space Granularity */
27             0x0d00,             /* Address Range Minimum */
28             0xffff,             /* Address Range Maximum */
29             0x0000,             /* Address Translation Offset */
30             0xf300,             /* Address Length */
31             ,, , TypeStatic)
32         DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
33             0x00000000,         /* Address Space Granularity */
34             0x000a0000,         /* Address Range Minimum */
35             0x000bffff,         /* Address Range Maximum */
36             0x00000000,         /* Address Translation Offset */
37             0x00020000,         /* Address Length */
38             ,, , AddressRangeMemory, TypeStatic)
39         DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
40             0x00000000,         /* Address Space Granularity */
41             0xe0000000,         /* Address Range Minimum */
42             0xfebfffff,         /* Address Range Maximum */
43             0x00000000,         /* Address Translation Offset */
44             0x1ec00000,         /* Address Length */
45             ,, PW32, AddressRangeMemory, TypeStatic)
46     })
47
48     Name(CR64, ResourceTemplate() {
49         QWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
50             0x00000000,          /* Address Space Granularity */
51             0x80000000,        /* Address Range Minimum */
52             0xffffffff,        /* Address Range Maximum */
53             0x00000000,          /* Address Translation Offset */
54             0x80000000,        /* Address Length */
55             ,, PW64, AddressRangeMemory, TypeStatic)
56     })
57
58     Method(_CRS, 0) {
59         Return (CRES)
60     }
61 }