Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: include/lib/vpd_tables.h

Issue 6628052: Supports SPD in VPD partition. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vpd.git@master
Patch Set: refine the logic to next structure table. refine type 241 parameters. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/lib/vpd.h ('k') | lib/lib_smbios.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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__ */
OLDNEW
« no previous file with comments | « include/lib/vpd.h ('k') | lib/lib_smbios.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698