Switchtec Userspace
PROJECT_NUMBER = PROJECT_NUMBER=PROJECT_NUMBER = 2.2
|
Port status structure. More...
#include <switchtec.h>
Public Attributes | |
struct switchtec_port_id | port |
Port ID. | |
unsigned char | cfg_lnk_width |
Configured link width. | |
unsigned char | neg_lnk_width |
Negotiated link width. | |
unsigned char | link_up |
1 if the link is up | |
unsigned char | link_rate |
Link rate/gen. | |
uint16_t | ltssm |
Link state. | |
const char * | ltssm_str |
Link state as a string. | |
unsigned char | lane_reversal |
Lane reversal. | |
const char * | lane_reversal_str |
Lane reversal as a string. | |
unsigned char | first_act_lane |
First active lane. | |
char * | pci_bdf |
PCI BDF of the port. | |
char * | pci_bdf_path |
PCI BDF path of the port. | |
char * | pci_dev |
PCI BDF of the device on the port. | |
int | vendor_id |
Vendor ID. | |
int | device_id |
Device ID. | |
char * | class_devices |
Comma seperated list of classes. | |
unsigned int | acs_ctrl |
ACS Setting of the Port. | |
Port status structure.
pci_dev
, vendor_id
, device_id
and class_devices
are populated by switchtec_get_devices(). These are only available in Linux.
Definition at line 153 of file switchtec.h.