| 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 15 matching lines...) Expand all Loading... |
| 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 /* The default RO VPD location in BIOS image. | 33 /* The default RO VPD location in BIOS image. |
| 34 * If VPD partition cannot be found on fmap, buildEpsAndTables() will use | 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. | 35 * this value to count the offset fields of SPD and VPD 2.0. |
| 36 * | 36 * User can specify -E argument to change the EPS base value. |
| 37 * A user can specify -E argument to change the EPS base value. */ | 37 */ |
| 38 #define GOOGLE_EPS_BASE 0x000000 | 38 #define GOOGLE_EPS_BASE 0xFFFFFFFF |
| 39 /* 0xFFFFFFFF is a special value, which is the value of a blank flash. |
| 40 * It means we don't know the eps->table_address. |
| 41 * This usually happens when we are creating a new VPD partition without |
| 42 * knowing the flash topology (fmap). */ |
| 39 | 43 |
| 40 #define GOOGLE_SPD_OFFSET 0x400 | 44 #define GOOGLE_SPD_OFFSET 0x400 |
| 41 #define GOOGLE_SPD_UUID "75f4926b-9e43-4b32-8979-eb20c0eda76a" | 45 #define GOOGLE_SPD_UUID "75f4926b-9e43-4b32-8979-eb20c0eda76a" |
| 42 #define GOOGLE_SPD_VENDOR "Google" | 46 #define GOOGLE_SPD_VENDOR "Google" |
| 43 #define GOOGLE_SPD_DESCRIPTION "Google SPD" | 47 #define GOOGLE_SPD_DESCRIPTION "Google SPD" |
| 44 #define GOOGLE_SPD_VARIANT "" | 48 #define GOOGLE_SPD_VARIANT "" |
| 45 | 49 |
| 46 #define GOOGLE_VPD_2_0_OFFSET 0x600 | 50 #define GOOGLE_VPD_2_0_OFFSET 0x600 |
| 47 #define GOOGLE_VPD_2_0_UUID "0a7c23d3-8a27-4252-99bf-7868a2e26b61" | 51 #define GOOGLE_VPD_2_0_UUID "0a7c23d3-8a27-4252-99bf-7868a2e26b61" |
| 48 #define GOOGLE_VPD_2_0_VENDOR "Google" | 52 #define GOOGLE_VPD_2_0_VENDOR "Google" |
| 49 #define GOOGLE_VPD_2_0_DESCRIPTION "Google VPD 2.0" | 53 #define GOOGLE_VPD_2_0_DESCRIPTION "Google VPD 2.0" |
| 50 #define GOOGLE_VPD_2_0_VARIANT "" | 54 #define GOOGLE_VPD_2_0_VARIANT "" |
| 51 | 55 |
| 52 #define CONFIG_EPS_VPD_MAJOR_VERSION 2 | 56 #define CONFIG_EPS_VPD_MAJOR_VERSION 2 |
| 53 #define CONFIG_EPS_VPD_MINOR_VERSION 6 | 57 #define CONFIG_EPS_VPD_MINOR_VERSION 6 |
| 54 | 58 |
| 55 #endif /* __LIB_VPD_H__ */ | 59 #endif /* __LIB_VPD_H__ */ |
| OLD | NEW |