Adding upstream version 3.86+dfsg.
[syslinux-debian/hramrach.git] / com32 / gplinclude / dmi / dmi_memory.h
blob47ad7fcd4ed6e590d675981f68606c93299165fc
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2009 Erwan Velu - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
13 #ifndef DMI_MEMORY_H
14 #define DMI_MEMORY_H
16 #define MEMORY_MANUFACTURER_SIZE 32
17 #define MEMORY_ERROR_SIZE 16
18 #define MEMORY_TOTAL_WIDTH_SIZE 16
19 #define MEMORY_DATA_WIDTH_SIZE 16
20 #define MEMORY_SIZE_SIZE 32
21 #define MEMORY_FORM_FACTOR_SIZE 32
22 #define MEMORY_DEVICE_SET_SIZE 32
23 #define MEMORY_DEVICE_LOCATOR_SIZE 32
24 #define MEMORY_BANK_LOCATOR_SIZE 32
25 #define MEMORY_TYPE_SIZE 32
26 #define MEMORY_TYPE_DETAIL_SIZE 16
27 #define MEMORY_SPEED_SIZE 16
28 #define MEMORY_SERIAL_SIZE 16
29 #define MEMORY_ASSET_TAG_SIZE 16
30 #define MEMORY_PART_NUMBER_SIZE 16
32 typedef struct {
33 char manufacturer[MEMORY_MANUFACTURER_SIZE];
34 char error[MEMORY_ERROR_SIZE];
35 char total_width[MEMORY_TOTAL_WIDTH_SIZE];
36 char data_width[MEMORY_DATA_WIDTH_SIZE];
37 char size[MEMORY_SIZE_SIZE];
38 char form_factor[MEMORY_FORM_FACTOR_SIZE];
39 char device_set[MEMORY_DEVICE_SET_SIZE];
40 char device_locator[MEMORY_DEVICE_LOCATOR_SIZE];
41 char bank_locator[MEMORY_BANK_LOCATOR_SIZE];
42 char type[MEMORY_TYPE_SIZE];
43 char type_detail[MEMORY_TYPE_DETAIL_SIZE];
44 char speed[MEMORY_SPEED_SIZE];
45 char serial[MEMORY_SERIAL_SIZE];
46 char asset_tag[MEMORY_ASSET_TAG_SIZE];
47 char part_number[MEMORY_PART_NUMBER_SIZE];
48 /* The filled field have to be set to true when the dmitable implement that item */
49 bool filled;
50 } s_memory;
52 typedef struct {
53 char socket_designation[8];
54 char bank_connections[8];
55 char speed[8];
56 char type[48];
57 char installed_size[48];
58 char enabled_size[48];
59 char error_status[8];
60 bool filled;
61 } s_memory_module;
63 void dmi_memory_array_error_handle(uint16_t code, char *array);
64 void dmi_memory_device_width(uint16_t code, char *width);
65 void dmi_memory_device_size(uint16_t code, char *size);
66 const char *dmi_memory_device_form_factor(uint8_t code);
67 void dmi_memory_device_set(uint8_t code, char *set);
68 const char *dmi_memory_device_type(uint8_t code);
69 void dmi_memory_device_type_detail(uint16_t code, char *type_detail);
70 void dmi_memory_device_speed(uint16_t code, char *speed);
72 void dmi_memory_module_connections(uint8_t, char *);
73 void dmi_memory_module_speed(uint8_t, char *);
74 void dmi_memory_module_types(uint16_t, const char *, char *);
75 void dmi_memory_module_size(uint8_t, char *);
76 void dmi_memory_module_error(uint8_t, const char *, char *);
77 #endif