/
types.go
101 lines (98 loc) · 2.05 KB
/
types.go
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package smbios
// StructureType Structure definition type
type StructureType byte
const (
BIOS StructureType = iota
System
BaseBoard
Chassis
Processor
Controller
Module
Cache
PortConnector
SystemSlots
OnBoardDevices
OEMStrings
SystemConfigurationOptions
BIOSLanguage
GroupAssociations
SystemEventLog
PhysicalMemoryArray
MemoryDevice
Bit32MemoryError
MemoryArrayMappedAddress
MemoryDeviceMappedAddress
BuiltInPointingDevice
PortableBattery
SystemReset
HardwareSecurity
SystemPowerControls
VoltageProbe
CoolingDevice
TemperatureProbe
ElectricalCurrentProbe
OutOfBandRemoteAccess
BootIntegrityServices
SystemBoot
Bit64MemoryError
ManagementDevice
ManagementDeviceComponent
ManagementDeviceThresholdData
MemoryChannel
IPMIDevice
PowerSupply
AdditionalInformation
OnBoardDevicesExtendedInformation
ManagementControllerHostInterface /*42*/
Inactive StructureType = 126
EndOfTable StructureType = 127
)
func (b StructureType) String() string {
types := [...]string{
"BIOS", /* 0 */
"System",
"Base Board",
"Chassis",
"Processor",
"Memory Controller",
"Memory Module",
"Cache",
"Port Connector",
"System Slots",
"On Board Devices",
"OEM Strings",
"System Configuration Options",
"BIOS Language",
"Group Associations",
"System Event Log",
"Physical Memory Array",
"Memory Device",
"32-bit Memory Error",
"Memory Array Mapped Address",
"Memory Device Mapped Address",
"Built-in Pointing Device",
"Portable Battery",
"System Reset",
"Hardware Security",
"System Power Controls",
"Voltage Probe",
"Cooling Device",
"Temperature Probe",
"Electrical Current Probe",
"Out-of-band Remote Access",
"Boot Integrity Services",
"System Boot",
"64-bit Memory Error",
"Management Device",
"Management Device Component",
"Management Device Threshold Data",
"Memory Channel",
"IPMI Device",
"Power Supply",
"Additional Information",
"Onboard Device",
"Management Controller Host Interface", /* 42 */
}
return types[b]
}