Angel Pons | 182dbde | 2020-04-02 23:49:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 2 | |
Angel Pons | e233a91 | 2020-06-21 15:46:45 +0200 | [diff] [blame] | 3 | #ifndef SOUTHBRIDGE_INTEL_I82801GX_NVS_H |
| 4 | #define SOUTHBRIDGE_INTEL_I82801GX_NVS_H |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 5 | |
Elyes HAOUAS | 959f406 | 2019-12-22 13:44:40 +0100 | [diff] [blame] | 6 | #include <stdint.h> |
| 7 | |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 8 | struct __packed global_nvs { |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 9 | /* Miscellaneous */ |
Kyösti Mälkki | f6f1215 | 2020-12-29 09:04:30 +0200 | [diff] [blame] | 10 | u16 unused_was_osys; /* 0x00 - Operating System */ |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 11 | u8 smif; /* 0x02 - SMI function call ("TRAP") */ |
Angel Pons | 2fd1e47 | 2021-09-27 12:19:52 +0200 | [diff] [blame] | 12 | u8 unused_was_prm0; /* 0x03 - SMI function call parameter */ |
| 13 | u8 unused_was_prm1; /* 0x04 - SMI function call parameter */ |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 14 | u8 scif; /* 0x05 - SCI function call (via _L00) */ |
Angel Pons | 2fd1e47 | 2021-09-27 12:19:52 +0200 | [diff] [blame] | 15 | u8 unused_was_prm2; /* 0x06 - SCI function call parameter */ |
| 16 | u8 unused_was_prm3; /* 0x07 - SCI function call parameter */ |
Angel Pons | 286c771 | 2021-09-27 12:11:14 +0200 | [diff] [blame] | 17 | u8 unused_was_lckf; /* 0x08 - Global Lock function for EC */ |
Angel Pons | 2fd1e47 | 2021-09-27 12:19:52 +0200 | [diff] [blame] | 18 | u8 unused_was_prm4; /* 0x09 - Lock function parameter */ |
| 19 | u8 unused_was_prm5; /* 0x0a - Lock function parameter */ |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 20 | u32 p80d; /* 0x0b - Debug port (IO 0x80) value */ |
| 21 | u8 lids; /* 0x0f - LID state (open = 1) */ |
Kyösti Mälkki | d6ccbb9 | 2021-01-15 13:46:11 +0200 | [diff] [blame] | 22 | u8 unused_was_pwrs; /* 0x10 - Power state (AC = 1) */ |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 23 | u8 dbgs; /* 0x11 - Debug state */ |
| 24 | u8 linx; /* 0x12 - Linux OS */ |
| 25 | u8 dckn; /* 0x13 - PCIe docking state */ |
| 26 | /* Thermal policy */ |
| 27 | u8 actt; /* 0x14 - active trip point */ |
Patrick Rudolph | 959dfc1 | 2017-06-11 17:05:17 +0200 | [diff] [blame] | 28 | u8 tpsv; /* 0x15 - passive trip point */ |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 29 | u8 tc1v; /* 0x16 - passive trip point TC1 */ |
| 30 | u8 tc2v; /* 0x17 - passive trip point TC2 */ |
| 31 | u8 tspv; /* 0x18 - passive trip point TSP */ |
Patrick Rudolph | 959dfc1 | 2017-06-11 17:05:17 +0200 | [diff] [blame] | 32 | u8 tcrt; /* 0x19 - critical trip point */ |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 33 | u8 dtse; /* 0x1a - Digital Thermal Sensor enable */ |
| 34 | u8 dts1; /* 0x1b - DT sensor 1 */ |
Patrick Rudolph | c6fa127 | 2017-11-13 18:57:54 +0100 | [diff] [blame] | 35 | u8 flvl; /* 0x1c - current fan level */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 36 | u8 rsvd2; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 37 | /* Battery Support */ |
| 38 | u8 bnum; /* 0x1e - number of batteries */ |
| 39 | u8 b0sc, b1sc, b2sc; /* 0x1f-0x21 - stored capacity */ |
| 40 | u8 b0ss, b1ss, b2ss; /* 0x22-0x24 - stored status */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 41 | u8 rsvd3[3]; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 42 | /* Processor Identification */ |
Kyösti Mälkki | 780e02d | 2020-12-29 05:12:56 +0200 | [diff] [blame] | 43 | u8 unused_was_apic; /* 0x28 - APIC enabled */ |
Kyösti Mälkki | 0b7446a | 2021-01-27 20:25:51 +0200 | [diff] [blame] | 44 | u8 unused_was_mpen; /* 0x29 - MP capable/enabled */ |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 45 | u8 pcp0; /* 0x2a - PDC CPU/CORE 0 */ |
| 46 | u8 pcp1; /* 0x2b - PDC CPU/CORE 1 */ |
| 47 | u8 ppcm; /* 0x2c - Max. PPC state */ |
| 48 | u8 rsvd4[5]; |
| 49 | /* Super I/O & CMOS config */ |
| 50 | u8 natp; /* 0x32 - SIO type */ |
Stefan Reinauer | aca6ec6 | 2009-10-26 17:12:21 +0000 | [diff] [blame] | 51 | u8 cmap; /* 0x33 - */ |
| 52 | u8 cmbp; /* 0x34 - */ |
| 53 | u8 lptp; /* 0x35 - LPT port */ |
| 54 | u8 fdcp; /* 0x36 - Floppy Disk Controller */ |
| 55 | u8 rfdv; /* 0x37 - */ |
| 56 | u8 hotk; /* 0x38 - Hot Key */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 57 | u8 rtcf; |
| 58 | u8 util; |
| 59 | u8 acin; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 60 | /* Integrated Graphics Device */ |
| 61 | u8 igds; /* 0x3c - IGD state */ |
| 62 | u8 tlst; /* 0x3d - Display Toggle List Pointer */ |
| 63 | u8 cadl; /* 0x3e - currently attached devices */ |
| 64 | u8 padl; /* 0x3f - previously attached devices */ |
Matt DeVillier | 28f727b | 2020-03-30 21:55:21 -0500 | [diff] [blame] | 65 | u8 rsvd5[36]; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 66 | /* Backlight Control */ |
| 67 | u8 blcs; /* 0x64 - Backlight Control possible */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 68 | u8 brtl; |
| 69 | u8 odds; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 70 | u8 rsvd6[0x7]; |
| 71 | /* Ambient Light Sensors*/ |
| 72 | u8 alse; /* 0x6e - ALS enable */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 73 | u8 alaf; |
| 74 | u8 llow; |
| 75 | u8 lhih; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 76 | u8 rsvd7[0x6]; |
| 77 | /* EMA */ |
| 78 | u8 emae; /* 0x78 - EMA enable */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 79 | u16 emap; |
| 80 | u16 emal; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 81 | u8 rsvd8[0x5]; |
| 82 | /* MEF */ |
| 83 | u8 mefe; /* 0x82 - MEF enable */ |
| 84 | u8 rsvd9[0x9]; |
| 85 | /* TPM support */ |
| 86 | u8 tpmp; /* 0x8c - TPM */ |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 87 | u8 tpme; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 88 | u8 rsvd10[8]; |
| 89 | /* SATA */ |
| 90 | u8 gtf0[7]; /* 0x96 - GTF task file buffer for port 0 */ |
| 91 | u8 gtf1[7]; |
Stefan Reinauer | debb11f | 2008-10-29 04:46:52 +0000 | [diff] [blame] | 92 | u8 gtf2[7]; |
| 93 | u8 idem; |
| 94 | u8 idet; |
Nico Huber | f2a0be2 | 2020-04-26 17:01:25 +0200 | [diff] [blame] | 95 | u8 rsvd11[67]; |
Stefan Reinauer | 573f7d4 | 2009-07-21 21:50:34 +0000 | [diff] [blame] | 96 | /* Mainboard specific */ |
| 97 | u8 dock; /* 0xf0 - Docking Status */ |
Stefan Reinauer | aca6ec6 | 2009-10-26 17:12:21 +0000 | [diff] [blame] | 98 | u8 bten; |
Kyösti Mälkki | b527841 | 2021-01-12 00:25:13 +0200 | [diff] [blame] | 99 | |
Arthur Heymans | cde4f3b | 2022-05-12 23:07:52 +0200 | [diff] [blame^] | 100 | u32 unused_was_cbmc; |
Kyösti Mälkki | 8fee995 | 2021-01-29 23:14:53 +0200 | [diff] [blame] | 101 | |
| 102 | /* Required for future unified acpi_save_wake_source. */ |
| 103 | u32 pm1i; |
| 104 | u32 gpei; |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 105 | }; |
Angel Pons | e233a91 | 2020-06-21 15:46:45 +0200 | [diff] [blame] | 106 | |
| 107 | #endif /* SOUTHBRIDGE_INTEL_I82801GX_NVS_H */ |