Documentation ¶
Overview ¶
Package firmware implements the libraries and utilities which are used for both local and remote bundles with the same name 'firmware'. Reviews for this package can be sent to tast-fw-library-reviewers@ (before tast-owners@ review).
Index ¶
- func AllGBBFlags() []pb.GBBFlag
- func ClearAndSetGBBFlags(ctx context.Context, dut *dut.DUT, state *pb.GBBFlagsState) error
- func CopyGBBFlags(s *pb.GBBFlagsState) *pb.GBBFlagsState
- func FAFTGBBFlags() []pb.GBBFlag
- func GBBAddFlag(s *pb.GBBFlagsState, flags ...pb.GBBFlag)
- func GBBFlagsChanged(a, b *pb.GBBFlagsState, flags []pb.GBBFlag) bool
- func GBBFlagsContains(s *pb.GBBFlagsState, flag pb.GBBFlag) bool
- func GBBFlagsStatesEqual(a, b *pb.GBBFlagsState) bool
- func GBBToggle(flags []pb.GBBFlag, flag pb.GBBFlag) []pb.GBBFlag
- func GetGBBFlags(ctx context.Context, dut *dut.DUT) (*pb.GBBFlagsState, error)
- func RebootRequiredGBBFlags() []pb.GBBFlag
- func SetGBBFlags(ctx context.Context, dut *dut.DUT, flags []pb.GBBFlag) error
- type BootMode
- type RWSection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllGBBFlags ¶
AllGBBFlags returns all the GBB Flags in order by their int values.
func ClearAndSetGBBFlags ¶
ClearAndSetGBBFlags clears and sets specified GBB flags, leaving the rest unchanged.
func CopyGBBFlags ¶
func CopyGBBFlags(s *pb.GBBFlagsState) *pb.GBBFlagsState
CopyGBBFlags returns a new GBBFlagsState that is a copy of `s`.
func FAFTGBBFlags ¶
FAFTGBBFlags returns the flags that faft sets in firmware_test.py before starting a test.
func GBBAddFlag ¶
func GBBAddFlag(s *pb.GBBFlagsState, flags ...pb.GBBFlag)
GBBAddFlag modifies `s` to add all flags in `flags`.
func GBBFlagsChanged ¶
func GBBFlagsChanged(a, b *pb.GBBFlagsState, flags []pb.GBBFlag) bool
GBBFlagsChanged determines if any of the flags definitely have changed between a and b.
func GBBFlagsContains ¶
func GBBFlagsContains(s *pb.GBBFlagsState, flag pb.GBBFlag) bool
GBBFlagsContains returns true if `s` contains the requested GBB flag `flag`.
func GBBFlagsStatesEqual ¶
func GBBFlagsStatesEqual(a, b *pb.GBBFlagsState) bool
GBBFlagsStatesEqual determines if 2 GBBFlagsState are the same.
func GBBToggle ¶
GBBToggle adds `flag` to `flags` if it is missing, or removes it if it is present. Returns a new list, and does not modify the `flags` slice.
func GetGBBFlags ¶
GetGBBFlags gets the flags that are cleared and set.
func RebootRequiredGBBFlags ¶
RebootRequiredGBBFlags returns flags that require a DUT reboot after they are changed.
Types ¶
type BootMode ¶
type BootMode string
BootMode is a string representing the DUT's firmware boot-mode. It is intended to be used with the constants defined below.
Directories ¶
Path | Synopsis |
---|---|
Package bios contains functions to support bios manipulation.
|
Package bios contains functions to support bios manipulation. |
Package serial allows communication with serial ports.
|
Package serial allows communication with serial ports. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Package ti50 implements shared libraries for ti50 testing.
|
Package ti50 implements shared libraries for ti50 testing. |