Angel Pons | 0612b27 | 2020-04-05 15:46:56 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 2 | |
| 3 | #ifndef SOC_INTEL_COMMON_BLOCK_NVS_H |
| 4 | #define SOC_INTEL_COMMON_BLOCK_NVS_H |
| 5 | |
Kyösti Mälkki | 98323cd | 2020-12-29 06:58:22 +0200 | [diff] [blame] | 6 | #include <stdint.h> |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 7 | |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 8 | struct __packed global_nvs { |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 9 | /* Miscellaneous */ |
Kyösti Mälkki | f6f1215 | 2020-12-29 09:04:30 +0200 | [diff] [blame] | 10 | u16 unused_was_osys; /* 0x00 - 0x01 Operating System */ |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 11 | u8 smif; /* 0x02 - SMI function call ("TRAP") */ |
Kyösti Mälkki | c196246 | 2020-12-29 05:12:56 +0200 | [diff] [blame] | 12 | u8 unused_was_pcnt; /* 0x03 - Processor Count */ |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 13 | u8 ppcm; /* 0x04 - Max PPC State */ |
| 14 | u8 tlvl; /* 0x05 - Throttle Level Limit */ |
| 15 | u8 lids; /* 0x06 - LID State */ |
Kyösti Mälkki | d6ccbb9 | 2021-01-15 13:46:11 +0200 | [diff] [blame] | 16 | u8 unused_was_pwrs; /* 0x07 - AC Power State */ |
Arthur Heymans | cde4f3b | 2022-05-12 23:07:52 +0200 | [diff] [blame^] | 17 | u32 unused_was_cbmc; /* 0x08 - 0xb coreboot Memory Console */ |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 18 | u64 pm1i; /* 0x0c - 0x13 PM1 wake status bit */ |
| 19 | u64 gpei; /* 0x14 - 0x1b GPE wake status bit */ |
| 20 | u8 dpte; /* 0x1c - Enable DPTF */ |
| 21 | u64 nhla; /* 0x1d - 0x24 NHLT Address */ |
| 22 | u32 nhll; /* 0x25 - 0x28 NHLT Length */ |
Kyösti Mälkki | 62044c3 | 2021-01-27 20:48:24 +0200 | [diff] [blame] | 23 | u16 unused_was_cid1; /* 0x29 - 0x2a Wifi Country Identifier */ |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 24 | u16 u2we; /* 0x2b - 0x2c USB2 Wake Enable Bitmap */ |
| 25 | u16 u3we; /* 0x2d - 0x2e USB3 Wake Enable Bitmap */ |
| 26 | u8 uior; /* 0x2f - UART debug controller init on S3 resume */ |
Arthur Heymans | 08769c6 | 2022-05-09 14:33:15 +0200 | [diff] [blame] | 27 | u64 hest_log_addr; /* 0x30 - 0x37 err log addr (used in SMM, not ASL code) */ |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 28 | }; |
| 29 | |
Subrata Banik | fa2f793 | 2019-10-30 15:47:06 +0530 | [diff] [blame] | 30 | #endif |