1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
--- mkgbe.c 2015-03-31 04:46:11.840747724 +0100
+++ ../lbdev/libreboot/resources/utilities/ich9deblob/src/ich9gen/mkgbe.c 2015-03-26 16:55:12.243313103 +0000
@@ -1,5 +1,19 @@
-/* mkgbe.c: generated C code from ich9deblob */
-/* .c source file for the gbe-generating C code */
+/*
+ * Copyright (C) 2014 Leah Rowe <info@minifree.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
#include "mkgbe.h"
@@ -14,11 +28,11 @@
/* MAC address (words 00h to 02h) */
/* see ../gbe/gbe.c */
gbeStruct4k.macAddress[0] = 0x00;
- gbeStruct4k.macAddress[1] = 0x22;
- gbeStruct4k.macAddress[2] = 0x68;
- gbeStruct4k.macAddress[3] = 0x1d;
- gbeStruct4k.macAddress[4] = 0x5f;
- gbeStruct4k.macAddress[5] = 0xc1;
+ gbeStruct4k.macAddress[1] = 0xf5;
+ gbeStruct4k.macAddress[2] = 0xf0;
+ gbeStruct4k.macAddress[3] = 0x40;
+ gbeStruct4k.macAddress[4] = 0x71;
+ gbeStruct4k.macAddress[5] = 0xfe;
/* Word 03h (Reserved) */
gbeStruct4k.reservedWord03h.reserved1_0 = 0x00;
@@ -83,7 +97,7 @@
gbeStruct4k.sharedInitializationControlWord.phyPowerDownEnable = 0x1;
gbeStruct4k.sharedInitializationControlWord.reserved3 = 0x1;
gbeStruct4k.sharedInitializationControlWord.reserved4 = 0x0;
- gbeStruct4k.sharedInitializationControlWord.sign = 0x0;
+ gbeStruct4k.sharedInitializationControlWord.sign = 0x2;
/* Word 14h (Extended Configuration Control Word 1) */
gbeStruct4k.extendedConfigurationControlWord1.extendedConfigurationPointer = 0x020;
@@ -198,7 +212,7 @@
gbeStruct4k.pxeSoftwareRegion.bootAgentConfigurationCustomizationOptions31h.reserved2 = 0x0;
gbeStruct4k.pxeSoftwareRegion.bootAgentConfigurationCustomizationOptions31h.signature = 0x1;
/* Boot Agent Configuration Customization Options (Word 32h) */
- gbeStruct4k.pxeSoftwareRegion.bootAgentConfigurationCustomizationOptions32h.buildNumber = 0x24;
+ gbeStruct4k.pxeSoftwareRegion.bootAgentConfigurationCustomizationOptions32h.buildNumber = 0x18;
gbeStruct4k.pxeSoftwareRegion.bootAgentConfigurationCustomizationOptions32h.minorVersionNumber = 0x3;
gbeStruct4k.pxeSoftwareRegion.bootAgentConfigurationCustomizationOptions32h.majorVersionNumber = 0x1;
/* IBA Capabilities (Word 33h) */
@@ -223,7 +237,7 @@
gbeStruct4k.pxeSoftwareRegion.paddingWords34hTo3Eh[10] = 0xffff;
/* Word 3Fh (Checksum) */
- gbeStruct4k.checkSum = 0xe818;
+ gbeStruct4k.checkSum = 0x348a;
/* The rest of Gbe (word 40h or byte 80h onwards) is just padding (0xFF) */
for (i = 0; i < 3968; i++) {
|