ocp

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2020 License: BSD-3-Clause Imports: 7 Imported by: 7

Documentation

Overview

Package ocp implements OCP/Facebook-specific IPMI client functions.

Index

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

func ClearCMOSClearValidBits(i *ipmi.IPMI, data []byte) error

Set BIOS boot order with both CMOS clear and valid bits cleared

func IsCMOSClearSet

func IsCMOSClearSet(i *ipmi.IPMI) (bool, []byte, error)

Get BIOS boot order data and check if CMOS clear bit and valid bit are both set

func SendOemIpmiDimmInfo

func SendOemIpmiDimmInfo(i *ipmi.IPMI, info []DimmInfo) error

func SendOemIpmiProcessorInfo

func SendOemIpmiProcessorInfo(i *ipmi.IPMI, info []ProcessorInfo) error

func SetOemIpmiPostEnd

func SetOemIpmiPostEnd(i *ipmi.IPMI) error

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
}

func GetOemIpmiDimmInfo

func GetOemIpmiDimmInfo(si *smbios.Info) ([]DimmInfo, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL