| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
/* Global Variables */ |
| 4 |
|
| 5 |
Field (GNVS, ByteAcc, NoLock, Preserve) |
| 6 |
{ |
| 7 |
/* Miscellaneous */ |
| 8 |
, 16, // 0x00 - Operating System |
| 9 |
SMIF, 8, // 0x02 - SMI function |
| 10 |
, 8, // 0x03 - SMI function parameter |
| 11 |
, 8, // 0x04 - SMI function parameter |
| 12 |
SCIF, 8, // 0x05 - SCI function |
| 13 |
, 8, // 0x06 - SCI function parameter |
| 14 |
, 8, // 0x07 - SCI function parameter |
| 15 |
, 8, // 0x08 - Global Lock function for EC |
| 16 |
, 8, // 0x09 - Lock function parameter |
| 17 |
, 8, // 0x0a - Lock function parameter |
| 18 |
P80D, 32, // 0x0b - Debug port (IO 0x80) value |
| 19 |
LIDS, 8, // 0x0f - LID state (open = 1) |
| 20 |
, 8, // 0x10 - Power State (AC = 1) |
| 21 |
DBGS, 8, // 0x11 - Debug State |
| 22 |
LINX, 8, // 0x12 - Linux OS |
| 23 |
DCKN, 8, // 0x13 - PCIe docking state |
| 24 |
/* Thermal policy */ |
| 25 |
Offset (0x14), |
| 26 |
ACTT, 8, // 0x14 - active trip point |
| 27 |
TPSV, 8, // 0x15 - passive trip point |
| 28 |
TC1V, 8, // 0x16 - passive trip point TC1 |
| 29 |
TC2V, 8, // 0x17 - passive trip point TC2 |
| 30 |
TSPV, 8, // 0x18 - passive trip point TSP |
| 31 |
TCRT, 8, // 0x19 - critical trip point |
| 32 |
DTSE, 8, // 0x1a - Digital Thermal Sensor enable |
| 33 |
DTS1, 8, // 0x1b - DT sensor 1 |
| 34 |
FLVL, 8, // 0x1c - current fan level |
| 35 |
/* Battery Support */ |
| 36 |
Offset (0x1e), |
| 37 |
BNUM, 8, // 0x1e - number of batteries |
| 38 |
B0SC, 8, // 0x1f - BAT0 stored capacity |
| 39 |
B1SC, 8, // 0x20 - BAT1 stored capacity |
| 40 |
B2SC, 8, // 0x21 - BAT2 stored capacity |
| 41 |
B0SS, 8, // 0x22 - BAT0 stored status |
| 42 |
B1SS, 8, // 0x23 - BAT1 stored status |
| 43 |
B2SS, 8, // 0x24 - BAT2 stored status |
| 44 |
/* Processor Identification */ |
| 45 |
Offset (0x28), |
| 46 |
, 8, // 0x28 - Enabled by coreboot |
| 47 |
, 8, // 0x29 - Multi Processor Enable |
| 48 |
PCP0, 8, // 0x2a - PDC CPU/CORE 0 |
| 49 |
PCP1, 8, // 0x2b - PDC CPU/CORE 1 |
| 50 |
PPCM, 8, // 0x2c - Max. PPC state |
| 51 |
/* Super I/O & CMOS config */ |
| 52 |
Offset (0x32), |
| 53 |
NATP, 8, // 0x32 - |
| 54 |
CMAP, 8, // 0x33 - |
| 55 |
CMBP, 8, // 0x34 - |
| 56 |
LPTP, 8, // 0x35 - LPT Port |
| 57 |
FDCP, 8, // 0x36 - Floppy Disk Controller |
| 58 |
RFDV, 8, // 0x37 - |
| 59 |
HOTK, 8, // 0x38 - |
| 60 |
RTCF, 8, // 0x39 - |
| 61 |
UTIL, 8, // 0x3a - |
| 62 |
ACIN, 8, // 0x3b - |
| 63 |
/* Integrated Graphics Device */ |
| 64 |
Offset (0x3c), |
| 65 |
IGDS, 8, // 0x3c - IGD state (primary = 1) |
| 66 |
TLST, 8, // 0x3d - Display Toggle List pointer |
| 67 |
CADL, 8, // 0x3e - Currently Attached Devices List |
| 68 |
PADL, 8, // 0x3f - Previously Attached Devices List |
| 69 |
/* Backlight Control */ |
| 70 |
Offset (0x64), |
| 71 |
BLCS, 8, // 0x64 - Backlight control possible? |
| 72 |
BRTL, 8, // 0x65 - Brightness Level |
| 73 |
ODDS, 8, // 0x66 |
| 74 |
/* Ambient Light Sensors */ |
| 75 |
Offset (0x6e), |
| 76 |
ALSE, 8, // 0x6e - ALS enable |
| 77 |
ALAF, 8, // 0x6f - Ambient light adjustment factor |
| 78 |
LLOW, 8, // 0x70 - LUX Low |
| 79 |
LHIH, 8, // 0x71 - LUX High |
| 80 |
/* EMA */ |
| 81 |
Offset (0x78), |
| 82 |
EMAE, 8, // 0x78 - EMA enable |
| 83 |
EMAP, 16, // 0x79 - EMA pointer |
| 84 |
EMAL, 16, // 0x7b - EMA length |
| 85 |
/* MEF */ |
| 86 |
Offset (0x82), |
| 87 |
MEFE, 8, // 0x82 - MEF enable |
| 88 |
/* TPM support */ |
| 89 |
Offset (0x8c), |
| 90 |
TPMP, 8, // 0x8c - TPM |
| 91 |
TPME, 8, // 0x8d - TPM enable |
| 92 |
/* SATA */ |
| 93 |
Offset (0x96), |
| 94 |
GTF0, 56, // 0x96 - GTF task file buffer for port 0 |
| 95 |
GTF1, 56, // 0x9d - GTF task file buffer for port 1 |
| 96 |
GTF2, 56, // 0xa4 - GTF task file buffer for port 2 |
| 97 |
IDEM, 8, // 0xab - IDE mode (compatible / enhanced) |
| 98 |
IDET, 8, // 0xac - IDE |
| 99 |
/* Mainboard Specific (TODO move elsewhere) */ |
| 100 |
Offset (0xf0), |
| 101 |
DOCK, 8, // 0xf0 - Docking Status |
| 102 |
BTEN, 8, // 0xf1 - Bluetooth Enable |
| 103 |
, 32, |
| 104 |
PM1I, 32, // System Wake Source - PM1 Index |
| 105 |
GPEI, 32, // GPE Wake Source |
| 106 |
|
| 107 |
} |