Documentation ¶
Index ¶
- Constants
- type Attributes2
- type BlockMapEntry
- type BootMode
- type CommonSectionHeader
- type CommonSectionHeader2
- type FfsFileHeader
- type GUID
- type Handle
- type Md5Hash
- type MemoryType
- type PhysAddr
- type RawSection
- type RawSection2
- type ResourceAttributeType
- type ResourceType
- type SectionType
- type Sha1Hash
- type Sha224Hash
- type Sha256Hash
- type Sha384Hash
- type Sha512Hash
- type SignatureData
- type SignatureList
- type Status
- type TableHeader
- type Time
- type VirtAddr
- type VolumnExtHeader
- type VolumnHeader
Constants ¶
View Source
const ( IMAGE_EXECUTION_AUTHENTICATION = 0x00000007 IMAGE_EXECUTION_AUTH_UNTESTED = 0x00000000 IMAGE_EXECUTION_AUTH_SIG_FAILED = 0x00000001 IMAGE_EXECUTION_AUTH_SIG_PASSED = 0x00000002 IMAGE_EXECUTION_AUTH_SIG_NOT_FOUND = 0x00000003 IMAGE_EXECUTION_AUTH_SIG_FOUND = 0x00000004 IMAGE_EXECUTION_POLICY_FAILED = 0x00000005 IMAGE_EXECUTION_INITIALIZED = 0x00000008 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes2 ¶
type Attributes2 uint32
type BlockMapEntry ¶
type BootMode ¶
type BootMode uint32
const ( BOOT_WITH_FULL_CONFIGURATION BootMode = 0x00 BOOT_WITH_MINIMAL_CONFIGURATION BootMode = 0x01 BOOT_ASSUMING_NO_CONFIGURATION_CHANGES BootMode = 0x02 BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS BootMode = 0x03 BOOT_WITH_DEFAULT_SETTINGS BootMode = 0x04 BOOT_ON_S4_RESUME BootMode = 0x05 BOOT_ON_S5_RESUME BootMode = 0x06 BOOT_ON_S2_RESUME BootMode = 0x10 BOOT_ON_S3_RESUME BootMode = 0x11 BOOT_ON_FLASH_UPDATE BootMode = 0x12 BOOT_IN_RECOVERY_MODE BootMode = 0x20 )
type CommonSectionHeader ¶
type CommonSectionHeader struct { Size [3]uint8 Type SectionType }
type CommonSectionHeader2 ¶
type CommonSectionHeader2 struct { Size [3]uint8 Type SectionType ExtendedSize uint32 }
type FfsFileHeader ¶
type MemoryType ¶
type MemoryType uint32
const ( ReservedMemoryType MemoryType = iota // Not used. LoaderCode // The code portions of a loaded application. (Note that UEFI OS loaders are UEFI applications.) LoaderData // The data portions of a loaded application and the default data allocation type used by an application to allocate pool memory. BootServicesCode // The code portions of a loaded Boot Services Driver. BootServicesData // The data portions of a loaded Boot Serves Driver, and the default data allocation type used by a Boot Services Driver to allocate pool memory. RuntimeServicesCode // The code portions of a loaded Runtime Services Driver. RuntimeServicesData // The data portions of a loaded Runtime Services Driver and the default data allocation type used by a Runtime Services Driver to allocate pool memory. ConventionalMemory // Free (unallocated) memory. UnusableMemory // Memory in which errors have been detected. ACPIReclaimMemory // Memory that holds the ACPI tables. ACPIMemoryNVS // Address space reserved for use by the firmware. MemoryMappedIO // Used by system firmware to request that a memory-mapped IO region be mapped by the OS to a virtual address so it can be accessed by EFI runtime services. MemoryMappedIOPortSpace // System memory-mapped IO region that is used to translate memory cycles to IO cycles by the processor. Note: There is only one region of type EfiMemoryMappedIoPortSpace defined in the architecture for Itanium-based platforms. As a result, there should be one and only one region of type EfiMemoryMappedIoPortSpace in the EFI memory map of an Itanium-based platform. PalCode // Address space reserved by the firmware for code that is part of the processor. MaxMemoryType )
type RawSection ¶
type RawSection CommonSectionHeader
type RawSection2 ¶
type RawSection2 CommonSectionHeader2
type ResourceAttributeType ¶
type ResourceAttributeType uint32
type ResourceType ¶
type ResourceType uint32
const ( RESOURCE_SYSTEM_MEMORY ResourceType = 0x00000000 RESOURCE_MEMORY_MAPPED_IO ResourceType = 0x00000001 RESOURCE_IO ResourceType = 0x00000002 RESOURCE_FIRMWARE_DEVICE ResourceType = 0x00000003 RESOURCE_MEMORY_MAPPED_IO_PORT ResourceType = 0x00000004 RESOURCE_MEMORY_RESERVED ResourceType = 0x00000005 RESOURCE_IO_RESERVED ResourceType = 0x00000006 RESOURCE_MAX_MEMORY_TYPE ResourceType = 0x00000007 )
type SectionType ¶
type SectionType uint8
type Sha224Hash ¶
type Sha224Hash [28]uint8
type Sha256Hash ¶
type Sha256Hash [32]uint8
type Sha384Hash ¶
type Sha384Hash [48]uint8
type Sha512Hash ¶
type Sha512Hash [64]uint8
type SignatureData ¶
type SignatureList ¶
type TableHeader ¶
type VolumnExtHeader ¶
type VolumnHeader ¶
type VolumnHeader struct { ZeroVector [16]uint8 FileSystemGuid GUID FvLength uint64 Signature uint32 Attributes Attributes2 HeaderLength uint16 Checksum uint16 ExtHeaderOffset uint16 Revision uint8 BlockMap []BlockMapEntry // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.