SMBIOS Library
SmiLowLevel.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 SMILOWLEVEL_H
20 #define SMILOWLEVEL_H
21 
22 #include "smbios/types.h"
23 
24 // abi_prefix should be last header included before declarations
26 
27 namespace smi
28 {
29 #if defined(_MSC_VER)
30 #pragma pack(push,1)
31 #endif
32 
33 
34  /* cut and paste from kernel sources */
35  struct callintf_cmd
36  {
43  /*this should be 'u8 command_buffer[]', but it is not supported in VC6
44  therefore, we just hack it, I guess. Remember to subtract this from
45  the size when taking the sizeof this struct
46  */
48  }
50 
51 #define KERNEL_SMI_MAGIC_NUMBER (0x534D4931) /* "SMI1" */
52 #define DELL_CALLINTF_SMI_MAGIC_NUMBER (0x42534931) /* "BSI1" */
53 
55  {
58  union { /* to match BIOS docs, can use exact arg names specified in doc */
60  struct
61  {
66  };
67  };
68  union { /* to match BIOS docs, can use exact res names specified in doc */
70  struct
71  {
76  };
77  };
78  }
80 
81  enum
82  {
85  };
86 
87 
88 #if defined(_MSC_VER)
89 #pragma pack(pop)
90 #endif
91 }
92 
93 // always should be last thing in header file
95 
96 #endif /* SMILOWLEVEL_H */