Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Characteristics ¶
type Characteristics uint64
Characteristics bios字符集
const ( Reserved0 Characteristics = 1 << iota Reserved1 Unknown NotSupported ISASupported MCASupported EISASupported PCISupported PCMCIASupported PlugPlaySupported APMSupported Upgradeable ShadowingIsAllowed VLVESASupported ESCDSupported BootFromCDSupported SelectableBootSupported BIOSROMIsSockectd BootFromPCMCIASupported EDDSupported JPFloppyNECSupported JPFloppyToshibaSupported Floppy525_360KBSupported Floppy525_1_2MBSupported Floppy35_720KBSupported Floppy35_2_88MBSupported PrintScreenSupported Keyboard8042Supported SerialSupported PrinterSupported CGAMonoSupported NECPC98 )
BIOS Characteristics
func (Characteristics) String ¶
func (b Characteristics) String() string
type Ext1 ¶
type Ext1 byte
Ext1 ext1
type Ext2 ¶
type Ext2 byte
Ext2 ext2
type Information ¶
type Information struct { smbios.Header Vendor string `json:"vendor,omitempty"` BIOSVersion string `json:"bios_version,omitempty"` StartingAddressSegment uint16 `json:"starting_address_segment,omitempty"` ReleaseDate string `json:"release_date,omitempty"` RomSize RomSize `json:"rom_size,omitempty"` RuntimeSize RuntimeSize `json:"runtime_size,omitempty"` Characteristics Characteristics `json:"characteristics,omitempty"` CharacteristicsExt1 Ext1 `json:"characteristics_ext_1,omitempty"` CharacteristicsExt2 Ext2 `json:"characteristics_ext_2,omitempty"` SystemBIOSMajorRelease byte `json:"system_bios_major_release,omitempty"` SystemBIOSMinorRelease byte `json:"system_bios_minor_release,omitempty"` EmbeddedControllerFirmwareMajorRelease byte `json:"firmware_major_release,omitempty"` EmbeddedControllerFirmawreMinorRelease byte `json:"firmawre_minor_release,omitempty"` }
Information bios信息
func Parse ¶
func Parse(s *smbios.Structure) (info *Information, err error)
Parse 参考 https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.1.1.pdf
func (Information) String ¶
func (b Information) String() string
type RuntimeSize ¶
type RuntimeSize uint
RuntimeSize todo
func (RuntimeSize) String ¶
func (b RuntimeSize) String() string
Click to show internal directories.
Click to hide internal directories.