Documentation ¶
Index ¶
- Constants
- func FieldValueToNumber(value []byte) uint64
- func NumberToFieldValue(n uint64) []byte
- func ValueBytes(reg Register) ([]byte, error)
- type ACMPolicyStatus
- func (reg ACMPolicyStatus) Address() uint64
- func (reg ACMPolicyStatus) BackupAction() BackupAction
- func (reg ACMPolicyStatus) BitSize() uint8
- func (reg ACMPolicyStatus) BootPolicyDBI() bool
- func (reg ACMPolicyStatus) BootPolicyDCD() bool
- func (reg ACMPolicyStatus) BootPolicyHAP() bool
- func (reg ACMPolicyStatus) BootPolicyM() bool
- func (reg ACMPolicyStatus) BootPolicyP() bool
- func (reg ACMPolicyStatus) BootPolicyPBE() bool
- func (reg ACMPolicyStatus) BootPolicyT() bool
- func (reg ACMPolicyStatus) BootPolicyV() bool
- func (reg ACMPolicyStatus) CPUCoSigningEnabled() bool
- func (reg ACMPolicyStatus) Fields() []Field
- func (reg ACMPolicyStatus) IBBDmaProtection() bool
- func (reg ACMPolicyStatus) ID() RegisterID
- func (reg ACMPolicyStatus) KMID() uint8
- func (reg ACMPolicyStatus) MemoryScrubbingPolicy() MemoryScrubbingPolicy
- func (reg ACMPolicyStatus) Raw() uint64
- func (reg ACMPolicyStatus) SCRTMStatus() SCRTMStatus
- func (reg ACMPolicyStatus) TPMStartupLocality() TPMStartupLocality
- func (reg ACMPolicyStatus) TPMSuccess() bool
- func (reg ACMPolicyStatus) TPMType() TPMType
- func (reg ACMPolicyStatus) TXTProfileSelection() uint8
- func (reg ACMPolicyStatus) Value() interface{}
- type ACMStatus
- func (reg ACMStatus) ACMStarted() bool
- func (reg ACMStatus) Address() uint64
- func (reg ACMStatus) BitSize() uint8
- func (reg ACMStatus) ClassCode() uint8
- func (reg ACMStatus) Fields() []Field
- func (reg ACMStatus) ID() RegisterID
- func (reg ACMStatus) MajorErrorCode() uint8
- func (reg ACMStatus) MinorErrorCode() uint16
- func (reg ACMStatus) ModuleType() uint8
- func (reg ACMStatus) Raw() uint64
- func (reg ACMStatus) Valid() bool
- func (reg ACMStatus) Value() interface{}
- type BTGSACMInfo
- func (reg BTGSACMInfo) Address() uint64
- func (reg BTGSACMInfo) BitSize() uint8
- func (reg BTGSACMInfo) BootGuardCapability() bool
- func (reg BTGSACMInfo) Fields() []Field
- func (reg BTGSACMInfo) ForceAnchorBoot() bool
- func (reg BTGSACMInfo) ID() RegisterID
- func (reg BTGSACMInfo) Measured() bool
- func (reg BTGSACMInfo) ModuleRevoked() bool
- func (reg BTGSACMInfo) NEMEnabled() bool
- func (reg BTGSACMInfo) NoResetSecretsProtection() bool
- func (reg BTGSACMInfo) Raw() uint64
- func (reg BTGSACMInfo) ServerTXTCapability() bool
- func (reg BTGSACMInfo) TPMSuccess() bool
- func (reg BTGSACMInfo) TPMType() TPMType
- func (reg BTGSACMInfo) Value() interface{}
- func (reg BTGSACMInfo) Verified() bool
- type BackupAction
- type BootGuardPBEC
- type DMAProtectedRange
- type DefaultMSRReader
- type Field
- type FieldDescription
- type IA32DebugInterface
- func (reg IA32DebugInterface) Address() uint64
- func (reg IA32DebugInterface) BitSize() uint8
- func (reg IA32DebugInterface) DebugOccurred() bool
- func (reg IA32DebugInterface) Enabled() bool
- func (reg IA32DebugInterface) Fields() []Field
- func (reg IA32DebugInterface) ID() RegisterID
- func (reg IA32DebugInterface) Locked() bool
- func (reg IA32DebugInterface) Raw() uint64
- func (reg IA32DebugInterface) Value() interface{}
- type IA32FeatureControl
- func (reg IA32FeatureControl) Address() uint64
- func (reg IA32FeatureControl) BitSize() uint8
- func (reg IA32FeatureControl) Fields() []Field
- func (reg IA32FeatureControl) ID() RegisterID
- func (reg IA32FeatureControl) Locked() bool
- func (reg IA32FeatureControl) Raw() uint64
- func (reg IA32FeatureControl) SENTEREnables() uint8
- func (reg IA32FeatureControl) SENTERGlobalEnable() bool
- func (reg IA32FeatureControl) VMXInSMXEnabled() bool
- func (reg IA32FeatureControl) VMXOutsideSMXEnabled() bool
- func (reg IA32FeatureControl) Value() interface{}
- type IA32MTRRCAP
- func (reg IA32MTRRCAP) Address() uint64
- func (reg IA32MTRRCAP) BitSize() uint8
- func (reg IA32MTRRCAP) Fields() []Field
- func (reg IA32MTRRCAP) FixedRangedRegisteredSupported() bool
- func (reg IA32MTRRCAP) ID() RegisterID
- func (reg IA32MTRRCAP) Raw() uint64
- func (reg IA32MTRRCAP) SMRRInterfaceSupported() bool
- func (reg IA32MTRRCAP) Value() interface{}
- func (reg IA32MTRRCAP) VariableRangeRegistersCount() uint8
- func (reg IA32MTRRCAP) WriteCombiningMemoryTypeSupported() bool
- type IA32PlatformID
- func (reg IA32PlatformID) Address() uint64
- func (reg IA32PlatformID) BitSize() uint8
- func (reg IA32PlatformID) Fields() []Field
- func (reg IA32PlatformID) ID() RegisterID
- func (reg IA32PlatformID) ProcessorFlag() uint8
- func (reg IA32PlatformID) Raw() uint64
- func (reg IA32PlatformID) Value() interface{}
- type IA32SMRRPhysBase
- func (reg IA32SMRRPhysBase) Address() uint64
- func (reg IA32SMRRPhysBase) BitSize() uint8
- func (reg IA32SMRRPhysBase) Fields() []Field
- func (reg IA32SMRRPhysBase) ID() RegisterID
- func (reg IA32SMRRPhysBase) PhysBase() uint32
- func (reg IA32SMRRPhysBase) Raw() uint64
- func (reg IA32SMRRPhysBase) Type() uint8
- func (reg IA32SMRRPhysBase) Value() interface{}
- type IA32SMRRPhysMask
- func (reg IA32SMRRPhysMask) Address() uint64
- func (reg IA32SMRRPhysMask) BitSize() uint8
- func (reg IA32SMRRPhysMask) Fields() []Field
- func (reg IA32SMRRPhysMask) ID() RegisterID
- func (reg IA32SMRRPhysMask) PhysMask() uint32
- func (reg IA32SMRRPhysMask) Raw() uint64
- func (reg IA32SMRRPhysMask) Valid() bool
- func (reg IA32SMRRPhysMask) Value() interface{}
- type MP0C2PMsg37
- type MP0C2PMsg38
- type MSRReader
- type MemoryScrubbingPolicy
- type PhysicalMemoryReader
- type RawRegister
- type RawRegister16
- type RawRegister32
- type RawRegister64
- type RawRegister8
- type Register
- type RegisterID
- type Registers
- func (regs Registers) Find(id RegisterID) Register
- func (regs Registers) MarshalJSON() ([]byte, error)
- func (regs Registers) MarshalYAML() (interface{}, error)
- func (regs Registers) Sort()
- func (regs *Registers) UnmarshalJSON(b []byte) error
- func (regs *Registers) UnmarshalYAML(value *yaml.Node) error
- type SCRTMStatus
- type TPMStartupLocality
- type TPMType
- type TXTBootStatus
- func (reg TXTBootStatus) ACMAuthenticationError() bool
- func (reg TXTBootStatus) Address() uint64
- func (reg TXTBootStatus) BIOSTrusted() bool
- func (reg TXTBootStatus) BitSize() uint8
- func (reg TXTBootStatus) BootStatus() uint16
- func (reg TXTBootStatus) BootStatusDetails() uint8
- func (reg TXTBootStatus) BootStatusDetails2() uint8
- func (reg TXTBootStatus) BootStatusDetails3() bool
- func (reg TXTBootStatus) Fields() []Field
- func (reg TXTBootStatus) ID() RegisterID
- func (reg TXTBootStatus) MemoryPowerDownExecuted() bool
- func (reg TXTBootStatus) Raw() uint64
- func (reg TXTBootStatus) SACMASuccess() bool
- func (reg TXTBootStatus) TXTPolicyDisable() bool
- func (reg TXTBootStatus) TXTPolicyEnable() bool
- func (reg TXTBootStatus) TXTStartupSuccess() bool
- func (reg TXTBootStatus) Value() interface{}
- type TXTConfigSpace
- type TXTDMAProtectedRange
- func (reg TXTDMAProtectedRange) Address() uint64
- func (reg TXTDMAProtectedRange) BitSize() uint8
- func (reg TXTDMAProtectedRange) DMAProtectedRange() DMAProtectedRange
- func (reg TXTDMAProtectedRange) Fields() []Field
- func (reg TXTDMAProtectedRange) ID() RegisterID
- func (reg TXTDMAProtectedRange) Raw() uint32
- func (reg TXTDMAProtectedRange) Value() interface{}
- type TXTDeviceID
- func (reg TXTDeviceID) Address() uint64
- func (reg TXTDeviceID) BitSize() uint8
- func (reg TXTDeviceID) DeviceID() uint16
- func (reg TXTDeviceID) ExtendedID() uint16
- func (reg TXTDeviceID) Fields() []Field
- func (reg TXTDeviceID) ID() RegisterID
- func (reg TXTDeviceID) Raw() uint64
- func (reg TXTDeviceID) RevisionID() uint16
- func (reg TXTDeviceID) Value() interface{}
- func (reg TXTDeviceID) VendorID() uint16
- type TXTErrorCode
- func (reg TXTErrorCode) Address() uint64
- func (reg TXTErrorCode) BitSize() uint8
- func (reg TXTErrorCode) ClassCode() uint8
- func (reg TXTErrorCode) Fields() []Field
- func (reg TXTErrorCode) ID() RegisterID
- func (reg TXTErrorCode) MajorErrorCode() uint8
- func (reg TXTErrorCode) MinorErrorCode() uint16
- func (reg TXTErrorCode) ModuleType() uint8
- func (reg TXTErrorCode) ProcessorOrSoftwareReporter() TXTErrorReporter
- func (reg TXTErrorCode) Raw() uint32
- func (reg TXTErrorCode) SoftwareSource() bool
- func (reg TXTErrorCode) Type1Reserved() uint8
- func (reg TXTErrorCode) Valid() bool
- func (reg TXTErrorCode) Value() interface{}
- type TXTErrorReporter
- type TXTErrorStatus
- type TXTHeapBase
- type TXTHeapSize
- type TXTMLEJoin
- type TXTPublicKey
- type TXTSInitBase
- type TXTSInitSize
- type TXTStatus
- func (reg TXTStatus) Address() uint64
- func (reg TXTStatus) BitSize() uint8
- func (reg TXTStatus) Fields() []Field
- func (reg TXTStatus) ID() RegisterID
- func (reg TXTStatus) Locality1Open() bool
- func (reg TXTStatus) Locality2Open() bool
- func (reg TXTStatus) MemConfigLock() bool
- func (reg TXTStatus) PrivateOpen() bool
- func (reg TXTStatus) Raw() uint64
- func (reg TXTStatus) SEnterDone() bool
- func (reg TXTStatus) SExitDone() bool
- func (reg TXTStatus) Value() interface{}
- type TXTVerEMIF
- type TXTVerFSBIF
Constants ¶
const ( // TxtTPMDecode for external use TxtTPMDecode = 0xFED40000 // TxtTPMDecodeSize is the size of the TCG defined TIS MMIO space TxtTPMDecodeSize = 0x5000 // TxtPublicSpace for external test TxtPublicSpace = 0xFED30000 // TxtPublicSpaceSize exports the size of TXTPublicSpace in memory map TxtPublicSpaceSize = 0x10000 // TxtPrivateSpace for external test TxtPrivateSpace = 0xFED20000 // TxtPrivateSpaceSize for external test TxtPrivateSpaceSize = 0x10000 )
const ACMPolicyStatusRegisterOffset = 0x378
const ACMStatusRegisterOffset = 0x328
const BTGSACMInfoRegisterID = "BTG_SACM_INFO"
const BTGSACMInfoRegisterOffset = 0x13A
const BootGuardPBECRegisterID = "BOOT_GUARD_PBEC"
const BootGuardPBECRegisterOffset = 0x139
const IA32DebugInterfaceRegisterID = "IA32_DEBUG_INTERFACE"
const IA32DebugInterfaceRegisterOffset = 0xC80
const IA32FeatureControlRegisterID = "IA32_FEATURE_CONTROL"
const IA32FeatureControlRegisterOffset = 0x3A
const IA32MTRRCAPRegisterID = "IA32_MTRRCAP"
const IA32MTRRCAPRegisterOffset = 0xfe
const IA32PlatformIDRegisterID = "IA32_PLATFORM_ID"
const IA32PlatformIDRegisterOffset = 0x17
const IA32SMRRPhysBaseRegisterID = "IA32_SMRR_PHYSBASE"
const IA32SMRRPhysBaseRegisterOffset = 0x1F2
const IA32SMRRPhysMaskRegisterID = "IA32_SMRR_PHYSMASK"
const IA32SMRRPhysMaskRegisterOffset = 0x1F3
const TXTBootStatusRegisterOffset = 0xA0
const TXTDMAProtectedRangeRegisterOffset = 0x330
const TXTDeviceIDRegisterOffset = 0x110
const TXTErrorCodeRegisterOffset = 0x30
const TXTErrorStatusRegisterOffset = 0x8
const TXTHeapBaseRegisterOffset = 0x300
const TXTHeapSizeRegisterOffset = 0x308
const TXTMLEJoinRegisterOffset = 0x290
const TXTPublicKeyRegisterOffset = 0x400
const TXTSINITBaseRegisterOffset = 0x270
const TXTSINITSizeRegisterOffset = 0x278
const TXTStatusRegisterOffset = 0
const TXTVerEMIfRegisterOffset = 0x200
const TXTVerFSBIfRegisterOffset = 0x100
Variables ¶
This section is empty.
Functions ¶
func FieldValueToNumber ¶
FieldValueToNumber restores a number from a byte array in little endian format Used for Field.Value
func NumberToFieldValue ¶
NumberToFieldValue packs a given number into bytes array in little endian format Used for Field.Value
func ValueBytes ¶
ValueBytes puts register's internal value into a sequence of bytes TODO: use dynamic conversion instead of hard-code
Types ¶
type ACMPolicyStatus ¶
type ACMPolicyStatus uint64
func FindACMPolicyStatus ¶
func FindACMPolicyStatus(regs Registers) (ACMPolicyStatus, bool)
FindACMPolicyStatus returns ACMPolicyStatus register if found
func ParseACMPolicyStatusRegister ¶
func ParseACMPolicyStatusRegister(raw uint64) ACMPolicyStatus
ParseACMPolicyStatusRegister returns ACMPolicyStatus from a raw 64bit value
func ReadACMPolicyStatusRegister ¶
func ReadACMPolicyStatusRegister(data TXTConfigSpace) (ACMPolicyStatus, error)
ReadACMPolicyStatusRegister reads the raw ACM policy status register from TXT config
func (ACMPolicyStatus) Address ¶
func (reg ACMPolicyStatus) Address() uint64
func (ACMPolicyStatus) BackupAction ¶
func (reg ACMPolicyStatus) BackupAction() BackupAction
func (ACMPolicyStatus) BitSize ¶
func (reg ACMPolicyStatus) BitSize() uint8
func (ACMPolicyStatus) BootPolicyDBI ¶
func (reg ACMPolicyStatus) BootPolicyDBI() bool
func (ACMPolicyStatus) BootPolicyDCD ¶
func (reg ACMPolicyStatus) BootPolicyDCD() bool
func (ACMPolicyStatus) BootPolicyHAP ¶
func (reg ACMPolicyStatus) BootPolicyHAP() bool
func (ACMPolicyStatus) BootPolicyM ¶
func (reg ACMPolicyStatus) BootPolicyM() bool
func (ACMPolicyStatus) BootPolicyP ¶
func (reg ACMPolicyStatus) BootPolicyP() bool
func (ACMPolicyStatus) BootPolicyPBE ¶
func (reg ACMPolicyStatus) BootPolicyPBE() bool
func (ACMPolicyStatus) BootPolicyT ¶
func (reg ACMPolicyStatus) BootPolicyT() bool
func (ACMPolicyStatus) BootPolicyV ¶
func (reg ACMPolicyStatus) BootPolicyV() bool
func (ACMPolicyStatus) CPUCoSigningEnabled ¶
func (reg ACMPolicyStatus) CPUCoSigningEnabled() bool
func (ACMPolicyStatus) Fields ¶
func (reg ACMPolicyStatus) Fields() []Field
func (ACMPolicyStatus) IBBDmaProtection ¶
func (reg ACMPolicyStatus) IBBDmaProtection() bool
func (ACMPolicyStatus) ID ¶
func (reg ACMPolicyStatus) ID() RegisterID
func (ACMPolicyStatus) KMID ¶
func (reg ACMPolicyStatus) KMID() uint8
func (ACMPolicyStatus) MemoryScrubbingPolicy ¶
func (reg ACMPolicyStatus) MemoryScrubbingPolicy() MemoryScrubbingPolicy
func (ACMPolicyStatus) Raw ¶
func (reg ACMPolicyStatus) Raw() uint64
func (ACMPolicyStatus) SCRTMStatus ¶
func (reg ACMPolicyStatus) SCRTMStatus() SCRTMStatus
func (ACMPolicyStatus) TPMStartupLocality ¶
func (reg ACMPolicyStatus) TPMStartupLocality() TPMStartupLocality
func (ACMPolicyStatus) TPMSuccess ¶
func (reg ACMPolicyStatus) TPMSuccess() bool
func (ACMPolicyStatus) TPMType ¶
func (reg ACMPolicyStatus) TPMType() TPMType
func (ACMPolicyStatus) TXTProfileSelection ¶
func (reg ACMPolicyStatus) TXTProfileSelection() uint8
func (ACMPolicyStatus) Value ¶
func (reg ACMPolicyStatus) Value() interface{}
Value returns the raw value wrapped into an interface.
type ACMStatus ¶
type ACMStatus uint32
ACMStatus holds the decoded ACM run state
func FindACMStatus ¶
FindACMStatus returns ACMStatus register if found
func ParseACMStatusRegister ¶
ParseACMStatusRegister returns ACMStatus from a raw 64bit value
func ReadACMStatusRegister ¶
func ReadACMStatusRegister(data TXTConfigSpace) (ACMStatus, error)
ReadACMStatusRegister reads the raw ACM status register from TXT config
func (ACMStatus) ACMStarted ¶
func (ACMStatus) ID ¶
func (reg ACMStatus) ID() RegisterID
func (ACMStatus) MajorErrorCode ¶
func (ACMStatus) MinorErrorCode ¶
func (ACMStatus) ModuleType ¶
type BTGSACMInfo ¶
type BTGSACMInfo uint64
func FindBTGSACMInfo ¶
func FindBTGSACMInfo(regs Registers) (BTGSACMInfo, bool)
FindBTGSACMInfo returns BTGSACMInfo register if found
func ParseBTGSACMInfo ¶
func ParseBTGSACMInfo(raw uint64) BTGSACMInfo
ParseBTGSACMInfo returns BootGuardPBEC from a raw 64bit value
func ReadBTGSACMInfo ¶
func ReadBTGSACMInfo(msrReader MSRReader) (BTGSACMInfo, error)
ReadBTGSACMInfo reads IA32FeatureControl MSR register
func (BTGSACMInfo) Address ¶
func (reg BTGSACMInfo) Address() uint64
func (BTGSACMInfo) BitSize ¶
func (reg BTGSACMInfo) BitSize() uint8
func (BTGSACMInfo) BootGuardCapability ¶
func (reg BTGSACMInfo) BootGuardCapability() bool
func (BTGSACMInfo) Fields ¶
func (reg BTGSACMInfo) Fields() []Field
func (BTGSACMInfo) ForceAnchorBoot ¶
func (reg BTGSACMInfo) ForceAnchorBoot() bool
func (BTGSACMInfo) ID ¶
func (reg BTGSACMInfo) ID() RegisterID
func (BTGSACMInfo) Measured ¶
func (reg BTGSACMInfo) Measured() bool
func (BTGSACMInfo) ModuleRevoked ¶
func (reg BTGSACMInfo) ModuleRevoked() bool
func (BTGSACMInfo) NEMEnabled ¶
func (reg BTGSACMInfo) NEMEnabled() bool
func (BTGSACMInfo) NoResetSecretsProtection ¶
func (reg BTGSACMInfo) NoResetSecretsProtection() bool
func (BTGSACMInfo) Raw ¶
func (reg BTGSACMInfo) Raw() uint64
func (BTGSACMInfo) ServerTXTCapability ¶
func (reg BTGSACMInfo) ServerTXTCapability() bool
func (BTGSACMInfo) TPMSuccess ¶
func (reg BTGSACMInfo) TPMSuccess() bool
func (BTGSACMInfo) TPMType ¶
func (reg BTGSACMInfo) TPMType() TPMType
func (BTGSACMInfo) Value ¶
func (reg BTGSACMInfo) Value() interface{}
Value returns the raw value wrapped into an interface.
func (BTGSACMInfo) Verified ¶
func (reg BTGSACMInfo) Verified() bool
type BackupAction ¶
type BackupAction uint8
const ( BackupActionMemoryPowerDown BackupAction = iota BackupActionBtGUnbreakableShutdown BackupActionPFRRecovery BackupActionReserved )
type BootGuardPBEC ¶
type BootGuardPBEC uint64
func FindBootGuardPBEC ¶
func FindBootGuardPBEC(regs Registers) (BootGuardPBEC, bool)
FindBootGuardPBEC returns BootGuardPBEC register if found
func ParseBootGuardPBEC ¶
func ParseBootGuardPBEC(raw uint64) BootGuardPBEC
ParseBootGuardPBEC returns BootGuardPBEC from a raw 64bit value
func ReadBootGuardPBEC ¶
func ReadBootGuardPBEC(msrReader MSRReader) (BootGuardPBEC, error)
ReadBootGuardPBEC reads IA32FeatureControl MSR register
func (BootGuardPBEC) Address ¶
func (reg BootGuardPBEC) Address() uint64
func (BootGuardPBEC) BitSize ¶
func (reg BootGuardPBEC) BitSize() uint8
func (BootGuardPBEC) Fields ¶
func (reg BootGuardPBEC) Fields() []Field
func (BootGuardPBEC) ID ¶
func (reg BootGuardPBEC) ID() RegisterID
func (BootGuardPBEC) Raw ¶
func (reg BootGuardPBEC) Raw() uint64
func (BootGuardPBEC) StopPBET ¶
func (reg BootGuardPBEC) StopPBET() bool
func (BootGuardPBEC) Value ¶
func (reg BootGuardPBEC) Value() interface{}
Value returns the raw value wrapped into an interface.
type DMAProtectedRange ¶
DMAProtectedRange encodes the DPR register
type DefaultMSRReader ¶
type DefaultMSRReader struct{}
DefaultMSRReader reads MSR registers from local host.
type Field ¶
type Field struct { // Name defines field's Name/description Name string // BitOffset defines field's starting position in the register BitOffset uint8 // BitSize defines how many bits in the register is dedicated to this field. BitSize uint8 // Value is either binary or numeric value (LittleEndian decoded) representation of the field. Value []byte }
Field is a single field inside of register. It is usually only few bits of a register.
func CalculateRegisterFields ¶
func CalculateRegisterFields(registerValue uint64, registerSize uint8, fields []FieldDescription) []Field
CalculateRegisterFields is a handy helper that calculate final fields representation
type FieldDescription ¶
type FieldDescription struct { // Name is the name of the field Name string // BitOffset is the offset in bits of the field BitOffset uint8 }
FieldDescription is a handy helper for describing information about the registers fields
type IA32DebugInterface ¶
type IA32DebugInterface uint64
func FindIA32DebugInterface ¶
func FindIA32DebugInterface(regs Registers) (IA32DebugInterface, bool)
FindIA32DebugInterface returns IA32DebugInterface register if found
func ParseIA32DebugInterface ¶
func ParseIA32DebugInterface(raw uint64) IA32DebugInterface
ParseIA32DebugInterface returns IA32DebugInterface from a raw 64bit value
func ReadIA32DebugInterface ¶
func ReadIA32DebugInterface(msrReader MSRReader) (IA32DebugInterface, error)
ReadIA32DebugInterface reads IA32DebugInterface MSR register
func (IA32DebugInterface) Address ¶
func (reg IA32DebugInterface) Address() uint64
func (IA32DebugInterface) BitSize ¶
func (reg IA32DebugInterface) BitSize() uint8
func (IA32DebugInterface) DebugOccurred ¶
func (reg IA32DebugInterface) DebugOccurred() bool
func (IA32DebugInterface) Enabled ¶
func (reg IA32DebugInterface) Enabled() bool
func (IA32DebugInterface) Fields ¶
func (reg IA32DebugInterface) Fields() []Field
func (IA32DebugInterface) ID ¶
func (reg IA32DebugInterface) ID() RegisterID
func (IA32DebugInterface) Locked ¶
func (reg IA32DebugInterface) Locked() bool
func (IA32DebugInterface) Raw ¶
func (reg IA32DebugInterface) Raw() uint64
func (IA32DebugInterface) Value ¶
func (reg IA32DebugInterface) Value() interface{}
Value returns the raw value wrapped into an interface.
type IA32FeatureControl ¶
type IA32FeatureControl uint64
func FindIA32FeatureControl ¶
func FindIA32FeatureControl(regs Registers) (IA32FeatureControl, bool)
FindIA32FeatureControl returns IA32FeatureControl register if found
func ParseIA32FeatureControl ¶
func ParseIA32FeatureControl(raw uint64) IA32FeatureControl
ParseIA32FeatureControl returns IA32FeatureControl from a raw 64bit value
func ReadIA32FeatureControl ¶
func ReadIA32FeatureControl(msrReader MSRReader) (IA32FeatureControl, error)
ReadIA32FeatureControl reads IA32FeatureControl MSR register
func (IA32FeatureControl) Address ¶
func (reg IA32FeatureControl) Address() uint64
func (IA32FeatureControl) BitSize ¶
func (reg IA32FeatureControl) BitSize() uint8
func (IA32FeatureControl) Fields ¶
func (reg IA32FeatureControl) Fields() []Field
func (IA32FeatureControl) ID ¶
func (reg IA32FeatureControl) ID() RegisterID
func (IA32FeatureControl) Locked ¶
func (reg IA32FeatureControl) Locked() bool
func (IA32FeatureControl) Raw ¶
func (reg IA32FeatureControl) Raw() uint64
func (IA32FeatureControl) SENTEREnables ¶
func (reg IA32FeatureControl) SENTEREnables() uint8
func (IA32FeatureControl) SENTERGlobalEnable ¶
func (reg IA32FeatureControl) SENTERGlobalEnable() bool
func (IA32FeatureControl) VMXInSMXEnabled ¶
func (reg IA32FeatureControl) VMXInSMXEnabled() bool
func (IA32FeatureControl) VMXOutsideSMXEnabled ¶
func (reg IA32FeatureControl) VMXOutsideSMXEnabled() bool
func (IA32FeatureControl) Value ¶
func (reg IA32FeatureControl) Value() interface{}
Value returns the raw value wrapped into an interface.
type IA32MTRRCAP ¶
type IA32MTRRCAP uint64
func FindIA32MTRRCAP ¶
func FindIA32MTRRCAP(regs Registers) (IA32MTRRCAP, bool)
FindIA32MTRRCAP returns IA32MTRRCAP register if found
func ParseIA32MTRRCAP ¶
func ParseIA32MTRRCAP(raw uint64) IA32MTRRCAP
ParseIA32MTRRCAP returns IA32MTRRCAP from a raw 64bit value
func ReadIA32MTRRCAP ¶
func ReadIA32MTRRCAP(msrReader MSRReader) (IA32MTRRCAP, error)
ReadIA32MTRRCAP reads IA32MTRRCAP MSR register
func (IA32MTRRCAP) Address ¶
func (reg IA32MTRRCAP) Address() uint64
func (IA32MTRRCAP) BitSize ¶
func (reg IA32MTRRCAP) BitSize() uint8
func (IA32MTRRCAP) Fields ¶
func (reg IA32MTRRCAP) Fields() []Field
func (IA32MTRRCAP) FixedRangedRegisteredSupported ¶
func (reg IA32MTRRCAP) FixedRangedRegisteredSupported() bool
func (IA32MTRRCAP) ID ¶
func (reg IA32MTRRCAP) ID() RegisterID
func (IA32MTRRCAP) Raw ¶
func (reg IA32MTRRCAP) Raw() uint64
func (IA32MTRRCAP) SMRRInterfaceSupported ¶
func (reg IA32MTRRCAP) SMRRInterfaceSupported() bool
func (IA32MTRRCAP) Value ¶
func (reg IA32MTRRCAP) Value() interface{}
Value returns the raw value wrapped into an interface.
func (IA32MTRRCAP) VariableRangeRegistersCount ¶
func (reg IA32MTRRCAP) VariableRangeRegistersCount() uint8
func (IA32MTRRCAP) WriteCombiningMemoryTypeSupported ¶
func (reg IA32MTRRCAP) WriteCombiningMemoryTypeSupported() bool
type IA32PlatformID ¶
type IA32PlatformID uint64
func FindIA32PlatformID ¶
func FindIA32PlatformID(regs Registers) (IA32PlatformID, bool)
FindIA32PlatformID returns IA32PlatformID register if found
func ParseIA32PlatformID ¶
func ParseIA32PlatformID(raw uint64) IA32PlatformID
ParseIA32PlatformID returns IA32PlatformID from a raw 64bit value
func ReadIA32PlatformID ¶
func ReadIA32PlatformID(msrReader MSRReader) (IA32PlatformID, error)
ReadIA32PlatformID reads IA32PlatformID MSR register
func (IA32PlatformID) Address ¶
func (reg IA32PlatformID) Address() uint64
func (IA32PlatformID) BitSize ¶
func (reg IA32PlatformID) BitSize() uint8
func (IA32PlatformID) Fields ¶
func (reg IA32PlatformID) Fields() []Field
func (IA32PlatformID) ID ¶
func (reg IA32PlatformID) ID() RegisterID
func (IA32PlatformID) ProcessorFlag ¶
func (reg IA32PlatformID) ProcessorFlag() uint8
func (IA32PlatformID) Raw ¶
func (reg IA32PlatformID) Raw() uint64
func (IA32PlatformID) Value ¶
func (reg IA32PlatformID) Value() interface{}
Value returns the raw value wrapped into an interface.
type IA32SMRRPhysBase ¶
type IA32SMRRPhysBase uint64
func FindIA32SMRRPhysBase ¶
func FindIA32SMRRPhysBase(regs Registers) (IA32SMRRPhysBase, bool)
FindIA32SMRRPhysBase returns IA32SMRRPhysBase register if found
func ParseIA32SMRRPhysBase ¶
func ParseIA32SMRRPhysBase(raw uint64) IA32SMRRPhysBase
ParseIA32SMRRPhysBase returns IA32SMRRPhysBase from a raw 64bit value
func ReadIA32SMRRPhysBase ¶
func ReadIA32SMRRPhysBase(msrReader MSRReader) (IA32SMRRPhysBase, error)
ReadIA32SMRRPhysBase reads IA32SMRRPhysBase MSR register
func (IA32SMRRPhysBase) Address ¶
func (reg IA32SMRRPhysBase) Address() uint64
func (IA32SMRRPhysBase) BitSize ¶
func (reg IA32SMRRPhysBase) BitSize() uint8
func (IA32SMRRPhysBase) Fields ¶
func (reg IA32SMRRPhysBase) Fields() []Field
func (IA32SMRRPhysBase) ID ¶
func (reg IA32SMRRPhysBase) ID() RegisterID
func (IA32SMRRPhysBase) PhysBase ¶
func (reg IA32SMRRPhysBase) PhysBase() uint32
func (IA32SMRRPhysBase) Raw ¶
func (reg IA32SMRRPhysBase) Raw() uint64
func (IA32SMRRPhysBase) Type ¶
func (reg IA32SMRRPhysBase) Type() uint8
func (IA32SMRRPhysBase) Value ¶
func (reg IA32SMRRPhysBase) Value() interface{}
Value returns the raw value wrapped into an interface.
type IA32SMRRPhysMask ¶
type IA32SMRRPhysMask uint64
func FindIA32SMRRPhysMask ¶
func FindIA32SMRRPhysMask(regs Registers) (IA32SMRRPhysMask, bool)
FindIA32SMRRPhysBase returns IA32SMRRPhysBase register if found
func ParseIA32SMRRPhysMask ¶
func ParseIA32SMRRPhysMask(raw uint64) IA32SMRRPhysMask
ParseIA32SMRRPhysMask returns IA32SMRRPhysMask from a raw 64bit value
func ReadIA32SMRRPhysMask ¶
func ReadIA32SMRRPhysMask(msrReader MSRReader) (IA32SMRRPhysMask, error)
ReadIA32SMRRPhysMask reads IA32SMRRPhysMask MSR register
func (IA32SMRRPhysMask) Address ¶
func (reg IA32SMRRPhysMask) Address() uint64
func (IA32SMRRPhysMask) BitSize ¶
func (reg IA32SMRRPhysMask) BitSize() uint8
func (IA32SMRRPhysMask) Fields ¶
func (reg IA32SMRRPhysMask) Fields() []Field
func (IA32SMRRPhysMask) ID ¶
func (reg IA32SMRRPhysMask) ID() RegisterID
func (IA32SMRRPhysMask) PhysMask ¶
func (reg IA32SMRRPhysMask) PhysMask() uint32
func (IA32SMRRPhysMask) Raw ¶
func (reg IA32SMRRPhysMask) Raw() uint64
func (IA32SMRRPhysMask) Valid ¶
func (reg IA32SMRRPhysMask) Valid() bool
func (IA32SMRRPhysMask) Value ¶
func (reg IA32SMRRPhysMask) Value() interface{}
Value returns the raw value wrapped into an interface.
type MP0C2PMsg37 ¶
type MP0C2PMsg37 uint32
func FindMP0C2PMsg37 ¶
func FindMP0C2PMsg37(regs Registers) (MP0C2PMsg37, bool)
FindMP0C2PMsg37 returns MP0C2PMsg37 register if found
func ParseMP0C2PMsg37Register ¶
func ParseMP0C2PMsg37Register(raw uint32) MP0C2PMsg37
ParseMP0C2PMsg37Register returns MP0C2PMsg37 register from a raw 32bit value
func (MP0C2PMsg37) Address ¶
func (r MP0C2PMsg37) Address() uint64
Address returns 0 as MP0_C2P_MSG_37 is not bound to memory
func (MP0C2PMsg37) BitSize ¶
func (r MP0C2PMsg37) BitSize() uint8
BitSize returns the size of MP0_C2P_MSG_37 register in bits
func (MP0C2PMsg37) Fields ¶
func (r MP0C2PMsg37) Fields() []Field
Fields returns the internal fields of MP0_C2P_MSG_37 register
func (MP0C2PMsg37) ID ¶
func (r MP0C2PMsg37) ID() RegisterID
ID returns the MP0_C2P_MSG_37 register ID
func (MP0C2PMsg37) IsPlatformSecureBootEnabled ¶
func (r MP0C2PMsg37) IsPlatformSecureBootEnabled() bool
IsPlatformSecureBootEnabled specifies if PSB is enabled and enforced
func (MP0C2PMsg37) Raw ¶
func (r MP0C2PMsg37) Raw() uint32
Raw returns the raw value of of MP0_C2P_MSG_37 register
func (MP0C2PMsg37) Value ¶
func (r MP0C2PMsg37) Value() interface{}
Value returns the raw value wrapped into an interface.
type MP0C2PMsg38 ¶
type MP0C2PMsg38 uint32
func FindMP0C2PMsg38 ¶
func FindMP0C2PMsg38(regs Registers) (MP0C2PMsg38, bool)
FindMP0C2PMsg38 returns MP0C2PMsg38 register if found
func ParseMP0C2PMsg38Register ¶
func ParseMP0C2PMsg38Register(raw uint32) MP0C2PMsg38
ParseMP0C2PMsg38Register returns MP0C2PMsg38 register from a raw 32bit value
func (MP0C2PMsg38) Address ¶
func (r MP0C2PMsg38) Address() uint64
Address returns 0 as MP0_C2P_MSG_37 is not bound to memory
func (MP0C2PMsg38) BitSize ¶
func (r MP0C2PMsg38) BitSize() uint8
BitSize returns the size of MP0_C2P_MSG_38 register in bits
func (MP0C2PMsg38) Fields ¶
func (r MP0C2PMsg38) Fields() []Field
Fields returns the internal fields of MP0_C2P_MSG_38 register
func (MP0C2PMsg38) ID ¶
func (r MP0C2PMsg38) ID() RegisterID
ID returns the MP0_C2P_MSG_38 register ID
func (MP0C2PMsg38) Raw ¶
func (r MP0C2PMsg38) Raw() uint32
Raw returns the raw value of of MP0_C2P_MSG_37 register
func (MP0C2PMsg38) Value ¶
func (r MP0C2PMsg38) Value() interface{}
Value returns the raw value wrapped into an interface.
type MSRReader ¶
type MSRReader interface { // Read reads a single MSR register, the returned value is not length, but // the value itself. Read(msr int64) (uint64, error) }
MSRReader reads a single MSR register
type MemoryScrubbingPolicy ¶
type MemoryScrubbingPolicy uint8
const ( MemoryScrubbingPolicyDefault MemoryScrubbingPolicy = iota MemoryScrubbingPolicyBIOS MemoryScrubbingPolicyACM MemoryScrubbingPolicyUnknown )
type PhysicalMemoryReader ¶
PhysicalMemoryReader accesses device physical memory
type RawRegister ¶
RawRegister is a simple accessor to variable length registers
type RawRegister16 ¶
RawRegister16 is a simple accessor to 16-bit sized registers
type RawRegister32 ¶
RawRegister32 is a simple accessor to 32-bit sized registers
type RawRegister64 ¶
RawRegister64 is a simple accessor to 64-bit sized registers
type RawRegister8 ¶
RawRegister8 is a simple accessor to 8-bit sized registers
type Register ¶
type Register interface { ID() RegisterID BitSize() uint8 Fields() []Field Address() uint64 Value() interface{} }
Register represents an abstract register
func New ¶
func New(regID RegisterID, value interface{}) (Register, error)
New constructs a register, given its ID and raw value. It will return an error if the value is of wrong underlying type.
func ValueFromBytes ¶
func ValueFromBytes(id RegisterID, b []byte) (Register, error)
ValueFromBytes constructs register from it's id and marshalled value TODO: use dynamic conversion instead of hard-code
type RegisterID ¶
type RegisterID string
RegisterID is a unique id of a register (either TXT or MSR)
const ACMStatusRegisterID RegisterID = "ACM_STATUS"
const AcmPolicyStatusRegisterID RegisterID = "ACM_POLICY_STATUS"
const MP0C2PMSG37RegisterID RegisterID = "MP0_C2P_MSG_37"
const MP0C2PMSG38RegisterID RegisterID = "MP0_C2P_MSG_38"
const TXTBootStatusRegisterID RegisterID = "TXT.SPAD"
const TXTDMAProtectedRangeRegisterID RegisterID = "TXT.DPR"
const TXTDeviceIDRegisterID RegisterID = "TXT.DIDVID"
const TXTErrorCodeRegisterID RegisterID = "TXT.ERRORCODE"
const TXTErrorStatusRegisterID RegisterID = "TXT.ESTS"
const TXTHeapBaseRegisterID RegisterID = "TXT.HEAP.BASE"
const TXTHeapSizeRegisterID RegisterID = "TXT.HEAP.SIZE"
const TXTMLEJoinRegisterID RegisterID = "TXT.MLE.JOIN"
const TXTPublicKeyRegisterID RegisterID = "TXT.PUBLIC.KEY"
const TXTSINITBaseRegisterID RegisterID = "TXT.SINIT.BASE"
const TXTSINITSizeRegisterID RegisterID = "TXT.SINIT.SIZE"
const TXTStatusRegisterID RegisterID = "TXT.STS"
const TXTVerEMIfRegisterID RegisterID = "TXT.VER.EMIF"
const TXTVerFSBIfRegisterID RegisterID = "TXT.VER.FSBIF"
type Registers ¶
type Registers []Register
Registers represents an abstract collection of some registers
func ReadMSRRegisters ¶
ReadMSRRegisters fetches all supported MSR registers
func ReadTXTRegisters ¶
func ReadTXTRegisters(data TXTConfigSpace) (Registers, error)
ReadTXTRegisters fetches all supported TXT registers
func (Registers) Find ¶
func (regs Registers) Find(id RegisterID) Register
Find searches for a register with a given id in collection if there is no register with such id, nil is returned
func (Registers) MarshalJSON ¶
MarshalJSON converts a collection of registers into a JSON TODO: remove this, obsolete format OBSOLETE
func (Registers) MarshalYAML ¶
MarshalYAML converts a collection of registers into an YAML
func (*Registers) UnmarshalJSON ¶
UnmarshalJSON parses registers from JSON that was previously obtained using MarshalJSON TODO: remove this, obsolete format OBSOLETE
func (*Registers) UnmarshalYAML ¶
UnmarshalYAML parses registers from YAML that was previously obtained using MarshalYAML
type SCRTMStatus ¶
type SCRTMStatus uint8
const ( SCRTMStatusNone SCRTMStatus = 0 SCRTMStatusBtG SCRTMStatus = 1 SCRTMStatusTXT SCRTMStatus = 2 SCRTMStatusPFR SCRTMStatus = 4 )
type TPMStartupLocality ¶
type TPMStartupLocality uint8
const ( TPMStartupLocality0 TPMStartupLocality = iota TPMStartupLocality3 )
type TXTBootStatus ¶
type TXTBootStatus uint64
func FindTXTBootStatus ¶
func FindTXTBootStatus(regs Registers) (TXTBootStatus, bool)
FindTXTBootStatus returns TXTBootStatus register if found
func ParseTXTBootStatus ¶
func ParseTXTBootStatus(raw uint64) TXTBootStatus
ParseTXTBootStatus returns TXTBootStatus from a raw 64bit value
func ReadTXTBootStatusRegister ¶
func ReadTXTBootStatusRegister(data TXTConfigSpace) (TXTBootStatus, error)
ReadTXTBootStatusRegister reads a txt error status register from TXT config
func (TXTBootStatus) ACMAuthenticationError ¶
func (reg TXTBootStatus) ACMAuthenticationError() bool
func (TXTBootStatus) Address ¶
func (reg TXTBootStatus) Address() uint64
func (TXTBootStatus) BIOSTrusted ¶
func (reg TXTBootStatus) BIOSTrusted() bool
func (TXTBootStatus) BitSize ¶
func (reg TXTBootStatus) BitSize() uint8
func (TXTBootStatus) BootStatus ¶
func (reg TXTBootStatus) BootStatus() uint16
func (TXTBootStatus) BootStatusDetails ¶
func (reg TXTBootStatus) BootStatusDetails() uint8
func (TXTBootStatus) BootStatusDetails2 ¶
func (reg TXTBootStatus) BootStatusDetails2() uint8
func (TXTBootStatus) BootStatusDetails3 ¶
func (reg TXTBootStatus) BootStatusDetails3() bool
func (TXTBootStatus) Fields ¶
func (reg TXTBootStatus) Fields() []Field
func (TXTBootStatus) ID ¶
func (reg TXTBootStatus) ID() RegisterID
func (TXTBootStatus) MemoryPowerDownExecuted ¶
func (reg TXTBootStatus) MemoryPowerDownExecuted() bool
func (TXTBootStatus) Raw ¶
func (reg TXTBootStatus) Raw() uint64
func (TXTBootStatus) SACMASuccess ¶
func (reg TXTBootStatus) SACMASuccess() bool
func (TXTBootStatus) TXTPolicyDisable ¶
func (reg TXTBootStatus) TXTPolicyDisable() bool
func (TXTBootStatus) TXTPolicyEnable ¶
func (reg TXTBootStatus) TXTPolicyEnable() bool
func (TXTBootStatus) TXTStartupSuccess ¶
func (reg TXTBootStatus) TXTStartupSuccess() bool
func (TXTBootStatus) Value ¶
func (reg TXTBootStatus) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTConfigSpace ¶
type TXTConfigSpace []byte
TXTConfigSpace holds the TXT config space
func FetchTXTConfigSpace ¶
func FetchTXTConfigSpace(mem PhysicalMemoryReader) (TXTConfigSpace, error)
FetchTXTConfigSpace is a deprecated alias for FetchTXTConfigSpaceRaw. DEPRECATED: The function was renamed to FetchTXTConfigSpaceRaw.
func FetchTXTConfigSpaceRaw ¶
func FetchTXTConfigSpaceRaw(mem PhysicalMemoryReader) (TXTConfigSpace, error)
FetchTXTConfigSpaceRaw returns a raw copy of the TXT config space
Warning, this function may trigger undocumented registers which affects other registers or anything else.
func FetchTXTConfigSpaceSafe ¶
func FetchTXTConfigSpaceSafe(mem PhysicalMemoryReader) (TXTConfigSpace, error)
FetchTXTConfigSpaceSafe returns a filtered raw copy of the TXT config space, it excludes registers, which is not supposed to be read (in contrast to FetchTXTConfigSpaceRaw).
type TXTDMAProtectedRange ¶
type TXTDMAProtectedRange uint32
func FindTXTDMAProtectedRange ¶
func FindTXTDMAProtectedRange(regs Registers) (TXTDMAProtectedRange, bool)
FindTXTDMAProtectedRange returns TXTDMAProtectedRange register if found
func ParseTXTDMAProtectedRangeRegister ¶
func ParseTXTDMAProtectedRangeRegister(raw uint32) TXTDMAProtectedRange
ParseTXTDMAProtectedRangeRegister returns TXTDMAProtectedRange from a raw 64bit value
func ReadTXTDMAProtectedRangeRegister ¶
func ReadTXTDMAProtectedRangeRegister(data TXTConfigSpace) (TXTDMAProtectedRange, error)
ReadTXTDMAProtectedRangeRegister reads the raw DMA protected range register from TXT config
func (TXTDMAProtectedRange) Address ¶
func (reg TXTDMAProtectedRange) Address() uint64
func (TXTDMAProtectedRange) BitSize ¶
func (reg TXTDMAProtectedRange) BitSize() uint8
func (TXTDMAProtectedRange) DMAProtectedRange ¶
func (reg TXTDMAProtectedRange) DMAProtectedRange() DMAProtectedRange
func (TXTDMAProtectedRange) Fields ¶
func (reg TXTDMAProtectedRange) Fields() []Field
func (TXTDMAProtectedRange) ID ¶
func (reg TXTDMAProtectedRange) ID() RegisterID
func (TXTDMAProtectedRange) Raw ¶
func (reg TXTDMAProtectedRange) Raw() uint32
func (TXTDMAProtectedRange) Value ¶
func (reg TXTDMAProtectedRange) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTDeviceID ¶
type TXTDeviceID uint64
func FindTXTDeviceID ¶
func FindTXTDeviceID(regs Registers) (TXTDeviceID, bool)
FindTXTDeviceID returns TXTDeviceID register if found
func ParseTXTDeviceID ¶
func ParseTXTDeviceID(raw uint64) TXTDeviceID
ParseTXTDeviceID returns TXTErrorStatus from a raw 64bit value
func ReadTXTDeviceIDRegister ¶
func ReadTXTDeviceIDRegister(data TXTConfigSpace) (TXTDeviceID, error)
ReadTXTDeviceIDRegister reads a txt error status register from TXT config
func (TXTDeviceID) Address ¶
func (reg TXTDeviceID) Address() uint64
func (TXTDeviceID) BitSize ¶
func (reg TXTDeviceID) BitSize() uint8
func (TXTDeviceID) DeviceID ¶
func (reg TXTDeviceID) DeviceID() uint16
func (TXTDeviceID) ExtendedID ¶
func (reg TXTDeviceID) ExtendedID() uint16
func (TXTDeviceID) Fields ¶
func (reg TXTDeviceID) Fields() []Field
func (TXTDeviceID) ID ¶
func (reg TXTDeviceID) ID() RegisterID
func (TXTDeviceID) Raw ¶
func (reg TXTDeviceID) Raw() uint64
func (TXTDeviceID) RevisionID ¶
func (reg TXTDeviceID) RevisionID() uint16
func (TXTDeviceID) Value ¶
func (reg TXTDeviceID) Value() interface{}
Value returns the raw value wrapped into an interface.
func (TXTDeviceID) VendorID ¶
func (reg TXTDeviceID) VendorID() uint16
type TXTErrorCode ¶
type TXTErrorCode uint32
TXTErrorCode represents several configurations within the TXT config space
func FindTXTErrorCode ¶
func FindTXTErrorCode(regs Registers) (TXTErrorCode, bool)
FindTXTErrorCode returns TXTErrorCode register if found
func ParseTXTErrorCode ¶
func ParseTXTErrorCode(raw uint8) TXTErrorCode
ParseTXTErrorCode returns TXTErrorCode from a raw 64bit value
func ReadTxtErrorCode ¶
func ReadTxtErrorCode(data TXTConfigSpace) (TXTErrorCode, error)
ReadTxtErrorCode reads a TXT.ERRORCODE register from TXT config
func (TXTErrorCode) Address ¶
func (reg TXTErrorCode) Address() uint64
func (TXTErrorCode) BitSize ¶
func (reg TXTErrorCode) BitSize() uint8
func (TXTErrorCode) ClassCode ¶
func (reg TXTErrorCode) ClassCode() uint8
func (TXTErrorCode) Fields ¶
func (reg TXTErrorCode) Fields() []Field
func (TXTErrorCode) ID ¶
func (reg TXTErrorCode) ID() RegisterID
func (TXTErrorCode) MajorErrorCode ¶
func (reg TXTErrorCode) MajorErrorCode() uint8
func (TXTErrorCode) MinorErrorCode ¶
func (reg TXTErrorCode) MinorErrorCode() uint16
func (TXTErrorCode) ModuleType ¶
func (reg TXTErrorCode) ModuleType() uint8
func (TXTErrorCode) ProcessorOrSoftwareReporter ¶
func (reg TXTErrorCode) ProcessorOrSoftwareReporter() TXTErrorReporter
func (TXTErrorCode) Raw ¶
func (reg TXTErrorCode) Raw() uint32
func (TXTErrorCode) SoftwareSource ¶
func (reg TXTErrorCode) SoftwareSource() bool
func (TXTErrorCode) Type1Reserved ¶
func (reg TXTErrorCode) Type1Reserved() uint8
func (TXTErrorCode) Valid ¶
func (reg TXTErrorCode) Valid() bool
func (TXTErrorCode) Value ¶
func (reg TXTErrorCode) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTErrorReporter ¶
type TXTErrorReporter uint8
const ( ProcessorTXTErrorReporter TXTErrorReporter = 0 SoftwareTXTErrorReporter TXTErrorReporter = 1 )
type TXTErrorStatus ¶
type TXTErrorStatus uint8
func FindTXTErrorStatus ¶
func FindTXTErrorStatus(regs Registers) (TXTErrorStatus, bool)
FindTXTErrorStatus returns TXTErrorStatus register if found
func ParseTXTErrorStatus ¶
func ParseTXTErrorStatus(raw uint8) TXTErrorStatus
ParseTXTErrorStatus returns TXTErrorStatus from a raw 64bit value
func ReadTXTErrorStatusRegister ¶
func ReadTXTErrorStatusRegister(data TXTConfigSpace) (TXTErrorStatus, error)
ReadTXTErrorStatusRegister reads a txt error status register from TXT config
func (TXTErrorStatus) Address ¶
func (reg TXTErrorStatus) Address() uint64
func (TXTErrorStatus) BitSize ¶
func (reg TXTErrorStatus) BitSize() uint8
func (TXTErrorStatus) Fields ¶
func (reg TXTErrorStatus) Fields() []Field
func (TXTErrorStatus) ID ¶
func (reg TXTErrorStatus) ID() RegisterID
func (TXTErrorStatus) Raw ¶
func (reg TXTErrorStatus) Raw() uint8
func (TXTErrorStatus) Reset ¶
func (reg TXTErrorStatus) Reset() bool
func (TXTErrorStatus) Value ¶
func (reg TXTErrorStatus) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTHeapBase ¶
type TXTHeapBase uint32
func FindTXTHeapBase ¶
func FindTXTHeapBase(regs Registers) (TXTHeapBase, bool)
FindTXTHeapBase returns TXTHeapBase register if found
func ParseTXTHeapBase ¶
func ParseTXTHeapBase(raw uint32) TXTHeapBase
ParseTXTHeapBase returns TXTHeapBase from a raw 64bit value
func ReadTXTHeapBase ¶
func ReadTXTHeapBase(data TXTConfigSpace) (TXTHeapBase, error)
ReadTXTHeapBase reads a TXTMLEJoin register from TXT config
func (TXTHeapBase) Address ¶
func (reg TXTHeapBase) Address() uint64
func (TXTHeapBase) BitSize ¶
func (reg TXTHeapBase) BitSize() uint8
func (TXTHeapBase) Fields ¶
func (reg TXTHeapBase) Fields() []Field
func (TXTHeapBase) ID ¶
func (reg TXTHeapBase) ID() RegisterID
func (TXTHeapBase) Raw ¶
func (reg TXTHeapBase) Raw() uint32
func (TXTHeapBase) Value ¶
func (reg TXTHeapBase) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTHeapSize ¶
type TXTHeapSize uint32
func FindTXTHeapSize ¶
func FindTXTHeapSize(regs Registers) (TXTHeapSize, bool)
FindTXTHeapSize returns TXTHeapSize register if found
func ParseTXTHeapSize ¶
func ParseTXTHeapSize(raw uint32) TXTHeapSize
ParseTXTHeapSize returns TXTHeapSize from a raw 64bit value
func ReadTXTHeapSize ¶
func ReadTXTHeapSize(data TXTConfigSpace) (TXTHeapSize, error)
ReadTXTHeapSize reads a TXTHeapSize register from TXT config
func (TXTHeapSize) Address ¶
func (reg TXTHeapSize) Address() uint64
func (TXTHeapSize) BitSize ¶
func (reg TXTHeapSize) BitSize() uint8
func (TXTHeapSize) Fields ¶
func (reg TXTHeapSize) Fields() []Field
func (TXTHeapSize) ID ¶
func (reg TXTHeapSize) ID() RegisterID
func (TXTHeapSize) Raw ¶
func (reg TXTHeapSize) Raw() uint32
func (TXTHeapSize) Value ¶
func (reg TXTHeapSize) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTMLEJoin ¶
type TXTMLEJoin uint32
func FindTXTMLEJoin ¶
func FindTXTMLEJoin(regs Registers) (TXTMLEJoin, bool)
FindTXTMLEJoin returns TXTMLEJoin register if found
func ParseTXTMLEJoin ¶
func ParseTXTMLEJoin(raw uint32) TXTMLEJoin
ParseTXTMLEJoin returns TXTMLEJoin from a raw 64bit value
func ReadTXTMLEJoin ¶
func ReadTXTMLEJoin(data TXTConfigSpace) (TXTMLEJoin, error)
ReadTXTMLEJoin reads a TXTMLEJoin register from TXT config
func (TXTMLEJoin) Address ¶
func (reg TXTMLEJoin) Address() uint64
func (TXTMLEJoin) BitSize ¶
func (reg TXTMLEJoin) BitSize() uint8
func (TXTMLEJoin) Fields ¶
func (reg TXTMLEJoin) Fields() []Field
func (TXTMLEJoin) ID ¶
func (reg TXTMLEJoin) ID() RegisterID
func (TXTMLEJoin) Raw ¶
func (reg TXTMLEJoin) Raw() uint32
func (TXTMLEJoin) Value ¶
func (reg TXTMLEJoin) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTPublicKey ¶
type TXTPublicKey [32]uint8
func FindTXTPublicKey ¶
func FindTXTPublicKey(regs Registers) (TXTPublicKey, bool)
FindTXTPublicKey returns TXTPublicKey register if found
func ParseTXTPublicKey ¶
func ParseTXTPublicKey(raw [32]uint8) TXTPublicKey
ParseTXTPublicKey returns TXTPublicKey from a raw 64bit value
func ReadTXTPublicKeyRegister ¶
func ReadTXTPublicKeyRegister(data TXTConfigSpace) (TXTPublicKey, error)
ReadTXTPublicKey reads a txt public key register from TXT config
func (TXTPublicKey) Address ¶
func (reg TXTPublicKey) Address() uint64
func (TXTPublicKey) BitSize ¶
func (reg TXTPublicKey) BitSize() uint8
func (TXTPublicKey) Fields ¶
func (reg TXTPublicKey) Fields() []Field
func (TXTPublicKey) ID ¶
func (reg TXTPublicKey) ID() RegisterID
func (TXTPublicKey) Raw ¶
func (reg TXTPublicKey) Raw() []byte
func (TXTPublicKey) String ¶
func (reg TXTPublicKey) String() string
func (TXTPublicKey) Value ¶
func (reg TXTPublicKey) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTSInitBase ¶
type TXTSInitBase uint32
func FindTXTSInitBase ¶
func FindTXTSInitBase(regs Registers) (TXTSInitBase, bool)
FindTXTVerFSBIF returns TXTSInitBase register if found
func ParseTXTSInitBase ¶
func ParseTXTSInitBase(raw uint32) TXTSInitBase
ParseTXTSInitBase returns TXTSInitBase from a raw 64bit value
func ReadTXTSInitBase ¶
func ReadTXTSInitBase(data TXTConfigSpace) (TXTSInitBase, error)
ReadTXTSInitBase reads a TXTSInitBase register from TXT config
func (TXTSInitBase) Address ¶
func (reg TXTSInitBase) Address() uint64
func (TXTSInitBase) BitSize ¶
func (reg TXTSInitBase) BitSize() uint8
func (TXTSInitBase) Fields ¶
func (reg TXTSInitBase) Fields() []Field
func (TXTSInitBase) ID ¶
func (reg TXTSInitBase) ID() RegisterID
func (TXTSInitBase) Raw ¶
func (reg TXTSInitBase) Raw() uint32
func (TXTSInitBase) Value ¶
func (reg TXTSInitBase) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTSInitSize ¶
type TXTSInitSize uint32
func FindTXTSInitSize ¶
func FindTXTSInitSize(regs Registers) (TXTSInitSize, bool)
FindTXTVerFSBIF returns TXTSInitSize register if found
func ParseTXTSInitSize ¶
func ParseTXTSInitSize(raw uint32) TXTSInitSize
ParseTXTSInitSize returns TXTSInitSize from a raw 64bit value
func ReadTXTSInitSize ¶
func ReadTXTSInitSize(data TXTConfigSpace) (TXTSInitSize, error)
ReadTXTSInitBase reads a TXTSInitSize register from TXT config
func (TXTSInitSize) Address ¶
func (reg TXTSInitSize) Address() uint64
func (TXTSInitSize) BitSize ¶
func (reg TXTSInitSize) BitSize() uint8
func (TXTSInitSize) Fields ¶
func (reg TXTSInitSize) Fields() []Field
func (TXTSInitSize) ID ¶
func (reg TXTSInitSize) ID() RegisterID
func (TXTSInitSize) Raw ¶
func (reg TXTSInitSize) Raw() uint32
func (TXTSInitSize) Value ¶
func (reg TXTSInitSize) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTStatus ¶
type TXTStatus uint64
TXTStatus represents several configurations within the TXT config space
func FindTXTStatus ¶
FindTXTStatus returns TXTStatus register if found
func ParseTXTStatus ¶
ParseTXTStatus returns TXTStatus from a raw 64bit value
func ReadTXTStatus ¶
func ReadTXTStatus(data TXTConfigSpace) (TXTStatus, error)
ReadTXTStatus reads a txt status register from TXT config
func (TXTStatus) ID ¶
func (reg TXTStatus) ID() RegisterID
func (TXTStatus) Locality1Open ¶
TXT.LOCALITY1.OPEN.STS (15)
func (TXTStatus) Locality2Open ¶
TXT.LOCALITY1.OPEN.STS (16)
type TXTVerEMIF ¶
type TXTVerEMIF uint32
func FindTXTVerEMIF ¶
func FindTXTVerEMIF(regs Registers) (TXTVerEMIF, bool)
FindTXTVerEMIF returns TXTVerEMIF register if found
func ParseTXTVerEMIF ¶
func ParseTXTVerEMIF(raw uint32) TXTVerEMIF
ParseTXTVerEMIF returns TXTVerEMIF from a raw 64bit value
func ReadTXTVerEMIF ¶
func ReadTXTVerEMIF(data TXTConfigSpace) (TXTVerEMIF, error)
ReadTXTVerEMIF reads a TXTVerEMIF register from TXT config
func (TXTVerEMIF) Address ¶
func (reg TXTVerEMIF) Address() uint64
func (TXTVerEMIF) BitSize ¶
func (reg TXTVerEMIF) BitSize() uint8
func (TXTVerEMIF) Fields ¶
func (reg TXTVerEMIF) Fields() []Field
func (TXTVerEMIF) ID ¶
func (reg TXTVerEMIF) ID() RegisterID
func (TXTVerEMIF) Raw ¶
func (reg TXTVerEMIF) Raw() uint32
func (TXTVerEMIF) Value ¶
func (reg TXTVerEMIF) Value() interface{}
Value returns the raw value wrapped into an interface.
type TXTVerFSBIF ¶
type TXTVerFSBIF uint32
func FindTXTVerFSBIF ¶
func FindTXTVerFSBIF(regs Registers) (TXTVerFSBIF, bool)
FindTXTVerFSBIF returns TXTVerFSBIF register if found
func ParseTXTVerFSBIF ¶
func ParseTXTVerFSBIF(raw uint32) TXTVerFSBIF
ParseTXTVerFSBIF returns TXTVerFSBIF from a raw 64bit value
func ReadTXTVerFSBIF ¶
func ReadTXTVerFSBIF(data TXTConfigSpace) (TXTVerFSBIF, error)
ReadTXTVerFSBIF reads a TXTVerFSBIF register from TXT config
func (TXTVerFSBIF) Address ¶
func (reg TXTVerFSBIF) Address() uint64
func (TXTVerFSBIF) BitSize ¶
func (reg TXTVerFSBIF) BitSize() uint8
func (TXTVerFSBIF) Fields ¶
func (reg TXTVerFSBIF) Fields() []Field
func (TXTVerFSBIF) ID ¶
func (reg TXTVerFSBIF) ID() RegisterID
func (TXTVerFSBIF) Raw ¶
func (reg TXTVerFSBIF) Raw() uint32
func (TXTVerFSBIF) Value ¶
func (reg TXTVerFSBIF) Value() interface{}
Value returns the raw value wrapped into an interface.
Source Files ¶
- field.go
- marshal_value.go
- marshalling.go
- mp0_c2p_msg_37.go
- mp0_c2p_msg_38.go
- msr.go
- msr_boot_guard_pbec.go
- msr_btg_sacm_info.go
- msr_ia32_debug_interface.go
- msr_ia32_feature_control.go
- msr_ia32_mtrrcap.go
- msr_ia32_platform_id.go
- msr_ia32_smrr_physbase.go
- msr_ia32_smrr_physmask.go
- registers.go
- registry.go
- tpm_type.go
- txt.go
- txt_acm_policy_status.go
- txt_acm_status.go
- txt_bootstatus.go
- txt_device_id.go
- txt_dpr.go
- txt_error_code.go
- txt_ests.go
- txt_heap_base.go
- txt_heap_size.go
- txt_mle_join.go
- txt_public_key.go
- txt_sinit_base.go
- txt_sinit_size.go
- txt_status.go
- txt_ver_emif.go
- txt_ver_fsbif.go