Documentation ¶
Overview ¶
Package ocp implements OCP/Facebook-specific IPMI client functions.
Index ¶
- Variables
- func ClearCMOSClearValidBits(i *ipmi.IPMI, data []byte) error
- func IsCMOSClearSet(i *ipmi.IPMI) (bool, []byte, error)
- func SendOemIpmiDimmInfo(i *ipmi.IPMI, info []DimmInfo) error
- func SendOemIpmiProcessorInfo(i *ipmi.IPMI, info []ProcessorInfo) error
- func SetOemIpmiPostEnd(i *ipmi.IPMI) error
- type DimmInfo
- type ProcessorInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var OENMap = map[string][3]uint8{
"Wiwynn": {0x0, 0x9c, 0x9c},
}
Maps OEM names to a 3 byte OEM number. OENs are typically serialized as the first 3 bytes of a request body.
Functions ¶
func ClearCMOSClearValidBits ¶
Set BIOS boot order with both CMOS clear and valid bits cleared
func IsCMOSClearSet ¶
Get BIOS boot order data and check if CMOS clear bit and valid bit are both set
func SendOemIpmiProcessorInfo ¶
func SendOemIpmiProcessorInfo(i *ipmi.IPMI, info []ProcessorInfo) error
func SetOemIpmiPostEnd ¶
Types ¶
type DimmInfo ¶
type DimmInfo struct { ManufacturerID [3]uint8 Index uint8 ParameterSelector uint8 DIMMPresent uint8 NodeNumber uint8 ChannelNumber uint8 DIMMNumber uint8 DIMMType uint8 DIMMSpeed uint16 DIMMSize uint32 ModulePartNumber [20]byte ModuleSerialNumber uint32 ModuleManufacturerIDLSB uint8 ModuleManufacturerIDMSB uint8 }
type ProcessorInfo ¶
type ProcessorInfo struct { ManufacturerID [3]uint8 Index uint8 ParameterSelector uint8 ProductName [48]byte CoreNumber uint8 ThreadNumberLSB uint8 ThreadNumberMSB uint8 ProcessorFrequencyLSB uint8 ProcessorFrequencyMSB uint8 Revision1 uint8 Revision2 uint8 }
func GetOemIpmiProcessorInfo ¶
func GetOemIpmiProcessorInfo(si *smbios.Info) ([]ProcessorInfo, error)
Click to show internal directories.
Click to hide internal directories.