Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/pciconf/cap.c
Show First 20 Lines • Show All 523 Lines • ▼ Show 20 Lines | cap_express(int fd, struct pci_conf *p, uint8_t ptr) | ||||
if (cap & PCIEM_SLOT_CAP_HPC) | if (cap & PCIEM_SLOT_CAP_HPC) | ||||
printf(" HotPlug(%s)", sta & PCIEM_SLOT_STA_PDS ? "present" : | printf(" HotPlug(%s)", sta & PCIEM_SLOT_STA_PDS ? "present" : | ||||
"empty"); | "empty"); | ||||
if (cap & PCIEM_SLOT_CAP_HPS) | if (cap & PCIEM_SLOT_CAP_HPS) | ||||
printf(" surprise"); | printf(" surprise"); | ||||
if (cap & PCIEM_SLOT_CAP_APB) | if (cap & PCIEM_SLOT_CAP_APB) | ||||
printf(" Attn Button"); | printf(" Attn Button"); | ||||
if (cap & PCIEM_SLOT_CAP_PCP) | if (cap & PCIEM_SLOT_CAP_PCP) | ||||
printf(" PC(%s)", ctl & PCIEM_SLOT_CTL_PCC ? "on" : "off"); | printf(" PC(%s)", ctl & PCIEM_SLOT_CTL_PCC ? "off" : "on"); | ||||
if (cap & PCIEM_SLOT_CAP_MRLSP) | if (cap & PCIEM_SLOT_CAP_MRLSP) | ||||
printf(" MRL(%s)", sta & PCIEM_SLOT_STA_MRLSS ? "open" : | printf(" MRL(%s)", sta & PCIEM_SLOT_STA_MRLSS ? "open" : | ||||
"closed"); | "closed"); | ||||
if (cap & PCIEM_SLOT_CAP_EIP) | |||||
printf(" EI(%s)", sta & PCIEM_SLOT_STA_EIS ? "engaged" : | |||||
"disengaged"); | |||||
} | } | ||||
static void | static void | ||||
cap_msix(int fd, struct pci_conf *p, uint8_t ptr) | cap_msix(int fd, struct pci_conf *p, uint8_t ptr) | ||||
{ | { | ||||
uint32_t pba_offset, table_offset, val; | uint32_t pba_offset, table_offset, val; | ||||
int msgnum, pba_bar, table_bar; | int msgnum, pba_bar, table_bar; | ||||
uint16_t ctrl; | uint16_t ctrl; | ||||
▲ Show 20 Lines • Show All 530 Lines • Show Last 20 Lines |