aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-26 02:26:09 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-12-26 02:26:09 +0000
commit963c68ee8b8e0669cb91a3c68f5cce04cc222c5d (patch)
treee42901e376ac8658ec8e9295ddf67df4a83bfdff
parentf78d26669bb8d88853a5df332bf10ff9d3734ca4 (diff)
downloadlibrebootfr-963c68ee8b8e0669cb91a3c68f5cce04cc222c5d.tar.gz
librebootfr-963c68ee8b8e0669cb91a3c68f5cce04cc222c5d.zip
ich9deblob: gbe struct: info about word 0A (pci init control word)
-rw-r--r--resources/utilities/ich9deblob/src/gbe/gbe.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.h b/resources/utilities/ich9deblob/src/gbe/gbe.h
index ac2a5049..513e5d0e 100644
--- a/resources/utilities/ich9deblob/src/gbe/gbe.h
+++ b/resources/utilities/ich9deblob/src/gbe/gbe.h
@@ -73,6 +73,20 @@ struct GBE_RESERVED_WORD_03H {
unsigned char reserved2 : 4; /* bits should all be set to zero */
/* most significant bits */
};
+
+struct PCI_INITIALIZATION_CONTROL_WORD {
+ /* least significant bits */
+ unsigned char loadVendorDeviceId : 1; /* 1 = load from NVM. 0 = load from MAC fuses. It's 1 in my deblobbed_descriptor.bin */
+ unsigned char loadSubsystemId : 1; /* 1 = load from NVM. 0 = load from MAC fuses. It's 1 in my deblobbed_descriptor.bin */
+ unsigned char reserved1 : 1; /* Reserved. Set to 0 (according to datasheet). 0 in my deblobbed_descriptor.bin */
+ unsigned char reserved2 : 3; /* Reserved. Set them to 0 (according to datasheet). 0 in my deblobbed_descriptor.bin */
+ unsigned char pmEnable : 1; /* Power Management Enable. 1=Enable. It's 1 in my deblobbed_descriptor.bin */
+ unsigned char auxPwr : 1; /* Auxiliary Power Indication. See datasheet. it's 1 in my deblobbed_descriptor.bin */
+ unsigned char reserved3 : 4; /* Reserved. Set to 0000 (according to datasheet). */
+ unsigned char reserved4 : 4; /* Reserved. Set to 0001 (according to datasheet). */
+ /* most significant bits */
+};
+
struct GBEREGIONRECORD_4K {
unsigned char macAddress[6]; /* Word 00 to 02 */
struct GBE_RESERVED_WORD_03H reservedWord03h; /* Reserved word 03. */
@@ -98,7 +112,9 @@ struct GBEREGIONRECORD_4K {
unsigned short pbaLow; /* Word 08 */
unsigned short pbaHigh; /* Word 09 */
- unsigned short pciInitializationControlWord;
+ /* Word 0A */
+ struct PCI_INITIALIZATION_CONTROL_WORD pciInitializationControlWord;
+
unsigned short subsystemId;
unsigned short subsystemVendorId;
unsigned short deviceId;