heci

package
v3.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

implement HECI using ME interface (mei) via official kernel drivers

Implement HECI using ME interface (mei) via official kernel drivers. The code is partially based on u-root code.

Copyright 2020 the u-root Authors. All rights reserved Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

implement HECI using direct memory-mapped interface (mei) via official kernel drivers

Index

Constants

View Source
const (
	PATH_DEV_MEI         = "/dev/mei0"
	IOCTL_CONNECT_CLIENT = 0xC0104801
)

Variables

This section is empty.

Functions

func ReportMECommands

func ReportMECommands(commands []api.MEClientCommands) (err error)

Types

type Ctrl

type Ctrl struct {
	Status     uint8
	Reader     int8
	Writer     int8
	BufferSize uint8
}

func (*Ctrl) ClrIRQEnable

func (c *Ctrl) ClrIRQEnable()

func (*Ctrl) ClrReset

func (c *Ctrl) ClrReset()

func (*Ctrl) IsIRQStatus

func (c *Ctrl) IsIRQStatus() bool

func (*Ctrl) IsIRQTrigger

func (c *Ctrl) IsIRQTrigger() bool

func (*Ctrl) IsReady

func (c *Ctrl) IsReady() bool

func (*Ctrl) IsReset

func (c *Ctrl) IsReset() bool

func (*Ctrl) SetIRQEnable

func (c *Ctrl) SetIRQEnable()

func (*Ctrl) SetIRQStatus

func (c *Ctrl) SetIRQStatus()

func (*Ctrl) SetIRQTrigger

func (c *Ctrl) SetIRQTrigger()

func (*Ctrl) SetReady

func (c *Ctrl) SetReady()

func (*Ctrl) SetReset

func (c *Ctrl) SetReset()

type Hecihdr

type Hecihdr [4]byte

func (Hecihdr) HostAddr

func (hh Hecihdr) HostAddr() uint8

func (Hecihdr) Length

func (hh Hecihdr) Length() uint16

func (Hecihdr) MEAddr

func (hh Hecihdr) MEAddr() uint8

func (Hecihdr) MsgComplete

func (hh Hecihdr) MsgComplete() bool

func (*Hecihdr) SetHostAddr

func (hh *Hecihdr) SetHostAddr(v uint8)

func (*Hecihdr) SetLength

func (hh *Hecihdr) SetLength(v uint16)

func (*Hecihdr) SetMEAddr

func (hh *Hecihdr) SetMEAddr(v uint8)

func (*Hecihdr) SetMsgComplete

func (hh *Hecihdr) SetMsgComplete(v bool)

type MECommandIntf

type MECommandIntf interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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