Documentation
¶
Overview ¶
Package type43 implements SMBIOS Type 43 - TPM Device Per DSP0134 SMBIOS Reference Specification 3.9.0
Index ¶
Constants ¶
const StructureType uint8 = 43
StructureType is the SMBIOS structure type for TPM Device
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Characteristics ¶
type Characteristics uint64
Characteristics represents TPM device characteristics
const ( CharTPMDeviceNotSupported Characteristics = 1 << 2 CharTPMDeviceFamilyConfigurable Characteristics = 1 << 3 CharTPMDeviceFamilyIsTPM2_0 Characteristics = 1 << 4 CharTPMDeviceFamilyIsTPM1_2 Characteristics = 1 << 5 )
func (Characteristics) IsFamilyConfigurable ¶
func (c Characteristics) IsFamilyConfigurable() bool
IsFamilyConfigurable returns true if TPM family is configurable by platform software
func (Characteristics) IsSupported ¶
func (c Characteristics) IsSupported() bool
IsSupported returns true if TPM device is supported
func (Characteristics) IsTPM1_2 ¶
func (c Characteristics) IsTPM1_2() bool
IsTPM1_2 returns true if TPM family is TPM 1.2
func (Characteristics) IsTPM2_0 ¶
func (c Characteristics) IsTPM2_0() bool
IsTPM2_0 returns true if TPM family is TPM 2.0
func (Characteristics) String ¶
func (c Characteristics) String() string
type TPMDevice ¶
type TPMDevice struct {
Header gosmbios.Header
VendorID [4]byte
MajorSpecVersion uint8
MinorSpecVersion uint8
FirmwareVersion1 uint32
FirmwareVersion2 uint32
Description string
Characteristics Characteristics
OEMDefined uint32
}
TPMDevice represents Type 43 - TPM Device
func (*TPMDevice) FirmwareVersionString ¶
FirmwareVersionString returns the firmware version as a string
func (*TPMDevice) IsSupported ¶
IsSupported returns true if the TPM is supported
func (*TPMDevice) SpecVersionString ¶
SpecVersionString returns the specification version as a string
func (*TPMDevice) VendorIDString ¶
VendorIDString returns the vendor ID as a string