firmware

package
v0.0.0-...-683b059 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GBBFlag_name = map[int32]string{
		0:  "DEV_SCREEN_SHORT_DELAY",
		1:  "LOAD_OPTION_ROMS",
		2:  "ENABLE_ALTERNATE_OS",
		3:  "FORCE_DEV_SWITCH_ON",
		4:  "FORCE_DEV_BOOT_USB",
		5:  "DISABLE_FW_ROLLBACK_CHECK",
		6:  "ENTER_TRIGGERS_TONORM",
		7:  "FORCE_DEV_BOOT_LEGACY",
		8:  "FAFT_KEY_OVERIDE",
		9:  "DISABLE_EC_SOFTWARE_SYNC",
		10: "DEFAULT_DEV_BOOT_LEGACY",
		11: "DISABLE_PD_SOFTWARE_SYNC",
		12: "DISABLE_LID_SHUTDOWN",
		13: "FORCE_DEV_BOOT_FASTBOOT_FULL_CAP",
	}
	GBBFlag_value = map[string]int32{
		"DEV_SCREEN_SHORT_DELAY":           0,
		"LOAD_OPTION_ROMS":                 1,
		"ENABLE_ALTERNATE_OS":              2,
		"FORCE_DEV_SWITCH_ON":              3,
		"FORCE_DEV_BOOT_USB":               4,
		"DISABLE_FW_ROLLBACK_CHECK":        5,
		"ENTER_TRIGGERS_TONORM":            6,
		"FORCE_DEV_BOOT_LEGACY":            7,
		"FAFT_KEY_OVERIDE":                 8,
		"DISABLE_EC_SOFTWARE_SYNC":         9,
		"DEFAULT_DEV_BOOT_LEGACY":          10,
		"DISABLE_PD_SOFTWARE_SYNC":         11,
		"DISABLE_LID_SHUTDOWN":             12,
		"FORCE_DEV_BOOT_FASTBOOT_FULL_CAP": 13,
	}
)

Enum value maps for GBBFlag.

View Source
var (
	Programmer_name = map[int32]string{
		0: "BIOSProgrammer",
		1: "ECProgrammer",
	}
	Programmer_value = map[string]int32{
		"BIOSProgrammer": 0,
		"ECProgrammer":   1,
	}
)

Enum value maps for Programmer.

View Source
var (
	ImageSection_name = map[int32]string{
		0: "BOOTSTUBImageSection",
		1: "COREBOOTImageSection",
		2: "GBBImageSection",
		3: "ECRWImageSection",
		4: "ECRWBImageSection",
		5: "EmptyImageSection",
	}
	ImageSection_value = map[string]int32{
		"BOOTSTUBImageSection": 0,
		"COREBOOTImageSection": 1,
		"GBBImageSection":      2,
		"ECRWImageSection":     3,
		"ECRWBImageSection":    4,
		"EmptyImageSection":    5,
	}
)

Enum value maps for ImageSection.

View Source
var File_bios_service_proto protoreflect.FileDescriptor
View Source
var File_fp_updater_service_proto protoreflect.FileDescriptor
View Source
var File_serial_port_service_proto protoreflect.FileDescriptor
View Source
var File_utils_service_proto protoreflect.FileDescriptor

Functions

func RegisterBiosServiceServer

func RegisterBiosServiceServer(s *grpc.Server, srv BiosServiceServer)

func RegisterFpUpdaterServiceServer

func RegisterFpUpdaterServiceServer(s *grpc.Server, srv FpUpdaterServiceServer)

func RegisterSerialPortServiceServer

func RegisterSerialPortServiceServer(s *grpc.Server, srv SerialPortServiceServer)

func RegisterUtilsServiceServer

func RegisterUtilsServiceServer(s *grpc.Server, srv UtilsServiceServer)

Types

type BiosServiceClient

