Documentation
¶
Index ¶
- Constants
- Variables
- func AfterRunPTPCommandE810(data *interface{}, nodeProfile *ptpv1.PtpProfile, command string) error
- func E810(name string) (*plugin.Plugin, *interface{})
- func GetHardwareFingerprint(device string) string
- func OnPTPConfigChangeE810(data *interface{}, nodeProfile *ptpv1.PtpProfile) error
- func PopulateHwConfigE810(data *interface{}, hwconfigs *[]ptpv1.HwConfig) error
- type E810Opts
- type E810PluginData
- type E810UblxCmds
- type InputDelay
- type InputPhaseDelays
- type InternalDelays
- type InternalLink
- type Vpd
Constants ¶
View Source
const ( PCI_VPD_ID_STRING_TAG = 0x82 PCI_VPD_RO_TAG = 0x90 PCI_VPD_RW_TAG = 0x91 PCI_VPD_END_TAG = 0x78 PCI_VPD_BLOCK_DESCRIPTOR_LEN = 3 PCI_VPD_KEYWORD_LEN = 2 )
Variables ¶
View Source
var EnableE810PTPConfig = `` /* 504-byte string literal not displayed */
Sourced from https://github.com/RHsyseng/oot-ice/blob/main/ptp-config.sh
Functions ¶
func AfterRunPTPCommandE810 ¶
func AfterRunPTPCommandE810(data *interface{}, nodeProfile *ptpv1.PtpProfile, command string) error
func GetHardwareFingerprint ¶
GetHardwareFingerprint returns the card identity for the purpose of matching to the correct internal delay profile Currently the fingerprint is extracted from the "Vendor Information V1" in the hardware Vital Product Data (VPD). With more cards with different delay profiles are avaliable, this function might need to change depending on how manufacturers expose data relevant for delay profiles in the VPD file
func OnPTPConfigChangeE810 ¶
func OnPTPConfigChangeE810(data *interface{}, nodeProfile *ptpv1.PtpProfile) error
func PopulateHwConfigE810 ¶
Types ¶
type E810Opts ¶
type E810Opts struct { EnableDefaultConfig bool `json:"enableDefaultConfig"` UblxCmds []E810UblxCmds `json:"ublxCmds"` DevicePins map[string]map[string]string `json:"pins"` DpllSettings map[string]uint64 `json:"settings"` PhaseOffsetPins map[string]map[string]string `json:"phaseOffsetPins"` InputDelays []InputPhaseDelays `json:"interconnections"` }
type E810PluginData ¶
type E810PluginData struct {
// contains filtered or unexported fields
}
type E810UblxCmds ¶
type InputDelay ¶
type InputPhaseDelays ¶
type InputPhaseDelays struct { Id string `json:"id"` Part string `json:"Part"` Input *InputDelay `json:"inputPhaseDelay"` GnssInput bool `json:"gnssInput"` PhaseOutputConnectors []string `json:"phaseOutputConnectors"` }
type InternalDelays ¶
type InternalDelays struct { PartType string `yaml:"partType"` ExternalInputs []InternalLink `yaml:"externalInputs"` ExternalOutputs []InternalLink `yaml:"externalOutputs"` GnssInput InternalLink `yaml:"gnssInput"` }
func InitInternalDelays ¶
func InitInternalDelays(part string) (*InternalDelays, error)
type InternalLink ¶
Click to show internal directories.
Click to hide internal directories.