Report Clock Power Management support and status.
Since we already report ASPM, why not to go further. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
39cae0d5ed
commit
5469a751a2
@ -515,6 +515,11 @@ cap_express(int fd, struct pci_conf *p, uint8_t ptr)
|
||||
printf(" ASPM %s(%s)", aspm_string(ctl & PCIEM_LINK_CTL_ASPMC),
|
||||
aspm_string((cap & PCIEM_LINK_CAP_ASPM) >> 10));
|
||||
}
|
||||
if ((cap & PCIEM_LINK_CAP_CLOCK_PM) != 0) {
|
||||
ctl = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CTL, 2);
|
||||
printf(" ClockPM %s", (ctl & PCIEM_LINK_CTL_ECPM) ?
|
||||
"enabled" : "disabled");
|
||||
}
|
||||
if (!(flags & PCIEM_FLAGS_SLOT))
|
||||
return;
|
||||
cap = read_config(fd, &p->pc_sel, ptr + PCIER_SLOT_CAP, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user