type BiosServiceClient interface {
	// GetGBBFlags gets the flags that are cleared and set.
	GetGBBFlags(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GBBFlagsState, error)
	// ClearAndSetGBBFlags modifies the specified flags, leaving the rest unchanged.
	ClearAndSetGBBFlags(ctx context.Context, in *GBBFlagsState, opts ...grpc.CallOption) (*empty.Empty, error)
	// EnableAPSoftwareWriteProtect enables the AP software write protect.
	EnableAPSoftwareWriteProtect(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// CorruptECSection writes garbage bytes to the entire EC section specified.
	CorruptECSection(ctx context.Context, in *CorruptSection, opts ...grpc.CallOption) (*empty.Empty, error)
	// BackupImageSection backs up the current fw region locally and returns its path.
	BackupImageSection(ctx context.Context, in *FWBackUpSection, opts ...grpc.CallOption) (*FWBackUpInfo, error)
	// RestoreImageSection restores the fw region from path.
	RestoreImageSection(ctx context.Context, in *FWBackUpInfo, opts ...grpc.CallOption) (*empty.Empty, error)
}

BiosServiceClient is the client API for BiosService service.

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

type BiosServiceServer

type BiosServiceServer interface {
	// GetGBBFlags gets the flags that are cleared and set.
	GetGBBFlags(context.Context, *empty.Empty) (*GBBFlagsState, error)
	// ClearAndSetGBBFlags modifies the specified flags, leaving the rest unchanged.
	ClearAndSetGBBFlags(context.Context, *GBBFlagsState) (*empty.Empty, error)
	// EnableAPSoftwareWriteProtect enables the AP software write protect.
	EnableAPSoftwareWriteProtect(context.Context, *empty.Empty) (*empty.Empty, error)
	// CorruptECSection writes garbage bytes to the entire EC section specified.
	CorruptECSection(context.Context, *CorruptSection) (*empty.Empty, error)
	// BackupImageSection backs up the current fw region locally and returns its path.
	BackupImageSection(context.Context, *FWBackUpSection) (*FWBackUpInfo, error)
	// RestoreImageSection restores the fw region from path.
	RestoreImageSection(context.Context, *FWBackUpInfo) (*empty.Empty, error)
}

BiosServiceServer is the server API for BiosService service.

type CorruptSection

type CorruptSection struct {
	Section ImageSection `protobuf:"varint,1,opt,name=Section,proto3,enum=tast.cros.firmware.ImageSection" json:"Section,omitempty"`
	// contains filtered or unexported fields
}

CorruptSection selects the section to corrupt.

func (*CorruptSection) Descriptor deprecated

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

Deprecated: Use CorruptSection.ProtoReflect.Descriptor instead.

func (*CorruptSection) GetSection

func (x *CorruptSection) GetSection() ImageSection

func (*CorruptSection) ProtoMessage

func (*CorruptSection) ProtoMessage()

func (*CorruptSection) ProtoReflect

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

func (*CorruptSection) Reset

func (x *CorruptSection) Reset()

func (*CorruptSection) String

func (x *CorruptSection) String() string

type CrosConfigResponse

type CrosConfigResponse struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

CrosConfigResponse provides relevant crosconfig values.

func (*CrosConfigResponse) Descriptor deprecated

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

Deprecated: Use CrosConfigResponse.ProtoReflect.Descriptor instead.

func (*CrosConfigResponse) GetValues

func (x *CrosConfigResponse) GetValues() []string

func (*CrosConfigResponse) ProtoMessage

func (*CrosConfigResponse) ProtoMessage()

func (*CrosConfigResponse) ProtoReflect

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

func (*CrosConfigResponse) Reset

func (x *CrosConfigResponse) Reset()

func (*CrosConfigResponse) String

func (x *CrosConfigResponse) String() string

type EvalTabletModeResponse

type EvalTabletModeResponse struct {
	TabletModeEnabled bool `protobuf:"varint,1,opt,name=tablet_mode_enabled,json=tabletModeEnabled,proto3" json:"tablet_mode_enabled,omitempty"`
	// contains filtered or unexported fields
}

EvalTabletModeResponse provides the tablet mode enabled status.

func (*EvalTabletModeResponse) Descriptor deprecated

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

Deprecated: Use EvalTabletModeResponse.ProtoReflect.Descriptor instead.

func (*EvalTabletModeResponse) GetTabletModeEnabled

func (x *EvalTabletModeResponse) GetTabletModeEnabled() bool

func (*EvalTabletModeResponse) ProtoMessage

func (*EvalTabletModeResponse) ProtoMessage()

func (*EvalTabletModeResponse) ProtoReflect

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

func (*EvalTabletModeResponse) Reset

func (x *EvalTabletModeResponse) Reset()

func (*EvalTabletModeResponse) String

func (x *EvalTabletModeResponse) String() string

type FWBackUpInfo

type FWBackUpInfo struct {
	Path       string       `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
	Section    ImageSection `protobuf:"varint,2,opt,name=Section,proto3,enum=tast.cros.firmware.ImageSection" json:"Section,omitempty"`
	Programmer Programmer   `protobuf:"varint,3,opt,name=Programmer,proto3,enum=tast.cros.firmware.Programmer" json:"Programmer,omitempty"`
	// contains filtered or unexported fields
}

FWBackUpInfo represents the path, programmer, and section of image backup.

func (*FWBackUpInfo) Descriptor deprecated

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

Deprecated: Use FWBackUpInfo.ProtoReflect.Descriptor instead.

func (*FWBackUpInfo) GetPath

func (x *FWBackUpInfo) GetPath() string

func (*FWBackUpInfo) GetProgrammer

func (x *FWBackUpInfo) GetProgrammer() Programmer

func (*FWBackUpInfo) GetSection

func (x *FWBackUpInfo) GetSection() ImageSection

func (*FWBackUpInfo) ProtoMessage

func (*FWBackUpInfo) ProtoMessage()

func (*FWBackUpInfo) ProtoReflect

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

func (*FWBackUpInfo) Reset

func (x *FWBackUpInfo) Reset()

func (*FWBackUpInfo) String

func (x *FWBackUpInfo) String() string

type FWBackUpSection

type FWBackUpSection struct {
	Section    ImageSection `protobuf:"varint,1,opt,name=Section,proto3,enum=tast.cros.firmware.ImageSection" json:"Section,omitempty"`
	Programmer Programmer   `protobuf:"varint,2,opt,name=Programmer,proto3,enum=tast.cros.firmware.Programmer" json:"Programmer,omitempty"`
	// contains filtered or unexported fields
}

FWBackUpSection represents the string containing the image section to back up and the programmer to use.

func (*FWBackUpSection) Descriptor deprecated

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

Deprecated: Use FWBackUpSection.ProtoReflect.Descriptor instead.

func (*FWBackUpSection) GetProgrammer

func (x *FWBackUpSection) GetProgrammer() Programmer

func (*FWBackUpSection) GetSection

func (x *FWBackUpSection) GetSection() ImageSection

func (*FWBackUpSection) ProtoMessage

func (*FWBackUpSection) ProtoMessage()

func (*FWBackUpSection) ProtoReflect

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

func (*FWBackUpSection) Reset

func (x *FWBackUpSection) Reset()

func (*FWBackUpSection) String

func (x *FWBackUpSection) String() string

type FindPhysicalKeyboardResponse

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

FindPhysicalKeyboardResponse provides the path to /dev/input/event* for physical keyboard.

func (*FindPhysicalKeyboardResponse) Descriptor deprecated

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

Deprecated: Use FindPhysicalKeyboardResponse.ProtoReflect.Descriptor instead.

func (*FindPhysicalKeyboardResponse) GetPath

func (x *FindPhysicalKeyboardResponse) GetPath() string

func (*FindPhysicalKeyboardResponse) ProtoMessage

func (*FindPhysicalKeyboardResponse) ProtoMessage()

func (*FindPhysicalKeyboardResponse) ProtoReflect

func (*FindPhysicalKeyboardResponse) Reset

func (x *FindPhysicalKeyboardResponse) Reset()

func (*FindPhysicalKeyboardResponse) String

type FpUpdaterServiceClient

type FpUpdaterServiceClient interface {
	// ReadUpdaterLogs reads the latest and previous logs from the fingerprint firmware updater.
	ReadUpdaterLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReadFpUpdaterLogsResponse, error)
}

FpUpdaterServiceClient is the client API for FpUpdaterService service.

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

type FpUpdaterServiceServer

type FpUpdaterServiceServer interface {
	// ReadUpdaterLogs reads the latest and previous logs from the fingerprint firmware updater.
	ReadUpdaterLogs(context.Context, *empty.Empty) (*ReadFpUpdaterLogsResponse, error)
}

FpUpdaterServiceServer is the server API for FpUpdaterService service.

type GBBFlag

type GBBFlag int32

GBBFlag bit positions

const (
	GBBFlag_DEV_SCREEN_SHORT_DELAY           GBBFlag = 0
	GBBFlag_LOAD_OPTION_ROMS                 GBBFlag = 1
	GBBFlag_ENABLE_ALTERNATE_OS              GBBFlag = 2
	GBBFlag_FORCE_DEV_SWITCH_ON              GBBFlag = 3
	GBBFlag_FORCE_DEV_BOOT_USB               GBBFlag = 4
	GBBFlag_DISABLE_FW_ROLLBACK_CHECK        GBBFlag = 5
	GBBFlag_ENTER_TRIGGERS_TONORM            GBBFlag = 6
	GBBFlag_FORCE_DEV_BOOT_LEGACY            GBBFlag = 7
	GBBFlag_FAFT_KEY_OVERIDE                 GBBFlag = 8
	GBBFlag_DISABLE_EC_SOFTWARE_SYNC         GBBFlag = 9
	GBBFlag_DEFAULT_DEV_BOOT_LEGACY          GBBFlag = 10
	GBBFlag_DISABLE_PD_SOFTWARE_SYNC         GBBFlag = 11
	GBBFlag_DISABLE_LID_SHUTDOWN             GBBFlag = 12
	GBBFlag_FORCE_DEV_BOOT_FASTBOOT_FULL_CAP GBBFlag = 13
)

func (GBBFlag) Descriptor

func (GBBFlag) Descriptor() protoreflect.EnumDescriptor

func (GBBFlag) Enum

func (x GBBFlag) Enum() *GBBFlag

func (GBBFlag) EnumDescriptor deprecated

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

Deprecated: Use GBBFlag.Descriptor instead.

func (GBBFlag) Number

func (x GBBFlag) Number() protoreflect.EnumNumber

func (GBBFlag) String

func (x GBBFlag) String() string

func (GBBFlag) Type

func (GBBFlag) Type() protoreflect.EnumType

type GBBFlagsState

type GBBFlagsState struct {
	Clear []GBBFlag `protobuf:"varint,1,rep,packed,name=Clear,proto3,enum=tast.cros.firmware.GBBFlag" json:"Clear,omitempty"`
	Set   []GBBFlag `protobuf:"varint,2,rep,packed,name=Set,proto3,enum=tast.cros.firmware.GBBFlag" json:"Set,omitempty"`
	// contains filtered or unexported fields
}

GBBFlagsState represents the a known state of GBB flags. Set flags have precedence over cleared ones.

func (*GBBFlagsState) Descriptor deprecated

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

Deprecated: Use GBBFlagsState.ProtoReflect.Descriptor instead.

func (*GBBFlagsState) GetClear

func (x *GBBFlagsState) GetClear() []GBBFlag

func (*GBBFlagsState) GetSet

func (x *GBBFlagsState) GetSet() []GBBFlag

func (*GBBFlagsState) ProtoMessage

func (*GBBFlagsState) ProtoMessage()

func (*GBBFlagsState) ProtoReflect

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

func (*GBBFlagsState) Reset

func (x *GBBFlagsState) Reset()

func (*GBBFlagsState) String

func (x *GBBFlagsState) String() string

type ImageSection

type ImageSection int32

ImageSections enum for fw ImageSections

const (
	ImageSection_BOOTSTUBImageSection ImageSection = 0
	ImageSection_COREBOOTImageSection ImageSection = 1
	ImageSection_GBBImageSection      ImageSection = 2
	ImageSection_ECRWImageSection     ImageSection = 3
	ImageSection_ECRWBImageSection    ImageSection = 4
	ImageSection_EmptyImageSection    ImageSection = 5
)

func (ImageSection) Descriptor

func (ImageSection) Enum

func (x ImageSection) Enum() *ImageSection

func (ImageSection) EnumDescriptor deprecated

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

Deprecated: Use ImageSection.Descriptor instead.

func (ImageSection) Number

func (ImageSection) String

func (x ImageSection) String() string

func (ImageSection) Type

type NodeElement

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

NodeElement stores the element of UI node.

func (*NodeElement) Descriptor deprecated

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

Deprecated: Use NodeElement.ProtoReflect.Descriptor instead.

func (*NodeElement) GetName

func (x *NodeElement) GetName() string

func (*NodeElement) ProtoMessage

func (*NodeElement) ProtoMessage()

func (*NodeElement) ProtoReflect

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

func (*NodeElement) Reset

func (x *NodeElement) Reset()

func (*NodeElement) String

func (x *NodeElement) String() string

type PortId

type PortId struct {
	Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PortId) Descriptor deprecated

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

Deprecated: Use PortId.ProtoReflect.Descriptor instead.

func (*PortId) GetValue

func (x *PortId) GetValue() uint32

func (*PortId) ProtoMessage

func (*PortId) ProtoMessage()

func (*PortId) ProtoReflect

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

func (*PortId) Reset

func (x *PortId) Reset()

func (*PortId) String

func (x *PortId) String() string

type Programmer

type Programmer int32

Programmers enum for flashrom programmers

const (
	Programmer_BIOSProgrammer Programmer = 0
	Programmer_ECProgrammer   Programmer = 1
)

func (Programmer) Descriptor

func (Programmer) Descriptor() protoreflect.EnumDescriptor

func (Programmer) Enum

func (x Programmer) Enum() *Programmer

func (Programmer) EnumDescriptor deprecated

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

Deprecated: Use Programmer.Descriptor instead.

func (Programmer) Number

func (x Programmer) Number() protoreflect.EnumNumber

func (Programmer) String

func (x Programmer) String() string

func (Programmer) Type

type ReadFpUpdaterLogsResponse

type ReadFpUpdaterLogsResponse struct {
	LatestLog   string `protobuf:"bytes,1,opt,name=latest_log,json=latestLog,proto3" json:"latest_log,omitempty"`
	PreviousLog string `protobuf:"bytes,2,opt,name=previous_log,json=previousLog,proto3" json:"previous_log,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadFpUpdaterLogsResponse) Descriptor deprecated

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

Deprecated: Use ReadFpUpdaterLogsResponse.ProtoReflect.Descriptor instead.

func (*ReadFpUpdaterLogsResponse) GetLatestLog

func (x *ReadFpUpdaterLogsResponse) GetLatestLog() string

func (*ReadFpUpdaterLogsResponse) GetPreviousLog

func (x *ReadFpUpdaterLogsResponse) GetPreviousLog() string

func (*ReadFpUpdaterLogsResponse) ProtoMessage

func (*ReadFpUpdaterLogsResponse) ProtoMessage()

func (*ReadFpUpdaterLogsResponse) ProtoReflect

func (*ReadFpUpdaterLogsResponse) Reset

func (x *ReadFpUpdaterLogsResponse) Reset()

func (*ReadFpUpdaterLogsResponse) String

func (x *ReadFpUpdaterLogsResponse) String() string

type ReadServoKeyboardRequest

type ReadServoKeyboardRequest struct {
	Duration uint32 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

ReadServoKeyboardRequest listens the servo's keyboard emulator for a specified duration in seconds.

func (*ReadServoKeyboardRequest) Descriptor deprecated

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

Deprecated: Use ReadServoKeyboardRequest.ProtoReflect.Descriptor instead.

func (*ReadServoKeyboardRequest) GetDuration

func (x *ReadServoKeyboardRequest) GetDuration() uint32

func (*ReadServoKeyboardRequest) ProtoMessage

func (*ReadServoKeyboardRequest) ProtoMessage()

func (*ReadServoKeyboardRequest) ProtoReflect

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

func (*ReadServoKeyboardRequest) Reset

func (x *ReadServoKeyboardRequest) Reset()

func (*ReadServoKeyboardRequest) String

func (x *ReadServoKeyboardRequest) String() string

type ReadServoKeyboardResponse

type ReadServoKeyboardResponse struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

ReadServoKeyboardResponse provides what keys were pressed.

func (*ReadServoKeyboardResponse) Descriptor deprecated

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

Deprecated: Use ReadServoKeyboardResponse.ProtoReflect.Descriptor instead.

func (*ReadServoKeyboardResponse) GetKeys

func (x *ReadServoKeyboardResponse) GetKeys() []string

func (*ReadServoKeyboardResponse) ProtoMessage

func (*ReadServoKeyboardResponse) ProtoMessage()

func (*ReadServoKeyboardResponse) ProtoReflect

func (*ReadServoKeyboardResponse) Reset

func (x *ReadServoKeyboardResponse) Reset()

func (*ReadServoKeyboardResponse) String

func (x *ReadServoKeyboardResponse) String() string

type SerialPortConfig

type SerialPortConfig struct {
	Name        string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Baud        int64              `protobuf:"varint,2,opt,name=baud,proto3" json:"baud,omitempty"`
	ReadTimeout *duration.Duration `protobuf:"bytes,3,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*SerialPortConfig) Descriptor deprecated

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

Deprecated: Use SerialPortConfig.ProtoReflect.Descriptor instead.

func (*SerialPortConfig) GetBaud

func (x *SerialPortConfig) GetBaud() int64

func (*SerialPortConfig) GetName

func (x *SerialPortConfig) GetName() string

func (*SerialPortConfig) GetReadTimeout

func (x *SerialPortConfig) GetReadTimeout() *duration.Duration

func (*SerialPortConfig) ProtoMessage

func (*SerialPortConfig) ProtoMessage()

func (*SerialPortConfig) ProtoReflect

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

func (*SerialPortConfig) Reset

func (x *SerialPortConfig) Reset()

func (*SerialPortConfig) String

func (x *SerialPortConfig) String() string

type SerialPortServiceClient

type SerialPortServiceClient interface {
	// Open opens a port and returns its id.
	Open(ctx context.Context, in *SerialPortConfig, opts ...grpc.CallOption) (*PortId, error)
	// Read reads bytes into provided buffer, returns the bytes read.
	Read(ctx context.Context, in *SerialReadRequest, opts ...grpc.CallOption) (*wrappers.BytesValue, error)
	// Write writes bytes from provided buffer, returns number of bytes written.
	Write(ctx context.Context, in *SerialWriteRequest, opts ...grpc.CallOption) (*wrappers.Int64Value, error)
	// Flush flushes un-read/written content from the port.
	Flush(ctx context.Context, in *PortId, opts ...grpc.CallOption) (*empty.Empty, error)
	// Close closes the port.
	Close(ctx context.Context, in *PortId, opts ...grpc.CallOption) (*empty.Empty, error)
}

SerialPortServiceClient is the client API for SerialPortService service.

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

type SerialPortServiceServer

type SerialPortServiceServer interface {
	// Open opens a port and returns its id.
	Open(context.Context, *SerialPortConfig) (*PortId, error)
	// Read reads bytes into provided buffer, returns the bytes read.
	Read(context.Context, *SerialReadRequest) (*wrappers.BytesValue, error)
	// Write writes bytes from provided buffer, returns number of bytes written.
	Write(context.Context, *SerialWriteRequest) (*wrappers.Int64Value, error)
	// Flush flushes un-read/written content from the port.
	Flush(context.Context, *PortId) (*empty.Empty, error)
	// Close closes the port.
	Close(context.Context, *PortId) (*empty.Empty, error)
}

SerialPortServiceServer is the server API for SerialPortService service.

type SerialReadRequest

type SerialReadRequest struct {
	Id     *PortId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	MaxLen uint32  `protobuf:"varint,2,opt,name=max_len,json=maxLen,proto3" json:"max_len,omitempty"`
	// contains filtered or unexported fields
}

func (*SerialReadRequest) Descriptor deprecated

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

Deprecated: Use SerialReadRequest.ProtoReflect.Descriptor instead.

func (*SerialReadRequest) GetId

func (x *SerialReadRequest) GetId() *PortId

func (*SerialReadRequest) GetMaxLen

func (x *SerialReadRequest) GetMaxLen() uint32

func (*SerialReadRequest) ProtoMessage

func (*SerialReadRequest) ProtoMessage()

func (*SerialReadRequest) ProtoReflect

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

func (*SerialReadRequest) Reset

func (x *SerialReadRequest) Reset()

func (*SerialReadRequest) String

func (x *SerialReadRequest) String() string

type SerialWriteRequest

type SerialWriteRequest struct {
	Id     *PortId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Buffer []byte  `protobuf:"bytes,2,opt,name=buffer,proto3" json:"buffer,omitempty"`
	// contains filtered or unexported fields
}

func (*SerialWriteRequest) Descriptor deprecated

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

Deprecated: Use SerialWriteRequest.ProtoReflect.Descriptor instead.

func (*SerialWriteRequest) GetBuffer

func (x *SerialWriteRequest) GetBuffer() []byte

func (*SerialWriteRequest) GetId

func (x *SerialWriteRequest) GetId() *PortId

func (*SerialWriteRequest) ProtoMessage

func (*SerialWriteRequest) ProtoMessage()

func (*SerialWriteRequest) ProtoReflect

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

func (*SerialWriteRequest) Reset

func (x *SerialWriteRequest) Reset()

func (*SerialWriteRequest) String

func (x *SerialWriteRequest) String() string

type SpeedometerResponse

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

SpeedometerResponse provides the result from running a speedometer test.

func (*SpeedometerResponse) Descriptor deprecated

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

Deprecated: Use SpeedometerResponse.ProtoReflect.Descriptor instead.

func (*SpeedometerResponse) GetResult

func (x *SpeedometerResponse) GetResult() string

func (*SpeedometerResponse) ProtoMessage

func (*SpeedometerResponse) ProtoMessage()

func (*SpeedometerResponse) ProtoReflect

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

func (*SpeedometerResponse) Reset

func (x *SpeedometerResponse) Reset()

func (*SpeedometerResponse) String

func (x *SpeedometerResponse) String() string

type UnimplementedBiosServiceServer

type UnimplementedBiosServiceServer struct {
}

UnimplementedBiosServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBiosServiceServer) BackupImageSection

func (*UnimplementedBiosServiceServer) ClearAndSetGBBFlags

func (*UnimplementedBiosServiceServer) CorruptECSection

func (*UnimplementedBiosServiceServer) EnableAPSoftwareWriteProtect

func (*UnimplementedBiosServiceServer) EnableAPSoftwareWriteProtect(context.Context, *empty.Empty) (*empty.Empty, error)

func (*UnimplementedBiosServiceServer) GetGBBFlags

func (*UnimplementedBiosServiceServer) RestoreImageSection

type UnimplementedFpUpdaterServiceServer

type UnimplementedFpUpdaterServiceServer struct {
}

UnimplementedFpUpdaterServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFpUpdaterServiceServer) ReadUpdaterLogs

type UnimplementedSerialPortServiceServer

type UnimplementedSerialPortServiceServer struct {
}

UnimplementedSerialPortServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSerialPortServiceServer) Close

func (*UnimplementedSerialPortServiceServer) Flush

func (*UnimplementedSerialPortServiceServer) Open

func (*UnimplementedSerialPortServiceServer) Read

func (*UnimplementedSerialPortServiceServer) Write

type UnimplementedUtilsServiceServer

type UnimplementedUtilsServiceServer struct {
}

UnimplementedUtilsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUtilsServiceServer) BlockingSync

func (*UnimplementedUtilsServiceServer) CloseChrome

func (*UnimplementedUtilsServiceServer) EvalTabletMode

func (*UnimplementedUtilsServiceServer) FindPhysicalKeyboard

func (*UnimplementedUtilsServiceServer) FindSingleNode

func (*UnimplementedUtilsServiceServer) GetDetachableBaseValue

func (*UnimplementedUtilsServiceServer) NewChrome

func (*UnimplementedUtilsServiceServer) PerformSpeedometerTest

func (*UnimplementedUtilsServiceServer) ReadServoKeyboard

func (*UnimplementedUtilsServiceServer) ReuseChrome

type UtilsServiceClient

type UtilsServiceClient interface {
	// BlockingSync syncs the root device and internal device.
	BlockingSync(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// ReadServoKeyboard reads from the servo's keyboard emulator and decodes the key presses.
	ReadServoKeyboard(ctx context.Context, in *ReadServoKeyboardRequest, opts ...grpc.CallOption) (*ReadServoKeyboardResponse, error)
	// FindPhysicalKeyboard finds /dev/input/event* file for physical a keyboard.
	FindPhysicalKeyboard(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FindPhysicalKeyboardResponse, error)
	// NewChrome creates a new instance of Chrome
	NewChrome(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// CloseChrome closes an existing instance of Chrome
	CloseChrome(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// ReuseChrome passes an Option to New to make Chrome reuse an exisiting Chrome session.
	ReuseChrome(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// EvalTabletMode evaluates if DUT is in tablet mode.
	EvalTabletMode(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EvalTabletModeResponse, error)
	// FindSingleNode finds the specific UI node based on the passed in element.
	FindSingleNode(ctx context.Context, in *NodeElement, opts ...grpc.CallOption) (*empty.Empty, error)
	// GetDetachableBaseValue retrieves the values of relevant detachable-base properties.
	GetDetachableBaseValue(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*CrosConfigResponse, error)
	// PerformSpeedometerTest opens a speedometer test website, runs it and returns the result value.
	PerformSpeedometerTest(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SpeedometerResponse, error)
}

UtilsServiceClient is the client API for UtilsService service.

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

type UtilsServiceServer

type UtilsServiceServer interface {
	// BlockingSync syncs the root device and internal device.
	BlockingSync(context.Context, *empty.Empty) (*empty.Empty, error)
	// ReadServoKeyboard reads from the servo's keyboard emulator and decodes the key presses.
	ReadServoKeyboard(context.Context, *ReadServoKeyboardRequest) (*ReadServoKeyboardResponse, error)
	// FindPhysicalKeyboard finds /dev/input/event* file for physical a keyboard.
	FindPhysicalKeyboard(context.Context, *empty.Empty) (*FindPhysicalKeyboardResponse, error)
	// NewChrome creates a new instance of Chrome
	NewChrome(context.Context, *empty.Empty) (*empty.Empty, error)
	// CloseChrome closes an existing instance of Chrome
	CloseChrome(context.Context, *empty.Empty) (*empty.Empty, error)
	// ReuseChrome passes an Option to New to make Chrome reuse an exisiting Chrome session.
	ReuseChrome(context.Context, *empty.Empty) (*empty.Empty, error)
	// EvalTabletMode evaluates if DUT is in tablet mode.
	EvalTabletMode(context.Context, *empty.Empty) (*EvalTabletModeResponse, error)
	// FindSingleNode finds the specific UI node based on the passed in element.
	FindSingleNode(context.Context, *NodeElement) (*empty.Empty, error)
	// GetDetachableBaseValue retrieves the values of relevant detachable-base properties.
	GetDetachableBaseValue(context.Context, *empty.Empty) (*CrosConfigResponse, error)
	// PerformSpeedometerTest opens a speedometer test website, runs it and returns the result value.
	PerformSpeedometerTest(context.Context, *empty.Empty) (*SpeedometerResponse, error)
}

UtilsServiceServer is the server API for UtilsService service.

Jump to

Keyboard shortcuts

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