1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/ioapic.h>
5 Name (PBRS, ResourceTemplate ()
7 WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
8 0x0000, 0x0000, 0x00FF, 0x0000, 0x0100, ,, )
11 DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
12 0x0, 0x0, 0xffff, 0x0000, 0x10000, ,,, TypeStatic)
13 IO (Decode16, 0x0CF8, 0x0CF8, 0x08, 0x08, )
16 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
17 0x00000000, 0x000A0000, 0x000BFFFF,
18 0x00000000, 0x00020000, ,,, AddressRangeMemory, TypeStatic)
21 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
22 0x00000000, 0x000C0000, 0x000C7FFF,
23 0x00000000, 0x00008000, ,,, AddressRangeMemory, TypeStatic)
26 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
27 0x00000000, 0x000C8000, 0x000DFFFF,
28 0x00000000, 0x00018000, ,,, AddressRangeMemory, TypeStatic)
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)
37 Method (_CRS, 0, NotSerialized)
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
47 MEMH = IO_APIC_ADDR - 1
48 LENM = IO_APIC_ADDR - MEML
53 Method (_STA, 0, NotSerialized)