Collection of device management related functions
Methods
(static) disablePcieLink()
Disables PCIe link from the downstream port.
(static) enablePcieLink()
Enables PCIe link from the downstream port.
(static) getHardwareInfo() → {deviceManager.HardwareInfo}
Returns peripherals supported by the current tester
Returns:
(static) getPortInfo() → {deviceManager.PortInfo}
Returns current port information
Returns:
(static) getSupportedPeripherals() → {deviceManager.PeripheralsInfo}
Returns peripherals supported by the current tester
Returns:
(static) loadNvmeDriver(forceUnloadopt)
Load NVMe Driver
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
forceUnload |
Boolean |
<optional> |
false
|
Unloads NVMe driver if already loaded |
(static) loadUioDriver(forceUnloadopt, optionsopt)
Load UIO driver
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
forceUnload |
Boolean |
<optional> |
false
|
Unloads UIO driver if already loaded |
|||||||||||||||
options |
Object |
<optional> |
Properties
|
Type Definitions
HardwareInfo
Properties:
Name | Type | Description |
---|---|---|
platform |
String | Hardware platform name |
Type:
- Object
PeripheralsInfo
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
powerController |
Object | null |
Properties
|
|||||||||
serialPort |
Object | null |
Type:
- Object
PortInfo
Properties:
Name | Type | Description |
---|---|---|
parentBdf |
String | PCI BDF of the port |
deviceBdf |
String | PCI BDF of the device attached to the port |
node |
String | Numa node |
primaryCore |
String | CPU ID assgined to the primary thread |
secondaryCore |
String | CPU ID assigned to the secondary thread |
driver |
String | Device driver loaded to this port |
vendor |
String | PCI vendor name of the device attached to the port |
product |
String | PCI device name of the device attached to the port |
status |
String | PCI device status |
Type:
- Object