1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #if CONFIG(SOC_INTEL_COMMON_BLOCK_SGX_ENABLE)
6 // Secure Enclave memory
9 External (EPCS, IntObj)
10 External (EMNA, IntObj)
11 External (ELNG, IntObj)
12 Name (_HID, EISAID ("INT0E0C"))
13 Name (_STR, Unicode ("Enclave Page Cache 1.0"))
14 Name (_MLS, Package () {
15 Package (2) { "en", Unicode ("Enclave Page Cache 1.0") }
18 Name (RBUF, ResourceTemplate ()
20 // _MIN, _MAX and _LEN get patched runtime
22 ResourceConsumer, // ResourceUsage
23 PosDecode, // Decode _DEC
24 MinNotFixed, // IsMinFixed _MIF
25 MaxNotFixed, // IsMaxFixed _MAF
26 NonCacheable, // Cacheable _MEM
27 ReadWrite, // ReadAndWrite _RW
28 0, // AddressGranularity _GRA
29 0, // AddressMinimum _MIN
30 0, // AddressMaximum _MAX
31 0, // AddressTranslation _TRA
32 1, // RangeLength _LEN
33 , // ResourceSourceIndex
35 BAR0 // DescriptorName
39 Method (_CRS, 0x0, NotSerialized)
41 CreateQwordField (RBUF, ^BAR0._MIN, EMIN)
42 CreateQwordField (RBUF, ^BAR0._MAX, EMAX)
43 CreateQwordField (RBUF, ^BAR0._LEN, ELEN)
46 EMAX = EMNA + ELNG - 1
50 Method (_STA, 0x0, NotSerialized)
60 } // End of Scope(\_SB)