mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Add SATA and PCI Advanced Features capabilities reporting.
This commit is contained in:
parent
b8adaa5549
commit
8e6f99f648
1 changed files with 24 additions and 0 deletions
|
|
@ -414,6 +414,24 @@ cap_msix(int fd, struct pci_conf *p, uint8_t ptr)
|
|||
printf(" enabled");
|
||||
}
|
||||
|
||||
static void
|
||||
cap_sata(int fd, struct pci_conf *p, uint8_t ptr)
|
||||
{
|
||||
|
||||
printf("SATA Index-Data Pair");
|
||||
}
|
||||
|
||||
static void
|
||||
cap_pciaf(int fd, struct pci_conf *p, uint8_t ptr)
|
||||
{
|
||||
uint8_t cap;
|
||||
|
||||
cap = read_config(fd, &p->pc_sel, ptr + PCIR_PCIAF_CAP, 1);
|
||||
printf("PCI Advanced Features: %s%s",
|
||||
(cap & PCIM_PCIAFCAP_FLR)?"FLR ":"",
|
||||
(cap & PCIM_PCIAFCAP_TP)?"TP ":"");
|
||||
}
|
||||
|
||||
void
|
||||
list_caps(int fd, struct pci_conf *p)
|
||||
{
|
||||
|
|
@ -476,6 +494,12 @@ list_caps(int fd, struct pci_conf *p)
|
|||
case PCIY_MSIX:
|
||||
cap_msix(fd, p, ptr);
|
||||
break;
|
||||
case PCIY_SATA:
|
||||
cap_sata(fd, p, ptr);
|
||||
break;
|
||||
case PCIY_PCIAF:
|
||||
cap_pciaf(fd, p, ptr);
|
||||
break;
|
||||
default:
|
||||
printf("unknown");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue