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 _BAYTRAIL_NVS_H_
4 #define _BAYTRAIL_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 rsvd1[3];
30 
31  /* Device Config */
32  u8 s5u0; /* 0x20 - Enable USB0 in S5 */
33  u8 s5u1; /* 0x21 - Enable USB1 in S5 */
34  u8 s3u0; /* 0x22 - Enable USB0 in S3 */
35  u8 s3u1; /* 0x23 - Enable USB1 in S3 */
36  u8 tact; /* 0x24 - Thermal Active trip point */
37  u8 tpsv; /* 0x25 - Thermal Passive trip point */
38  u8 tcrt; /* 0x26 - Thermal Critical trip point */
39  u8 dpte; /* 0x27 - Enable DPTF */
40  u8 rsvd2[8];
41 
42  /* Base Addresses */
43  u32 obsolete_cmem; /* 0x30 - CBMEM TOC */
44  u32 tolm; /* 0x34 - Top of Low Memory */
45  u32 cbmc; /* 0x38 - coreboot memconsole */
46 };
47 
48 #endif /* _BAYTRAIL_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
u32 rsvd1
Definition: me.h:413
Definition: nvs.h:14
u8 unused_was_prm0
Definition: nvs.h:12
u8 lids
Definition: nvs.h:21
u8 tcrt
Definition: nvs.h:38
u8 unused_was_prm5
Definition: nvs.h:19
u32 gpei
Definition: nvs.h:28
u8 s5u1
Definition: nvs.h:33
u32 p80d
Definition: nvs.h:20
u8 s3u0
Definition: nvs.h:34
u32 tolm
Definition: nvs.h:44
u8 unused_was_prm1
Definition: nvs.h:13
u32 obsolete_cmem
Definition: nvs.h:43
u8 s3u1
Definition: nvs.h:35
u8 unused_was_pcnt
Definition: nvs.h:23
u8 s5u0
Definition: nvs.h:32
u8 tpmp
Definition: nvs.h:24
u8 unused_was_lckf
Definition: nvs.h:17
u8 ppcm
Definition: nvs.h:26
u8 dpte
Definition: nvs.h:39
u8 tpsv
Definition: nvs.h:37
u8 scif
Definition: nvs.h:14
u8 unused_was_prm2
Definition: nvs.h:15
u32 pm1i
Definition: nvs.h:27
u8 unused_was_pwrs
Definition: nvs.h:22
u8 tlvl
Definition: nvs.h:25
u32 cbmc
Definition: nvs.h:45
u16 unused_was_osys
Definition: nvs.h:10
u8 unused_was_prm3
Definition: nvs.h:16
u8 unused_was_prm4
Definition: nvs.h:18
u8 tact
Definition: nvs.h:36
u8 smif
Definition: nvs.h:11