OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. | 2 * Copyright (C) 2010 Google Inc. |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 | 24 |
25 /* VPD Table Types */ | 25 /* VPD Table Types */ |
26 enum vpd_types { | 26 enum vpd_types { |
27 VPD_TYPE_FIRMWARE = 0, | 27 VPD_TYPE_FIRMWARE = 0, |
28 VPD_TYPE_SYSTEM, | 28 VPD_TYPE_SYSTEM, |
29 VPD_TYPE_END = 127, | 29 VPD_TYPE_END = 127, |
30 VPD_TYPE_BINARY_BLOB_POINTER = 241, | 30 VPD_TYPE_BINARY_BLOB_POINTER = 241, |
31 }; | 31 }; |
32 | 32 |
33 #define GOOGLE_VPD_2_0_EPS_BASE 0x240000 | 33 /* The default RO VPD location in BIOS image. |
34 #define GOOGLE_VPD_2_0_OFFSET 0x100 | 34 * If VPD partition cannot be found on fmap, buildEpsAndTables() will use |
| 35 * this value to count the offset fields of SPD and VPD 2.0. |
| 36 * |
| 37 * A user can specify -E argument to change the EPS base value. */ |
| 38 #define GOOGLE_EPS_BASE 0x000000 |
| 39 |
| 40 #define GOOGLE_SPD_OFFSET 0x400 |
| 41 #define GOOGLE_SPD_UUID "75f4926b-9e43-4b32-8979-eb20c0eda76a" |
| 42 #define GOOGLE_SPD_VENDOR "Google" |
| 43 #define GOOGLE_SPD_DESCRIPTION "Google SPD" |
| 44 #define GOOGLE_SPD_VARIANT "" |
| 45 |
| 46 #define GOOGLE_VPD_2_0_OFFSET 0x600 |
35 #define GOOGLE_VPD_2_0_UUID "0a7c23d3-8a27-4252-99bf-7868a2e26b61" | 47 #define GOOGLE_VPD_2_0_UUID "0a7c23d3-8a27-4252-99bf-7868a2e26b61" |
36 #define GOOGLE_VPD_2_0_VENDOR "Google" | 48 #define GOOGLE_VPD_2_0_VENDOR "Google" |
37 #define GOOGLE_VPD_2_0_DESCRIPTION "Google VPD 2.0" | 49 #define GOOGLE_VPD_2_0_DESCRIPTION "Google VPD 2.0" |
38 #define GOOGLE_VPD_2_0_VARIANT "" | 50 #define GOOGLE_VPD_2_0_VARIANT "" |
| 51 |
39 #define CONFIG_EPS_VPD_MAJOR_VERSION 2 | 52 #define CONFIG_EPS_VPD_MAJOR_VERSION 2 |
40 #define CONFIG_EPS_VPD_MINOR_VERSION 6 | 53 #define CONFIG_EPS_VPD_MINOR_VERSION 6 |
41 | 54 |
42 #endif /* __LIB_VPD_H__ */ | 55 #endif /* __LIB_VPD_H__ */ |
OLD | NEW |