Debian Codegraph @

src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <arch/ioapic.h>
4
5 Name (PBRS, ResourceTemplate ()
6 {
7 WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
8 0x0000, 0x0000, 0x00FF, 0x0000, 0x0100, ,, )
9
10 /* System IO */
11 DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
12 0x0, 0x0, 0xffff, 0x0000, 0x10000, ,,, TypeStatic)
13 IO (Decode16, 0x0CF8, 0x0CF8, 0x08, 0x08, )
14
15 /* Video RAM */
16 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
17 0x00000000, 0x000A0000, 0x000BFFFF,
18 0x00000000, 0x00020000, ,,, AddressRangeMemory, TypeStatic)
19
20 /* Video ROM */
21 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
22 0x00000000, 0x000C0000, 0x000C7FFF,
23 0x00000000, 0x00008000, ,,, AddressRangeMemory, TypeStatic)
24
25 /* Option ROMs ? */
26 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
27 0x00000000, 0x000C8000, 0x000DFFFF,
28 0x00000000, 0x00018000, ,,, AddressRangeMemory, TypeStatic)
29
30 /* Top Of Lowmemory to IOAPIC */
31 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
32 0x00000000, 0x00000000, 0xFEBFFFFF,
33 0x00000000, IO_APIC_ADDR, ,, _Y08, AddressRangeMemory, TypeStatic)
34 })
35
36
37 Method (_CRS, 0, NotSerialized)
38 {
39
40 /* Top Of Lowmemory to IOAPIC */
41 CreateDWordField (PBRS, \_SB.PCI0._Y08._MIN, MEML)
42 CreateDWordField (PBRS, \_SB.PCI0._Y08._MAX, MEMH)
43 CreateDWordField (PBRS, \_SB.PCI0._Y08._LEN, LENM)
44 Local1 = \_SB.PCI0.TOLM & 0xF800
45 Local1 >>= 4
46 MEML = Local1 << 0x14
47 MEMH = IO_APIC_ADDR - 1
48 LENM = IO_APIC_ADDR - MEML
49
50 Return (PBRS)
51 }
52
53 Method (_STA, 0, NotSerialized)
54 {
55 Return (0x0F)
56 }