Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeEnd = 0x7f InstanceEnd = 1 SubTypeEnd = 0xff )
Device path type values
View Source
const ( TypeDevice = 0x01 SubTypeMemory = 0x03 SubTypeVendor = 0x04 )
View Source
const ( TypeACPI = 2 SubTypeACPI = 1 )
View Source
const ( TypeMessaging = 3 SubTypeATAPI = 1 SubTypeSCSI = 2 SubTypeUSB = 5 SubTypeMAC = 0xb SubTypeUSBClass = 0xf SubTypeMSGSD = 0x1a SubTypeMSGMMC = 0x1d )
This section is called"UEFI doesn't understand storage abstractions"
View Source
const ( TypeMedia = 4 SubTypeHardDrive = 1 SubTypeCDROM = 2 SubTypeFile = 4 )
View Source
const ( DEVICE_PATH_GUID = "09576E91-6D3F-11D2-8E39-00A0C969723B" U_BOOT_GUID = "e61d73b9-a384-4acc-aeab-82e828f3628b" )
Variables ¶
View Source
var ( DevicePathGUID = guid.MustParse(DEVICE_PATH_GUID) RootGUID = guid.MustParse(U_BOOT_GUID) )
View Source
var Debug = func(string, ...interface{}) {}
View Source
var TypeNames = map[uint8]string{ TypeEnd: "TypeEnd", TypeDevice: "TypeDevice", TypeACPI: "TypeACPI", TypeMessaging: "TypeMessaging", TypeMedia: "TypeMedia", }
TypeNames provides a name for a Device Path Type
Functions ¶
Types ¶
type ATAPI ¶
type CDROM ¶
type HardDrive ¶
type MAC ¶
type MAC struct { MAC MACAddress IFType uint8 // contains filtered or unexported fields }
type Memory ¶
type Memory struct { Type uint32 Start uint64 End uint64 // contains filtered or unexported fields }
Memory is for memory
type Path ¶
type Root ¶
type Root struct{}
Root is a pre-filled-in Root record. Do we need it? u-boot did but who knows.
Click to show internal directories.
Click to hide internal directories.