summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/gplinclude/dmi/dmi_system.h
blob: 6bb053ff820a453cc800f9e7bb93634c121e084e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* ----------------------------------------------------------------------- *
 *
 *   Copyright 2006 Erwan Velu - All Rights Reserved
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
 *   Boston MA 02111-1307, USA; either version 2 of the License, or
 *   (at your option) any later version; incorporated herein by reference.
 *
 * ----------------------------------------------------------------------- */

#ifndef DMI_SYSTEM_H
#define DMI_SYSTEM_H

#define SYSTEM_MANUFACTURER_SIZE	32
#define SYSTEM_PRODUCT_NAME_SIZE	32
#define SYSTEM_VERSION_SIZE		16
#define SYSTEM_SERIAL_SIZE		32
#define SYSTEM_UUID_SIZE		40
#define SYSTEM_WAKEUP_TYPE_SIZE		32
#define SYSTEM_SKU_NUMBER_SIZE		32
#define SYSTEM_FAMILY_SIZE		32

#define SYSTEM_BOOT_STATUS_SIZE		50
#define SYSTEM_CONFIGURATION_OPTIONS_SIZE	50

typedef struct {
    char manufacturer[SYSTEM_MANUFACTURER_SIZE];
    char product_name[SYSTEM_PRODUCT_NAME_SIZE];
    char version[SYSTEM_VERSION_SIZE];
    char serial[SYSTEM_SERIAL_SIZE];
    char uuid[SYSTEM_UUID_SIZE];
    char wakeup_type[SYSTEM_WAKEUP_TYPE_SIZE];
    char sku_number[SYSTEM_SKU_NUMBER_SIZE];
    char family[SYSTEM_FAMILY_SIZE];
/* The filled field have to be set to true when the dmitable implement that item */
    bool filled;
    char system_boot_status[SYSTEM_BOOT_STATUS_SIZE];
    char configuration_options[SYSTEM_CONFIGURATION_OPTIONS_SIZE];
    struct {
	bool filled;
	uint8_t status;
	uint8_t watchdog;
	char boot_option[17];
	char boot_option_on_limit[17];
	char reset_count[8];
	char reset_limit[8];
	char timer_interval[8];
	char timeout[8];
    } system_reset;
} s_system;
#endif