Documentation ¶
Index ¶
Constants ¶
View Source
const ( OnieDataSz = 8 LenOffset = OnieDataSz + 1 HeaderSz = LenOffset + 2 )
View Source
const ( ProductNameType = Type(0x21) PartNumberType = Type(0x22) SerialNumberType = Type(0x23) BaseEthernetAddressType = Type(0x24) ManufactureDateType = Type(0x25) DeviceVersionType = Type(0x26) LabelRevisionType = Type(0x27) PlatformNameType = Type(0x28) OnieVersionType = Type(0x29) NEthernetAddressType = Type(0x2a) ManufacturerType = Type(0x2b) CountryCodeType = Type(0x2c) VendorType = Type(0x2d) DiagVersionType = Type(0x2e) ServiceTagType = Type(0x2f) VendorExtensionType = Type(0xfd) CrcType = Type(0xfe) )
View Source
const WriteEnable = false
Enable with the "diag" build tag.
Variables ¶
View Source
var Types = []Typer{ ProductNameType, PartNumberType, SerialNumberType, BaseEthernetAddressType, ManufactureDateType, DeviceVersionType, LabelRevisionType, PlatformNameType, OnieVersionType, NEthernetAddressType, ManufacturerType, CountryCodeType, VendorType, DiagVersionType, ServiceTagType, VendorExtensionType, CrcType, }
View Source
var Vendor struct { New func() VendorExtension ReadBytes func() ([]byte, error) Write func([]byte) (int, error) }
Each machine main must assign the following Vendor parameters
Functions ¶
This section is empty.
Types ¶
type EthernetAddress ¶
type EthernetAddress net.HardwareAddr
func (EthernetAddress) Bytes ¶
func (p EthernetAddress) Bytes() []byte
func (EthernetAddress) Scan ¶
func (p EthernetAddress) Scan(s string) error
func (EthernetAddress) String ¶
func (p EthernetAddress) String() string
type OnieData ¶
type OnieData [OnieDataSz]byte
Click to show internal directories.
Click to hide internal directories.