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-or-later */
2 
3 /*
4  * NOTE: The layout of the global_nvs structure below must match the layout
5  * in soc/intel/apollolake/acpi/globalnvs.asl !!!
6  *
7  */
8 
9 #ifndef _SOC_APOLLOLAKE_NVS_H_
10 #define _SOC_APOLLOLAKE_NVS_H_
11 
12 #include <stdint.h>
13 
14 struct __packed global_nvs {
15  /* Miscellaneous */
16  uint8_t unused_was_pcnt; /* 0x00 - Processor Count */
17  uint8_t ppcm; /* 0x01 - Max PPC State */
18  uint8_t lids; /* 0x02 - LID State */
19  uint8_t unused_was_pwrs; /* 0x03 - AC Power State */
20  uint8_t dpte; /* 0x04 - Enable DPTF */
21  uint32_t cbmc; /* 0x05 - 0x08 - coreboot Memory Console */
22  uint64_t pm1i; /* 0x09 - 0x10 - System Wake Source - PM1 Index */
23  uint64_t gpei; /* 0x11 - 0x18 - GPE Wake Source */
24  uint64_t nhla; /* 0x19 - 0x20 - NHLT Address */
25  uint32_t nhll; /* 0x21 - 0x24 - NHLT Length */
26  uint32_t prt0; /* 0x25 - 0x28 - PERST_0 Address */
27  uint8_t scdp; /* 0x29 - SD_CD GPIO portid */
28  uint8_t scdo; /* 0x2A - GPIO pad offset relative to the community */
29  uint8_t uior; /* 0x2B - UART debug controller init on S3
30  resume */
31  uint64_t a4gb; /* 0x2C - 0x33 Base of above 4GB MMIO Resource */
32  uint64_t a4gs; /* 0x34 - 0x3B Length of above 4GB MMIO Resource */
33 };
34 
35 #endif /* _SOC_APOLLOLAKE_NVS_H_ */
unsigned int uint32_t
Definition: stdint.h:14
unsigned long long uint64_t
Definition: stdint.h:17
unsigned char uint8_t
Definition: stdint.h:8
Definition: x86.c:23
Definition: nvs.h:14
uint32_t prt0
Definition: nvs.h:26
uint8_t uior
Definition: nvs.h:29
uint64_t nhla
Definition: nvs.h:24
uint64_t a4gs
Definition: nvs.h:32
uint64_t a4gb
Definition: nvs.h:31
uint8_t ppcm
Definition: nvs.h:17
uint8_t dpte
Definition: nvs.h:20
uint8_t scdp
Definition: nvs.h:27
uint8_t scdo
Definition: nvs.h:28
uint32_t nhll
Definition: nvs.h:25