intelfwextractor

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package intelfwextractor extracts the fw dump and validate its contents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFWDump

func ValidateFWDump(ctx context.Context, file string) error

ValidateFWDump extracts and validate the contents of the fw dump.

Types

type DevcoreHeader

type DevcoreHeader struct {
	Magic    uint32
	FileSize uint32
}

DevcoreHeader is a struct that contains the fw dump header information.

type MandatoryFWDumpFiles

type MandatoryFWDumpFiles struct {
	Csr      bool
	Monitor  bool
	DccmLmac bool
}

MandatoryFWDumpFiles are the mandaotry files that must exists in the fw dump to be valid. Refer to http://b/169152720#comment28 for more information. These files are only mandatory for the Memory API Magic firmware dumps. csr.lst (mandatory) header type 1 monitor.lst (mandatory) header type 5 dccm_lmac.lst (mandatory) header type of 9

type TLHeader

type TLHeader struct {
	Type   uint32
	Length uint32
}

TLHeader is a struct that contains the type and length of a TLV header.

type VHeader

type VHeader struct {
	MemType uint32
	Addr    uint32
}

VHeader is a struct that contains the memory type and address of a value in a TLV header.

type VYoYoInfoHeader

type VYoYoInfoHeader struct {
	Version          uint32
	TriggerTimepoint uint32
	TriggerReason    uint32
	ExternalCfgState uint32
	VerType          uint32
	VerSubtype       uint32
	HwStep           uint32
	HwType           uint32
	RfIDFlavor       uint32
	RfIDDash         uint32
	RfIDStep         uint32
	RfIDType         uint32
	LmacMajor        uint32
	LmacMinor        uint32
	UmacMajor        uint32
	UmacMinor        uint32
	FwMonMode        uint32
	RegionsMask      uint64
}

VYoYoInfoHeader is a struct for reading the value of a YoYo TLV header.

type VYoYoMemHeader

type VYoYoMemHeader struct {
	Version     uint32
	RegionID    uint32
	NumOfRanges uint32
	NameLength  uint32
}

VYoYoMemHeader is a struct for reading the value of a YoYo TLV header.

Jump to

Keyboard shortcuts

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