| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 uint8_t uuid[16]; | 95 uint8_t uuid[16]; |
| 96 uint32_t offset; | 96 uint32_t offset; |
| 97 uint32_t size; | 97 uint32_t size; |
| 98 } __attribute__ ((packed)); | 98 } __attribute__ ((packed)); |
| 99 | 99 |
| 100 /* The length and number of strings defined here is not a limitation of VPD. | 100 /* The length and number of strings defined here is not a limitation of VPD. |
| 101 * These numbers were deemed good enough during development. */ | 101 * These numbers were deemed good enough during development. */ |
| 102 #define VPD_MAX_STRINGS 10 | 102 #define VPD_MAX_STRINGS 10 |
| 103 #define VPD_MAX_STRING_LENGTH 64 | 103 #define VPD_MAX_STRING_LENGTH 64 |
| 104 | 104 |
| 105 /* One structure to rule them all */ | |
| 106 struct vpd_table { | |
| 107 struct vpd_header header; | |
| 108 union { | |
| 109 struct vpd_table_firmware firmware; | |
| 110 struct vpd_table_system system; | |
| 111 struct vpd_table_binary_blob_pointer blob; | |
| 112 uint8_t data[1024]; | |
| 113 } data; | |
| 114 char string[VPD_MAX_STRINGS][VPD_MAX_STRING_LENGTH]; | |
| 115 }; | |
| 116 | |
| 117 #endif /* __LIB_VPD_TABLES_H__ */ | 105 #endif /* __LIB_VPD_TABLES_H__ */ |
| OLD | NEW |