type43

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2025 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package type43 implements SMBIOS Type 43 - TPM Device Per DSP0134 SMBIOS Reference Specification 3.9.0

Index

Constants

View Source
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 Get

func Get(sm *gosmbios.SMBIOS) (*TPMDevice, error)

Get retrieves the TPM Device from SMBIOS data

func Parse

func Parse(s *gosmbios.Structure) (*TPMDevice, error)

Parse parses a TPM Device structure from raw SMBIOS data

func (*TPMDevice) Family

func (t *TPMDevice) Family() string

Family returns the TPM family as a string

func (*TPMDevice) FirmwareVersionString

func (t *TPMDevice) FirmwareVersionString() string

FirmwareVersionString returns the firmware version as a string

func (*TPMDevice) IsSupported

func (t *TPMDevice) IsSupported() bool

IsSupported returns true if the TPM is supported

func (*TPMDevice) SpecVersionString

func (t *TPMDevice) SpecVersionString() string

SpecVersionString returns the specification version as a string

func (*TPMDevice) VendorIDString

func (t *TPMDevice) VendorIDString() string

VendorIDString returns the vendor ID as a string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL