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

Side by Side Diff: include/lib/lib_smbios.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 | « no previous file | include/lib/vpd.h » ('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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software 15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
17 * 17 *
18 * Ported from mosys project (http://code.google.com/p/mosys/) 18 * Ported from mosys project (http://code.google.com/p/mosys/)
19 */ 19 */
20 20
21 #ifndef __LIB_LIB_SMBIOS__ 21 #ifndef __LIB_LIB_SMBIOS__
22 #define __LIB_LIB_SMBIOS__ 22 #define __LIB_LIB_SMBIOS__
23 23
24 #include <inttypes.h> 24 #include <inttypes.h>
25 #include "lib/vpd_tables.h"
25 26
26 struct vpd_entry *vpd_create_eps(unsigned short structure_table_len, 27 struct vpd_entry *vpd_create_eps(unsigned short structure_table_len,
27 unsigned short num_structures, 28 unsigned short num_structures,
28 uint32_t eps_base); 29 uint32_t eps_base);
29 int vpd_append_type241(uint16_t handle, uint8_t **buf, 30 int vpd_append_type241(uint16_t handle, uint8_t **buf,
30 size_t len, const char *uuid, uint32_t offset, 31 size_t len, const char *uuid, uint32_t offset,
31 uint32_t size, const char *vendor, 32 uint32_t size, const char *vendor,
32 const char *desc, const char *variant); 33 const char *desc, const char *variant);
34 int vpd_type241_size(struct vpd_header *header);
33 int vpd_append_type127(uint16_t handle, 35 int vpd_append_type127(uint16_t handle,
34 uint8_t **buf, size_t len); 36 uint8_t **buf, size_t len);
35 37
36 #endif /* __LIB_LIB_SMBIOS__ */ 38 #endif /* __LIB_LIB_SMBIOS__ */
OLDNEW
« no previous file with comments | « no previous file | include/lib/vpd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698