Documentation
¶
Index ¶
- func With(state *types.State, callback func(*BIOSImage) error) error
- type BIOSImage
- func (fw *BIOSImage) DMITable() (*dmidecode.DMITable, error)
- func (fw *BIOSImage) Info() (*dmidecode.BIOSInfo, error)
- func (fw *BIOSImage) Parse() (*uefi.UEFI, error)
- func (img *BIOSImage) ReadAt(b []byte, offset int64) (n int, err error)
- func (img *BIOSImage) Size() uint64
- func (img *BIOSImage) String() string
- type PhysMemMapper
- func (t PhysMemMapper) Resolve(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
- func (PhysMemMapper) ResolveBIOSRegionOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
- func (PhysMemMapper) ResolveFullImageOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) pkgbytes.Ranges
- func (t PhysMemMapper) Unresolve(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
- func (PhysMemMapper) UnresolveBIOSRegionOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
- func (PhysMemMapper) UnresolveFullImageOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) pkgbytes.Ranges
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BIOSImage ¶
type BIOSImage struct { Content []byte CacheParsed *uefi.UEFI CacheParseError error Accessors map[reflect.Type]any }
BIOSImage represents the BIOS firmware image.
func NewFromParsed ¶
NewFromParsed returns a new instance of BIOSImage.
type PhysMemMapper ¶
type PhysMemMapper struct{}
PhysMemMapper maps physical memory address space to a BIOS region of a system artifact BIOSImage.
func (PhysMemMapper) Resolve ¶
func (t PhysMemMapper) Resolve(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
Resolve implements types.AddressMapper.
It maps a physical memory address to an offset inside the system artifact (UEFI image).
func (PhysMemMapper) ResolveBIOSRegionOffset ¶
func (PhysMemMapper) ResolveBIOSRegionOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
ResolveBIOSRegionOffset is similar to Resolve, but the given offsets are based on BIOS region instead of the whole UEFI image.
It maps a physical memory address to an offset inside the system artifact (UEFI image).
func (PhysMemMapper) ResolveFullImageOffset ¶
func (PhysMemMapper) ResolveFullImageOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) pkgbytes.Ranges
ResolveFullImageOffset maps a physical memory address to an offset inside the system artifact (UEFI image).
func (PhysMemMapper) Unresolve ¶
func (t PhysMemMapper) Unresolve(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
Unresolve implements types.AddressMapper.
It maps an offset of the UEFI image to a physical memory address.
func (PhysMemMapper) UnresolveBIOSRegionOffset ¶
func (PhysMemMapper) UnresolveBIOSRegionOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) (pkgbytes.Ranges, error)
UnresolveBIOSRegionOffset is similar to Unresolve, but the given offsets are based on BIOS region instead of the whole UEFI image.
It maps an offset of the BIOS region to a physical memory address.
func (PhysMemMapper) UnresolveFullImageOffset ¶
func (PhysMemMapper) UnresolveFullImageOffset(artifact types.SystemArtifact, ranges ...pkgbytes.Range) pkgbytes.Ranges
UnresolveFullImageOffset maps an offset of the UEFI image to a physical memory address.