me

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Signature = [4]byte{0x24, 0x46, 0x50, 0x54}
)

Functions

This section is empty.

Types

type FlashPartitionTableEntry

type FlashPartitionTableEntry struct {
	Name           name
	Owner          name
	Offset         uint32
	Length         uint32
	StartTokens    uint32
	MaxTokens      uint32
	ScratchSectors uint32
	Flags          uint32
}

FlashPartitionTableEntry describes information of a flash partition table entry.

func (FlashPartitionTableEntry) String

func (e FlashPartitionTableEntry) String() string

type FlashPartitionTableHeader

type FlashPartitionTableHeader struct {
	Marker             [4]byte // Always $FPT
	NumFptEntries      uint32
	HeaderVersion      uint8 // Only support 2.0
	EntryVersion       uint8
	HeaderLength       uint8 // Usually 0x20
	HeaderChecksum     uint8
	TicksToAdd         uint16
	TokensToAdd        uint16
	UMASizeOrReserved  uint32
	FlashLayoutOrFlags uint32
	// Not Present in ME version 7
	FitcMajor  uint16
	FitcMinor  uint16
	FitcHotfix uint16
	FitcBuild  uint16
}

FlashPartitionTableHeader describes the new flash partition table header in Intel ME binaries.

func (FlashPartitionTableHeader) String

func (h FlashPartitionTableHeader) String() string

type IntelME

type IntelME struct {
	// contains filtered or unexported fields
}

IntelME abstracts the ME/CSME/SPS firmware found on intel platforms

func ParseIntelME

func ParseIntelME(r io.Reader) (*IntelME, error)

ParseIntelFirmware parses the Intel firmware image by uefi.Firmware interface`

type LegacyFlashPartitionTableHeader

type LegacyFlashPartitionTableHeader struct {
	Padding        [16]byte // 16 zeros
	Marker         [4]byte  // Always $FPT
	NumFptEntries  uint32
	HeaderVersion  uint8
	EntryVersion   uint8
	HeaderLength   uint8 // Usually 0x30
	HeaderChecksum uint8
	TicksToAdd     uint16
	TokensToAdd    uint16
	UMASize        uint32
	Flags          uint32
}

LegacyFlashPartitionTableHeader describes the old flash partition table header in Intel ME binaries.

func (LegacyFlashPartitionTableHeader) String

Jump to

Keyboard shortcuts

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