dutcontrol

package
v0.0.0-...-9474aff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package dutcontrol is generated from dutcontrol.proto in the ti50 repository.

Index

Constants

This section is empty.

Variables

View Source
var (
	CCDSerialEndPoint_name = map[int32]string{
		0: "UNKNOWN_SERIAL",
		1: "EC",
		2: "AP",
		3: "FPMCU",
		4: "GSC",
	}
	CCDSerialEndPoint_value = map[string]int32{
		"UNKNOWN_SERIAL": 0,
		"EC":             1,
		"AP":             2,
		"FPMCU":          3,
		"GSC":            4,
	}
)

Enum value maps for CCDSerialEndPoint.

View Source
var File_dutcontrol_proto protoreflect.FileDescriptor

Functions

func RegisterDutControlServer

func RegisterDutControlServer(s *grpc.Server, srv DutControlServer)

Types

type CCDSerialEndPoint

type CCDSerialEndPoint int32

CCD serial-like end points.

const (
	CCDSerialEndPoint_UNKNOWN_SERIAL CCDSerialEndPoint = 0
	CCDSerialEndPoint_EC             CCDSerialEndPoint = 1
	CCDSerialEndPoint_AP             CCDSerialEndPoint = 2
	CCDSerialEndPoint_FPMCU          CCDSerialEndPoint = 3
	CCDSerialEndPoint_GSC            CCDSerialEndPoint = 4
)

func (CCDSerialEndPoint) Descriptor

func (CCDSerialEndPoint) Enum

func (CCDSerialEndPoint) EnumDescriptor deprecated

func (CCDSerialEndPoint) EnumDescriptor() ([]byte, []int)

Deprecated: Use CCDSerialEndPoint.Descriptor instead.

func (CCDSerialEndPoint) Number

func (CCDSerialEndPoint) String

func (x CCDSerialEndPoint) String() string

func (CCDSerialEndPoint) Type

type CommandArg

type CommandArg struct {

	// Types that are assignable to Type:
	//	*CommandArg_Plain
	//	*CommandArg_File
	Type isCommandArg_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*CommandArg) Descriptor deprecated

func (*CommandArg) Descriptor() ([]byte, []int)

Deprecated: Use CommandArg.ProtoReflect.Descriptor instead.

func (*CommandArg) GetFile

func (x *CommandArg) GetFile() []byte

func (*CommandArg) GetPlain

func (x *CommandArg) GetPlain() string

func (*CommandArg) GetType

func (m *CommandArg) GetType() isCommandArg_Type

func (*CommandArg) ProtoMessage

func (*CommandArg) ProtoMessage()

func (*CommandArg) ProtoReflect

func (x *CommandArg) ProtoReflect() protoreflect.Message

func (*CommandArg) Reset

func (x *CommandArg) Reset()

func (*CommandArg) String

func (x *CommandArg) String() string

type CommandArg_File

type CommandArg_File struct {
	// Bytes to be written to a temp file then presented as its name.
	File []byte `protobuf:"bytes,2,opt,name=file,proto3,oneof"`
}

type CommandArg_Plain

type CommandArg_Plain struct {
	// A literal such as "--flag" or "value".
	Plain string `protobuf:"bytes,1,opt,name=plain,proto3,oneof"`
}

type CommandRequest

