SMBIOS Library
TokenLowLevel.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 CMOSTOKENLOWLEVEL_H
20 #define CMOSTOKENLOWLEVEL_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 namespace smbios
31 {
32 #if defined(_MSC_VER)
33 #pragma pack(push,1)
34 #endif
35  enum // Smbios Structure types
36  {
41  };
42 
43  enum // Token types
44  {
45  TokenTypeEOT = 0xffff,
46  };
47 
49  {
53  union {
56  };
57  }
59 
61  { /* 0xD4 structure */
71  //variable number of tokens present, but at least one.
73  }
75 
76 
78  { /* 0xD5 structure */
91  }
93 
95  { /* 0xD6 structure */
112  }
114 
116  {
118  u16 location; // 0 for string tokens
119  union {
122  };
123  }
125 
127  { /* 0xDA structure */
131 
135 
136  //variable number of tokens present, zero or more possible
137  //would _really_ like to do:
138  // struct calling_interface_token token_array[];
139  //
140  //but cannot because it is a gcc extension. :-(
142  }
144 
145  enum // protected value format types
146  {
151  };
152 
153 
154 #if defined(_MSC_VER)
155 #pragma pack(pop)
156 #endif
157 }
158 
159 // always should be last thing in header file
161 
162 #endif /* CMOSTOKENLOWLEVEL_H */