|
@@ -148,8 +148,19 @@ struct smbios {
|
148
|
148
|
size_t len;
|
149
|
149
|
/** Number of SMBIOS structures */
|
150
|
150
|
unsigned int count;
|
|
151
|
+ /** SMBIOS version */
|
|
152
|
+ uint16_t version;
|
151
|
153
|
};
|
152
|
154
|
|
|
155
|
+/**
|
|
156
|
+ * Calculate SMBIOS version
|
|
157
|
+ *
|
|
158
|
+ * @v major Major version
|
|
159
|
+ * @v minor Minor version
|
|
160
|
+ * @ret version SMBIOS version
|
|
161
|
+ */
|
|
162
|
+#define SMBIOS_VERSION( major, minor ) ( ( (major) << 8 ) | (minor) )
|
|
163
|
+
|
153
|
164
|
extern int find_smbios ( struct smbios *smbios );
|
154
|
165
|
extern int find_smbios_structure ( unsigned int type,
|
155
|
166
|
struct smbios_structure *structure );
|
|
@@ -158,5 +169,6 @@ extern int read_smbios_structure ( struct smbios_structure *structure,
|
158
|
169
|
extern int read_smbios_string ( struct smbios_structure *structure,
|
159
|
170
|
unsigned int index,
|
160
|
171
|
void *data, size_t len );
|
|
172
|
+extern int smbios_version ( void );
|
161
|
173
|
|
162
|
174
|
#endif /* _IPXE_SMBIOS_H */
|