type CommandRequest struct {
	Command string        `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	Args    []*CommandArg `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

CommandRequest runs an OpenTitanTool command.

func (*CommandRequest) Descriptor deprecated

func (*CommandRequest) Descriptor() ([]byte, []int)

Deprecated: Use CommandRequest.ProtoReflect.Descriptor instead.

func (*CommandRequest) GetArgs

func (x *CommandRequest) GetArgs() []*CommandArg

func (*CommandRequest) GetCommand

func (x *CommandRequest) GetCommand() string

func (*CommandRequest) ProtoMessage

func (*CommandRequest) ProtoMessage()

func (*CommandRequest) ProtoReflect

func (x *CommandRequest) ProtoReflect() protoreflect.Message

func (*CommandRequest) Reset

func (x *CommandRequest) Reset()

func (*CommandRequest) String

func (x *CommandRequest) String() string

type CommandResponse

type CommandResponse struct {
	Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	// Empty indicates no error (zero exit code).
	Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandResponse) Descriptor deprecated

func (*CommandResponse) Descriptor() ([]byte, []int)

Deprecated: Use CommandResponse.ProtoReflect.Descriptor instead.

func (*CommandResponse) GetErr

func (x *CommandResponse) GetErr() string

func (*CommandResponse) GetOutput

func (x *CommandResponse) GetOutput() []byte

func (*CommandResponse) ProtoMessage

func (*CommandResponse) ProtoMessage()

func (*CommandResponse) ProtoReflect

func (x *CommandResponse) ProtoReflect() protoreflect.Message

func (*CommandResponse) Reset

func (x *CommandResponse) Reset()

func (*CommandResponse) String

func (x *CommandResponse) String() string

type ConsoleOpen

type ConsoleOpen struct {

	// Types that are assignable to Type:
	//	*ConsoleOpen_CcdSerial
	//	*ConsoleOpen_RawUart
	Type isConsoleOpen_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*ConsoleOpen) Descriptor deprecated

func (*ConsoleOpen) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleOpen.ProtoReflect.Descriptor instead.

func (*ConsoleOpen) GetCcdSerial

func (x *ConsoleOpen) GetCcdSerial() *ConsoleOpenCCDSerial

func (*ConsoleOpen) GetRawUart

func (x *ConsoleOpen) GetRawUart() *ConsoleOpenRawUART

func (*ConsoleOpen) GetType

func (m *ConsoleOpen) GetType() isConsoleOpen_Type

func (*ConsoleOpen) ProtoMessage

func (*ConsoleOpen) ProtoMessage()

func (*ConsoleOpen) ProtoReflect

func (x *ConsoleOpen) ProtoReflect() protoreflect.Message

func (*ConsoleOpen) Reset

func (x *ConsoleOpen) Reset()

func (*ConsoleOpen) String

func (x *ConsoleOpen) String() string

type ConsoleOpenCCDSerial

type ConsoleOpenCCDSerial struct {
	Ep   CCDSerialEndPoint `protobuf:"varint,1,opt,name=ep,proto3,enum=devboardservice.dutcontrol.CCDSerialEndPoint" json:"ep,omitempty"`
	Baud int32             `protobuf:"varint,2,opt,name=baud,proto3" json:"baud,omitempty"`
	// Max length of data for each Recv.
	DataLen int32 `protobuf:"varint,3,opt,name=data_len,json=dataLen,proto3" json:"data_len,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsoleOpenCCDSerial) Descriptor deprecated

func (*ConsoleOpenCCDSerial) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleOpenCCDSerial.ProtoReflect.Descriptor instead.

func (*ConsoleOpenCCDSerial) GetBaud

func (x *ConsoleOpenCCDSerial) GetBaud() int32

func (*ConsoleOpenCCDSerial) GetDataLen

func (x *ConsoleOpenCCDSerial) GetDataLen() int32

func (*ConsoleOpenCCDSerial) GetEp

func (*ConsoleOpenCCDSerial) ProtoMessage

func (*ConsoleOpenCCDSerial) ProtoMessage()

func (*ConsoleOpenCCDSerial) ProtoReflect

func (x *ConsoleOpenCCDSerial) ProtoReflect() protoreflect.Message

func (*ConsoleOpenCCDSerial) Reset

func (x *ConsoleOpenCCDSerial) Reset()

func (*ConsoleOpenCCDSerial) String

func (x *ConsoleOpenCCDSerial) String() string

type ConsoleOpenRawUART

type ConsoleOpenRawUART struct {
	Uart string `protobuf:"bytes,1,opt,name=uart,proto3" json:"uart,omitempty"`
	Baud int32  `protobuf:"varint,2,opt,name=baud,proto3" json:"baud,omitempty"`
	// Max length of data for each Recv.
	DataLen int32 `protobuf:"varint,3,opt,name=data_len,json=dataLen,proto3" json:"data_len,omitempty"`
	// contains filtered or unexported fields
}

Through the OpenTitanTool.

func (*ConsoleOpenRawUART) Descriptor deprecated

func (*ConsoleOpenRawUART) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleOpenRawUART.ProtoReflect.Descriptor instead.

func (*ConsoleOpenRawUART) GetBaud

func (x *ConsoleOpenRawUART) GetBaud() int32

func (*ConsoleOpenRawUART) GetDataLen

func (x *ConsoleOpenRawUART) GetDataLen() int32

func (*ConsoleOpenRawUART) GetUart

func (x *ConsoleOpenRawUART) GetUart() string

func (*ConsoleOpenRawUART) ProtoMessage

func (*ConsoleOpenRawUART) ProtoMessage()

func (*ConsoleOpenRawUART) ProtoReflect

func (x *ConsoleOpenRawUART) ProtoReflect() protoreflect.Message

func (*ConsoleOpenRawUART) Reset

func (x *ConsoleOpenRawUART) Reset()

func (*ConsoleOpenRawUART) String

func (x *ConsoleOpenRawUART) String() string

type ConsoleOpenResult

type ConsoleOpenResult struct {
	Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsoleOpenResult) Descriptor deprecated

func (*ConsoleOpenResult) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleOpenResult.ProtoReflect.Descriptor instead.

func (*ConsoleOpenResult) GetErr

func (x *ConsoleOpenResult) GetErr() string

func (*ConsoleOpenResult) ProtoMessage

func (*ConsoleOpenResult) ProtoMessage()

func (*ConsoleOpenResult) ProtoReflect

func (x *ConsoleOpenResult) ProtoReflect() protoreflect.Message

func (*ConsoleOpenResult) Reset

func (x *ConsoleOpenResult) Reset()

func (*ConsoleOpenResult) String

func (x *ConsoleOpenResult) String() string

type ConsoleOpen_CcdSerial

type ConsoleOpen_CcdSerial struct {
	CcdSerial *ConsoleOpenCCDSerial `protobuf:"bytes,1,opt,name=ccd_serial,json=ccdSerial,proto3,oneof"`
}

type ConsoleOpen_RawUart

type ConsoleOpen_RawUart struct {
	RawUart *ConsoleOpenRawUART `protobuf:"bytes,2,opt,name=raw_uart,json=rawUart,proto3,oneof"`
}

type ConsoleRequest

type ConsoleRequest struct {

	// Types that are assignable to Operation:
	//	*ConsoleRequest_Open
	//	*ConsoleRequest_SerialWrite
	Operation isConsoleRequest_Operation `protobuf_oneof:"operation"`
	// contains filtered or unexported fields
}

func (*ConsoleRequest) Descriptor deprecated

func (*ConsoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleRequest.ProtoReflect.Descriptor instead.

func (*ConsoleRequest) GetOpen

func (x *ConsoleRequest) GetOpen() *ConsoleOpen

func (*ConsoleRequest) GetOperation

func (m *ConsoleRequest) GetOperation() isConsoleRequest_Operation

func (*ConsoleRequest) GetSerialWrite

func (x *ConsoleRequest) GetSerialWrite() *ConsoleSerialWrite

func (*ConsoleRequest) ProtoMessage

func (*ConsoleRequest) ProtoMessage()

func (*ConsoleRequest) ProtoReflect

func (x *ConsoleRequest) ProtoReflect() protoreflect.Message

func (*ConsoleRequest) Reset

func (x *ConsoleRequest) Reset()

func (*ConsoleRequest) String

func (x *ConsoleRequest) String() string

type ConsoleRequest_Open

type ConsoleRequest_Open struct {
	Open *ConsoleOpen `protobuf:"bytes,1,opt,name=open,proto3,oneof"`
}

type ConsoleRequest_SerialWrite

type ConsoleRequest_SerialWrite struct {
	SerialWrite *ConsoleSerialWrite `protobuf:"bytes,2,opt,name=serial_write,json=serialWrite,proto3,oneof"`
}

type ConsoleResponse

type ConsoleResponse struct {

	// Types that are assignable to Type:
	//	*ConsoleResponse_Open
	//	*ConsoleResponse_SerialWrite
	//	*ConsoleResponse_SerialData
	Type isConsoleResponse_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*ConsoleResponse) Descriptor deprecated

func (*ConsoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleResponse.ProtoReflect.Descriptor instead.

func (*ConsoleResponse) GetOpen

func (x *ConsoleResponse) GetOpen() *ConsoleOpenResult

func (*ConsoleResponse) GetSerialData

func (x *ConsoleResponse) GetSerialData() *ConsoleSerialData

func (*ConsoleResponse) GetSerialWrite

func (x *ConsoleResponse) GetSerialWrite() *ConsoleSerialWriteResult

func (*ConsoleResponse) GetType

func (m *ConsoleResponse) GetType() isConsoleResponse_Type

func (*ConsoleResponse) ProtoMessage

func (*ConsoleResponse) ProtoMessage()

func (*ConsoleResponse) ProtoReflect

func (x *ConsoleResponse) ProtoReflect() protoreflect.Message

func (*ConsoleResponse) Reset

func (x *ConsoleResponse) Reset()

func (*ConsoleResponse) String

func (x *ConsoleResponse) String() string

type ConsoleResponse_Open

type ConsoleResponse_Open struct {
	Open *ConsoleOpenResult `protobuf:"bytes,1,opt,name=open,proto3,oneof"`
}

type ConsoleResponse_SerialData

type ConsoleResponse_SerialData struct {
	SerialData *ConsoleSerialData `protobuf:"bytes,3,opt,name=serial_data,json=serialData,proto3,oneof"`
}

type ConsoleResponse_SerialWrite

type ConsoleResponse_SerialWrite struct {
	SerialWrite *ConsoleSerialWriteResult `protobuf:"bytes,2,opt,name=serial_write,json=serialWrite,proto3,oneof"`
}

type ConsoleSerialData

type ConsoleSerialData struct {

	// Limited to data_len size in Open.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Empty indicates no error.  Non-empty does not imply zero data bytes.
	Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

ConsoleSerialData messages will be stream from server to client.

func (*ConsoleSerialData) Descriptor deprecated

func (*ConsoleSerialData) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleSerialData.ProtoReflect.Descriptor instead.

func (*ConsoleSerialData) GetData

func (x *ConsoleSerialData) GetData() []byte

func (*ConsoleSerialData) GetErr

func (x *ConsoleSerialData) GetErr() string

func (*ConsoleSerialData) ProtoMessage

func (*ConsoleSerialData) ProtoMessage()

func (*ConsoleSerialData) ProtoReflect

func (x *ConsoleSerialData) ProtoReflect() protoreflect.Message

func (*ConsoleSerialData) Reset

func (x *ConsoleSerialData) Reset()

func (*ConsoleSerialData) String

func (x *ConsoleSerialData) String() string

type ConsoleSerialWrite

type ConsoleSerialWrite struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsoleSerialWrite) Descriptor deprecated

func (*ConsoleSerialWrite) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleSerialWrite.ProtoReflect.Descriptor instead.

func (*ConsoleSerialWrite) GetData

func (x *ConsoleSerialWrite) GetData() []byte

func (*ConsoleSerialWrite) ProtoMessage

func (*ConsoleSerialWrite) ProtoMessage()

func (*ConsoleSerialWrite) ProtoReflect

func (x *ConsoleSerialWrite) ProtoReflect() protoreflect.Message

func (*ConsoleSerialWrite) Reset

func (x *ConsoleSerialWrite) Reset()

func (*ConsoleSerialWrite) String

func (x *ConsoleSerialWrite) String() string

type ConsoleSerialWriteResult

type ConsoleSerialWriteResult struct {

	// Number of bytes successfully written.
	N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
	// Empty indicates no error and n == len(data).  Non-empty does not imply n == 0.
	Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

ConsoleSerialWriteResult will be sent in the same order as ConsoleSerialWrite was received.

func (*ConsoleSerialWriteResult) Descriptor deprecated

func (*ConsoleSerialWriteResult) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleSerialWriteResult.ProtoReflect.Descriptor instead.

func (*ConsoleSerialWriteResult) GetErr

func (x *ConsoleSerialWriteResult) GetErr() string

func (*ConsoleSerialWriteResult) GetN

func (x *ConsoleSerialWriteResult) GetN() int32

func (*ConsoleSerialWriteResult) ProtoMessage

func (*ConsoleSerialWriteResult) ProtoMessage()

func (*ConsoleSerialWriteResult) ProtoReflect

func (x *ConsoleSerialWriteResult) ProtoReflect() protoreflect.Message

func (*ConsoleSerialWriteResult) Reset

func (x *ConsoleSerialWriteResult) Reset()

func (*ConsoleSerialWriteResult) String

func (x *ConsoleSerialWriteResult) String() string

type DutControlClient

type DutControlClient interface {
	// Console allows stream access to a serial interface.
	Console(ctx context.Context, opts ...grpc.CallOption) (DutControl_ConsoleClient, error)
	// Run a generic OpenTitanTool command.
	Command(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error)
}

DutControlClient is the client API for DutControl service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDutControlClient

func NewDutControlClient(cc grpc.ClientConnInterface) DutControlClient

type DutControlServer

type DutControlServer interface {
	// Console allows stream access to a serial interface.
	Console(DutControl_ConsoleServer) error
	// Run a generic OpenTitanTool command.
	Command(context.Context, *CommandRequest) (*CommandResponse, error)
}

DutControlServer is the server API for DutControl service.

type DutControl_ConsoleClient

type DutControl_ConsoleClient interface {
	Send(*ConsoleRequest) error
	Recv() (*ConsoleResponse, error)
	grpc.ClientStream
}

type DutControl_ConsoleServer

type DutControl_ConsoleServer interface {
	Send(*ConsoleResponse) error
	Recv() (*ConsoleRequest, error)
	grpc.ServerStream
}

type UnimplementedDutControlServer

type UnimplementedDutControlServer struct {
}

UnimplementedDutControlServer can be embedded to have forward compatible implementations.

func (*UnimplementedDutControlServer) Command

func (*UnimplementedDutControlServer) Console

Jump to

Keyboard shortcuts

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