hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
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
/** @file
QNC I/O Apic devices
 
Copyright (c) 2013-2015 Intel Corporation.
 
SPDX-License-Identifier: BSD-2-Clause-Patent
 
**/
 
#ifndef QNC_APIC_ASI
#define QNC_APIC_ASI
 
Device(APIC)
{
    Name(_HID,EISAID("PNP0003"))        // APIC resources
 
    Name(CRS, ResourceTemplate()
        {
            Memory32Fixed(ReadOnly, 0, 0, FIX1) // IO APIC
        }
    )
 
    Method (_CRS, 0, NotSerialized) {
        CreateDWordField (CRS, ^FIX1._BAS, MBR0)
        Store(\APCB, MBR0)
        CreateDWordField (CRS, ^FIX1._LEN, MBR1)
        Store(\APCS, MBR1)
        Return (CRS)
    }
}
 
#endif