platform

package
v0.0.0-...-dd127ae Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MrvlVendorID     string = "177d"
	MrvlDPUdeviceID  string = "a0f7"
	MrvlHostDeviceID string = "b900"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IntelDetector

type IntelDetector struct {
	Name string
}

func NewIntelDetector

func NewIntelDetector() *IntelDetector

func (*IntelDetector) GetVendorName

func (d *IntelDetector) GetVendorName() string

func (*IntelDetector) IsDPU

func (d *IntelDetector) IsDPU(pci ghw.PCIDevice) (bool, error)

func (*IntelDetector) IsDpuPlatform

func (pi *IntelDetector) IsDpuPlatform() (bool, error)

func (*IntelDetector) VspPlugin

func (pi *IntelDetector) VspPlugin(dpuMode bool, vspImages map[string]string, client client.Client) (*plugin.GrpcPlugin, error)

type MarvellDetector

type MarvellDetector struct {
	Name string
}

func NewMarvellDetector

func NewMarvellDetector() *MarvellDetector

func (*MarvellDetector) GetVendorName

func (d *MarvellDetector) GetVendorName() string

GetVendorName returns the name of the vendor

func (*MarvellDetector) IsDPU

func (pi *MarvellDetector) IsDPU(pci ghw.PCIDevice) (bool, error)

IsDPU checks if the PCI device Attached to the host is a Marvell DPU It returns true if device has Marvell DPU

func (*MarvellDetector) IsDpuPlatform

func (pi *MarvellDetector) IsDpuPlatform() (bool, error)

IsDpuPlatform checks if the platform is a Marvell DPU

func (*MarvellDetector) VspPlugin

func (pi *MarvellDetector) VspPlugin(dpuMode bool, vspImages map[string]string, client client.Client) (*plugin.GrpcPlugin, error)

type PlatformInfo

type PlatformInfo struct {
	Detectors []VendorDetector
}

func NewPlatformInfo

func NewPlatformInfo() *PlatformInfo

func (*PlatformInfo) GetPcieDevFilter

func (pi *PlatformInfo) GetPcieDevFilter() (string, string, string, error)

func (*PlatformInfo) Getvendorname

func (pi *PlatformInfo) Getvendorname() (string, error)

func (*PlatformInfo) IsDpu

func (pi *PlatformInfo) IsDpu() (bool, error)

func (*PlatformInfo) NewVspPlugin

func (pi *PlatformInfo) NewVspPlugin(dpuMode bool, vspImages map[string]string, client client.Client) (*plugin.GrpcPlugin, error)

type PlatformInfoProvider

type PlatformInfoProvider interface {
}

type VendorDetector

type VendorDetector interface {
	IsDpuPlatform() (bool, error)
	VspPlugin(dpuMode bool, vspImages map[string]string, client client.Client) (*plugin.GrpcPlugin, error)
	IsDPU(pci ghw.PCIDevice) (bool, error)
	GetVendorName() string
}

Jump to

Keyboard shortcuts

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