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 |
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__ */ |
OLD | NEW |