slot

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypePC_98C20 = 160 + iota
	TypePC_98C24
	TypePC_98E
	TypePC_98LocalBus
	TypePC_98Card
	TypePCIExpress
	TypePCIExpressx1
	TypePCIExpressx2
	TypePCIExpressx4
	TypePCIExpressx8
	TypePCIExpressx16
	TypePCIExpressGen2
	TypePCIExpressGen2x1
	TypePCIExpressGen2x2
	TypePCIExpressGen2x4
	TypePCIExpressGen2x8
	TypePCIExpressGen2x16
	TypePCIExpressGen3
	TypePCIExpressGen3x1
	TypePCIExpressGen3x2
	TypePCIExpressGen3x4
	TypePCIExpressGen3x8
	TypePCIExpressGen3x16
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Characteristics1

type Characteristics1 byte
const (
	Characteristicsunknown Characteristics1 = 1 << iota
	CharacteristicsProvides5_0volts
	CharacteristicsProvides3_3volts
	CharacteristicsSlotsopeningissharedwithanotherslot
	CharacteristicsPCCardslotsupportsPCCard_16
	CharacteristicsPCCardslotsupportsCardBus
	CharacteristicsPCCardslotsupportsZoomVideo
	CharacteristicsPCCardslotsupportsModemRingResume
)

func (Characteristics1) String

func (s Characteristics1) String() string

type Characteristics2

type Characteristics2 byte
const (
	Characteristics2PCIslotsupportsPowerManagementEventsignal Characteristics2 = 1 << iota
	Characteristics2Slotsupportshot_plugdevices
	Characteristics2PCIslotsupportsSMBussignal
	Characteristics2Reserved
)

func (Characteristics2) String

func (s Characteristics2) String() string

type DataBusWidth

type DataBusWidth byte
const (
	DataBusWidthOther DataBusWidth = 1 + iota
	DataBusWidthUnknown
	DataBusWidth8bit
	DataBusWidth16bit
	DataBusWidth32bit
	DataBusWidth64bit
	DataBusWidth128bit
	DataBusWidth1xorx1
	DataBusWidth2xorx2
	DataBusWidth4xorx4
	DataBusWidth8xorx8
	DataBusWidth12xorx12
	DataBusWidth16xorx16
	DataBusWidth32xorx32
)

func (DataBusWidth) String

func (s DataBusWidth) String() string

type ID

type ID uint16

type Length

type Length byte
const (
	LengthOther Length = 1 + iota
	LengthUnknown
	LengthShortLength
	LengthLongLength
)

func (Length) String

func (s Length) String() string

type Number

type Number byte

type SegmengGroupNumber

type SegmengGroupNumber uint16

type SystemSlot

type SystemSlot struct {
	smbios.Header
	Designation          string             `json:"designation,omitempty"`
	Type                 Type               `json:"type,omitempty"`
	DataBusWidth         DataBusWidth       `json:"data_bus_width,omitempty"`
	CurrentUsage         Usage              `json:"current_usage,omitempty"`
	Length               Length             `json:"length,omitempty"`
	ID                   ID                 `json:"id,omitempty"`
	Characteristics1     Characteristics1   `json:"characteristics_1,omitempty"`
	Characteristics2     Characteristics2   `json:"characteristics_2,omitempty"`
	SegmentGroupNumber   SegmengGroupNumber `json:"segment_group_number,omitempty"`
	BusNumber            Number             `json:"bus_number,omitempty"`
	DeviceFunctionNumber Number             `json:"device_function_number,omitempty"`
}

SystemSlot todo

func Parse

func Parse(s *smbios.Structure) (info *SystemSlot, err error)

Parse 解析slot信息

func (SystemSlot) String

func (s SystemSlot) String() string

type Type

type Type byte
const (
	TypeOther Type = 1 + iota
	TypeUnknown
	TypeISA
	TypeMCA
	TypeEISA
	TypePCI
	TypePCCardPCMCIA
	TypeVL_VESA
	TypeProprietary
	TypeProcessorCardSlot
	TypeProprietaryMemoryCardSlot
	TypeIORiserCardSlot
	TypeNuBus
	TypePCI_66MHzCapable
	TypeAGP
	TypeAGP2X
	TypeAGP4X
	TypePCI_X
	TypeAGP8X
	TYPEM2Socket1DP
	TYPEM2Socket1SP
	TYPEM2Socket2
	TYPEM2Socket3
	TYPEMXMTypeI
	TYPEMXMTypeII
	TYPEMXMTypeIIISTD
	TYPEMXMTypeIIIHE
	TYPEMXMTypeIV
	TYPEMXM30TypeA
	TYPEMXM30TypeB
	TYPEPCIExpressGen2SFF8639
	TYPEPCIExpressGen3SFF8639
)

func (Type) String

func (s Type) String() string

type Usage

type Usage byte
const (
	UsageOther Usage = 1 + iota
	UsageUnknown
	UsageAvailable
	UsageInuse
)

func (Usage) String

func (s Usage) String() string

Jump to

Keyboard shortcuts

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