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/soc/amd/stoneyridge/acpi/globalnvs.asl !!!
6  *
7  */
8 
9 #ifndef __SOC_STONEYRIDGE_NVS_H__
10 #define __SOC_STONEYRIDGE_NVS_H__
11 
12 #include <stdint.h>
13 #include <soc/southbridge.h>
14 
15 struct __packed global_nvs {
16  /* Miscellaneous */
17  uint8_t unused_was_pcnt; /* 0x00 - Processor Count */
18  uint8_t lids; /* 0x01 - LID State */
19  uint8_t unused_was_pwrs; /* 0x02 - AC Power State */
20  uint32_t cbmc; /* 0x03 - 0x06 - coreboot Memory Console */
21  uint64_t pm1i; /* 0x07 - 0x0e - System Wake Source - PM1 Index */
22  uint64_t gpei; /* 0x0f - 0x16 - GPE Wake Source */
23  uint8_t tmps; /* 0x17 - Temperature Sensor ID */
24  uint8_t tcrt; /* 0x18 - Critical Threshold */
25  uint8_t tpsv; /* 0x19 - Passive Threshold */
26  uint8_t pad1[6];
27  aoac_devs_t aoac; /* 0x20 - AOAC device enables */
28  uint16_t fw00; /* 0x24 - XhciFwRomAddr_Rom, Boot RAM */
29  uint16_t fw02; /* 0x26 - XhciFwRomAddr_Ram, Instr RAM */
30  uint32_t fw01; /* 0x28 - XhciFwRamAddr_Rom, Boot RAM sz/base */
31  uint32_t fw03; /* 0x2c - XhciFwRomAddr_Ram, Instr RAM sz/base */
32  uint32_t eh10; /* 0x30 - EHCI BAR */
33 };
34 
35 #endif /* __SOC_STONEYRIDGE_NVS_H__ */
unsigned short uint16_t
Definition: stdint.h:11
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
uint16_t fw02
Definition: nvs.h:29
uint32_t eh10
Definition: nvs.h:32
uint32_t fw01
Definition: nvs.h:30
uint32_t fw03
Definition: nvs.h:31
aoac_devs_t aoac
Definition: nvs.h:27
uint16_t fw00
Definition: nvs.h:28