Adding upstream version 3.20.
[syslinux-debian/hramrach.git] / com32 / include / dmi / dmi_base_board.h
blob8de8adc0457c5e57afd08e1dc98aa77e78445bde
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2006 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_BASE_BOARD_H
14 #define DMI_BASE_BOARD_H
16 #include "stdbool.h"
17 #define BASE_BOARD_MANUFACTURER_SIZE 32
18 #define BASE_BOARD_PRODUCT_NAME_SIZE 32
19 #define BASE_BOARD_VERSION_SIZE 16
20 #define BASE_BOARD_SERIAL_SIZE 32
21 #define BASE_BOARD_ASSET_TAG_SIZE 32
22 #define BASE_BOARD_LOCATION_SIZE 32
23 #define BASE_BOARD_FEATURES_SIZE 32
24 #define BASE_BOARD_TYPE_SIZE 32
26 #define BASE_BOARD_NB_ELEMENTS 5
28 static const char *base_board_features_strings[]={
29 "Board is a hosting board", /* 0 */
30 "Board requires at least one daughter board",
31 "Board is removable",
32 "Board is replaceable",
33 "Board is hot swappable" /* 4 */
36 /* this struct have BASE_BOARD_NB_ELEMENTS */
37 /* each bool is associated to the relevant message above */
38 typedef struct {
39 bool hosting;
40 bool board_needs_daughter;
41 bool removable;
42 bool replaceable;
43 bool hot_swappable;
44 } __attribute__((__packed__)) s_base_board_features;
46 typedef struct {
47 char manufacturer[BASE_BOARD_MANUFACTURER_SIZE];
48 char product_name[BASE_BOARD_PRODUCT_NAME_SIZE];
49 char version[BASE_BOARD_VERSION_SIZE];
50 char serial[BASE_BOARD_SERIAL_SIZE];
51 char asset_tag[BASE_BOARD_ASSET_TAG_SIZE];
52 char location[BASE_BOARD_LOCATION_SIZE];
53 char type[BASE_BOARD_TYPE_SIZE];
54 s_base_board_features features;
55 } s_base_board;
57 #endif