libsmbios_c library
SmbiosLowLevel.h
Go to the documentation of this file.
1 // vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:
2 /*
3  * Copyright (C) 2005 Dell Inc.
4  * by Michael Brown <Michael_E_Brown@dell.com>
5  * Licensed under the Open Software License version 2.1
6  *
7  * Alternatively, you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published
9  * by the Free Software Foundation; either version 2 of the License,
10  * or (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  * See the GNU General Public License for more details.
16  */
17 
18 
19 #ifndef SMBIOSLOWLEVEL_H
20 #define SMBIOSLOWLEVEL_H
21 
22 // compat header should always be first header
23 #include "smbios/compat.h"
24 
25 #include "smbios/types.h"
26 
27 // abi_prefix should be last header included before declarations
29 
30 /*****************
31  * The smbiosLowlevel namespace has the low-level structures
32  * that appear in memory.
33  * */
34 namespace smbiosLowlevel
35 {
36 
37 #if defined(_MSC_VER)
38 #pragma pack(push,1)
39 #endif
41  {
45  }
47 
49  {
50  u8 anchor[5];
56  }
58 
60  {
61  u8 anchor[4];
72 
73 #if defined(_MSC_VER)
74 #pragma pack(pop)
75 #endif
76 
77 }
78 
79 // always should be last thing in header file
81 
82 #endif /* SMBIOSLOWLEVEL_H */
struct dmi_table_entry_point dmi
Definition: SmbiosLowLevel.h:69
u8 minor_ver
Definition: SmbiosLowLevel.h:65
u8 anchor[4]
Definition: SmbiosLowLevel.h:61
Definition: SmbiosLowLevel.h:40
u8 major_ver
Definition: SmbiosLowLevel.h:64
u8 formatted_area[5]
Definition: SmbiosLowLevel.h:68
u8 smbios_bcd_revision
Definition: SmbiosLowLevel.h:55
Definition: SmbiosLowLevel.h:48
u16 max_struct_size
Definition: SmbiosLowLevel.h:66
u8 checksum
Definition: SmbiosLowLevel.h:51
struct smbiosLowlevel::smbios_structure_header LIBSMBIOS_PACKED_ATTR
u8 anchor[5]
Definition: SmbiosLowLevel.h:50
Definition: SmbiosLowLevel.h:59
u8 eps_length
Definition: SmbiosLowLevel.h:63
u8 padding_for_Intel_BIOS_bugs
Definition: SmbiosLowLevel.h:70
u16 handle
Definition: SmbiosLowLevel.h:44
unsigned int u32
Definition: types.h:35
u32 table_address
Definition: SmbiosLowLevel.h:53
u8 revision
Definition: SmbiosLowLevel.h:67
u8 checksum
Definition: SmbiosLowLevel.h:62
unsigned short u16
Definition: types.h:31
unsigned char u8
Definition: types.h:27
u8 length
Definition: SmbiosLowLevel.h:43
u8 type
Definition: SmbiosLowLevel.h:42
u16 table_length
Definition: SmbiosLowLevel.h:52
u16 table_num_structs
Definition: SmbiosLowLevel.h:54