heci

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

********************************************************************

  • Copyright (c) Intel Corporation 2021
  • SPDX-License-Identifier: Apache-2.0 *********************************************************************

Index

Constants

View Source
const (
	Device                   = "/dev/mei0"
	IOCTL_MEI_CONNECT_CLIENT = 0xC0104801
)

Variables

View Source
var MEI_IAMTHIF = [16]uint8{0x28, 0x00, 0xf8, 0x12, 0xb7, 0xb4, 0x2d, 0x4b, 0xac, 0xa8, 0x46, 0xe0, 0xff, 0x65, 0x81, 0x4c}

PTHI

View Source
var MEI_LMEIF = [16]uint8{0xdb, 0xa4, 0x33, 0x67, 0x76, 0x04, 0x7b, 0x4e, 0xb3, 0xaf, 0xbc, 0xfc, 0x29, 0xbe, 0xe7, 0xa7}

LME

View Source
var MEI_WDIF = [16]uint8{0x6f, 0x9a, 0xb7, 0x05, 0x28, 0x46, 0x7f, 0x4d, 0x89, 0x9D, 0xA9, 0x15, 0x14, 0xCB, 0x32, 0xAB}

Watchdog (WD)

Functions

func Ioctl

func Ioctl(fd, op, arg uintptr) error

Types

type CMEIConnectClientData

type CMEIConnectClientData struct {
	// contains filtered or unexported fields
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver() *Driver

func (*Driver) Close

func (heci *Driver) Close()

func (*Driver) GetBufferSize

func (heci *Driver) GetBufferSize() uint32

func (*Driver) GetHardwareId

func (heci *Driver) GetHardwareId() string

func (*Driver) Init

func (heci *Driver) Init(useLME bool, useWD bool) error

func (*Driver) ReceiveMessage

func (heci *Driver) ReceiveMessage(buffer []byte, done *uint32) (bytesRead uint32, err error)

func (*Driver) SendMessage

func (heci *Driver) SendMessage(buffer []byte, done *uint32) (bytesWritten uint32, err error)

type Interface

type Interface interface {
	GetHardwareId() string
	Init(useLME bool, useWD bool) error
	GetBufferSize() uint32
	SendMessage(buffer []byte, done *uint32) (bytesWritten uint32, err error)
	ReceiveMessage(buffer []byte, done *uint32) (bytesRead uint32, err error)
	Close()
}

type MEIConnectClientData

type MEIConnectClientData struct {
	MaxMessageLength uint32
	ProtocolVersion  uint8
	Reserved         [3]uint8
}

Jump to

Keyboard shortcuts

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