coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
nvs.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _SOC_NVS_H_
4 #define _SOC_NVS_H_
5 
6 #include <stdint.h>
7 
8 struct __packed global_nvs {
9  /* Miscellaneous */
10  u16 unused_was_osys; /* 0x00 - Operating System */
11  u8 smif; /* 0x02 - SMI function call ("TRAP") */
12  u8 unused_was_prm0; /* 0x03 - SMI function call parameter */
13  u8 unused_was_prm1; /* 0x04 - SMI function call parameter */
14  u8 scif; /* 0x05 - SCI function call (via _L00) */
15  u8 unused_was_prm2; /* 0x06 - SCI function call parameter */
16  u8 unused_was_prm3; /* 0x07 - SCI function call parameter */
17  u8 unused_was_lckf; /* 0x08 - Global Lock function for EC */
18  u8 unused_was_prm4; /* 0x09 - Lock function parameter */
19  u8 unused_was_prm5; /* 0x0a - Lock function parameter */
20  u32 p80d; /* 0x0b - Debug port (IO 0x80) value */
21  u8 lids; /* 0x0f - LID state (open = 1) */
22  u8 unused_was_pwrs; /* 0x10 - Power state (AC = 1) */
23  u8 unused_was_pcnt; /* 0x11 - Processor Count */
24  u8 tpmp; /* 0x12 - TPM Present and Enabled */
25  u8 tlvl; /* 0x13 - Throttle Level */
26  u8 ppcm; /* 0x14 - Maximum P-state usable by OS */
27  u32 pm1i; /* 0x15 - System Wake Source - PM1 Index */
28  u32 gpei; /* 0x19 - GPE Wake Source */
29  u8 bdid; /* 0x1d - Board ID */
30  u16 cid1; /* 0x1a - Wifi Country Identifier */
31 
32  /* Device Config */
33  u8 s5u0; /* 0x20 - Enable USB0 in S5 */
34  u8 s5u1; /* 0x21 - Enable USB1 in S5 */
35  u8 s3u0; /* 0x22 - Enable USB0 in S3 */
36  u8 s3u1; /* 0x23 - Enable USB1 in S3 */
37  u8 tact; /* 0x24 - Thermal Active trip point */
38  u8 tpsv; /* 0x25 - Thermal Passive trip point */
39  u8 tcrt; /* 0x26 - Thermal Critical trip point */
40  u8 dpte; /* 0x27 - Enable DPTF */
41  u8 rsvd2[8];
42 
43  /* Base Addresses */
44  u32 obsolete_cmem; /* 0x30 - CBMEM TOC */
45  u32 tolm; /* 0x34 - Top of Low Memory */
46  u32 cbmc; /* 0x38 - coreboot memconsole */
47 };
48 
49 #endif /* _SOC_NVS_H_ */
uint32_t u32
Definition: stdint.h:51
uint16_t u16
Definition: stdint.h:48
uint8_t u8
Definition: stdint.h:45
Definition: x86.c:23
Definition: nvs.h:14
u8 bdid
Definition: nvs.h:29
u16 cid1
Definition: nvs.h:30