uefi

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EFIFFSAttribLargeFile       uint8 = 0x01
	EFICommonSectionHeaderSize  int   = 4
	EFICommonSectionHeader2Size int   = 8
	EFIFFSFileHeaderSize        int   = 24
	EFIFFSFileHeader2Size       int   = 32
)
View Source
const (
	EFISectionTypePE32    uint8 = 0x10
	EFISectionTypeFVImage uint8 = 0x17
)
View Source
const (
	EFIFVFileTypeSecurityCore        = 0x03
	EFIFVFileTypeFirmwareVolumeImage = 0x0b
)
View Source
const (
	SerialPortTypeIO   = 1
	SerialPortTypeMMIO = 2
)

Serial port type for Type in UefiPayloadPkg's SERIAL_PORT_INFO

View Source
const PayloadConfigVersion = 1

Current Config Version: 1

Variables

This section is empty.

Functions

This section is empty.

Types

type EFIFFSFileHeader

type EFIFFSFileHeader struct {
	Name           [16]uint8
	HeaderChecksum uint8
	FileChecksum   uint8
	Type           uint8
	Attributes     uint8
	Size           [3]uint8
	State          uint8
}

func (*EFIFFSFileHeader) UnmarshalBinary

func (e *EFIFFSFileHeader) UnmarshalBinary(data []byte) error

UnmarshalBinary unmarshals the EFIFFSFileHeader from binary data.

type EFIFirmwareVolumeHeader

type EFIFirmwareVolumeHeader struct {
	ZeroVector      [16]uint8
	FileSystemGUID  [16]uint8
	FvLength        uint64
	Signature       [4]uint8
	Attributes      uint32
	HeaderLength    uint16
	Checksum        uint16
	ExtHeaderOffset uint16
	Reserved        uint8
	Revision        uint8
}

func (*EFIFirmwareVolumeHeader) UnmarshalBinary

func (e *EFIFirmwareVolumeHeader) UnmarshalBinary(data []byte) error

UnmarshalBinary unmarshals the FiwmreareVolumeHeader from binary data.

type FVImage

type FVImage struct {
	ImageBase    uintptr
	SerialConfig SerialPortConfig
	// contains filtered or unexported fields
}

FVImage is a structure for loading a firmware volume

func New

func New(n string) (*FVImage, error)

New loads the file and return FVImage stucture if entry image is found

func (*FVImage) Load

func (fv *FVImage) Load(verbose bool) error

Load loads fimware volume payload and boot the the payload

type SerialPortConfig

type SerialPortConfig struct {
	Type        uint32
	BaseAddr    uint32
	Baud        uint32
	RegWidth    uint32
	InputHertz  uint32
	UartPciAddr uint32
}

SerialPortConfig defines debug port configuration This struct will be used to initialize SERIAL_PORT_INFO in payload (UefiPayloadPkg/Include/Guid/SerialPortInfoGuid.h)

Jump to

Keyboard shortcuts

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