ipcfg

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MEMGETINFO     = 0x80204d01 //from linux: mtd-abi.h
	MEMERASE       = 0x40084d02
	MEMLOCK        = 0x40084d05
	MEMUNLOCK      = 0x40084d06
	MEMERASE64     = 0x40104d14
	MTDdevice      = "/dev/mtd0"
	VERSION_OFFSET = 0x000
	VERSION_LEN    = 0x008
	VERSION_DEV    = 0x003
	JSON_OFFSET    = 0x100
	ENVSIZE        = 8192
	ENVCRC         = 4
)
View Source
const MAXOPS = 30
View Source
const (
	Machine = "platina-mk1-bmc"
)

Variables

View Source
var Qfmt = map[string]FlashFmt{}

Functions

func DoI2cRpc

func DoI2cRpc() error

func GetEnv

func GetEnv(q bool) (env []string, bootargs int, err error)

func GetPer

func GetPer(q bool) (b []byte, err error)

func PutEnv

func PutEnv(e []string, q bool) (err error)

func PutPer

func PutPer(b []byte, q bool) (err error)

func ReadBlk

func ReadBlk(blknam string, q bool) (b []byte, err error)

func UpdateEnv

func UpdateEnv(q bool) (err error)

func WriteBlk

func WriteBlk(blknam string, b []byte, q bool) (err error)

Types

type Command

type Command struct {
	Gpio func()
	// contains filtered or unexported fields
}

func (Command) Apropos

func (Command) Apropos() lang.Alt

func (*Command) Main

func (c *Command) Main(args ...string) (err error)

func (Command) Man

func (Command) Man() lang.Alt

func (Command) String

func (Command) String() string

func (Command) Usage

func (Command) Usage() string

type EraseInfo

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

type FlashFmt

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

type I

type I struct {
	InUse     bool
	RW        i2c.RW
	RegOffset uint8
	BusSize   i2c.SMBusSize
	Data      [34]byte
	Bus       int
	Addr      int
	Delay     int
}

type I2cReq

type I2cReq int

type MTDinfo

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

type R

type R struct {
	D [34]byte
	E error
}

Jump to

Keyboard shortcuts

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