On 04/02/2016 04:49, Oliver Pinter wrote: > > + printf(" slot %d", (cap & PCIEM_SLOT_CAP_PSN) >> 19); > + printf(" power limit %d mW", slot_power(cap)); > + if (cap & PCIEM_SLOT_CAP_HPC) > + printf(" HotPlug(%s)", sta & PCIEM_SLOT_STA_PDS ? > "present" : > + "empty"); > + if (cap & PCIEM_SLOT_CAP_HPS) > + printf(" surprise"); > > > What is this surprise string or state? Or is this a forgotten debug > string?
From the "PCI EXPRESS BASE SPECIFICATION, REV. 3.1a": """ 6.7.2.9. Port Capabilities and Slot Information Registers Hot-Plug Surprise (Slot Capabilities) – When Set, this bit indicates that adapter removal from the system without any prior notification is permitted for the associated form factor. """ However, John committed this on April 1, so it /could/ be an easter egg, intended for Hans Petter Selasky. ;-) > + if (cap & PCIEM_SLOT_CAP_APB) > + printf(" Attn Button"); > + if (cap & PCIEM_SLOT_CAP_PCP) > + printf(" PC(%s)", ctl & PCIEM_SLOT_CTL_PCC ? "on" > : "off"); > + if (cap & PCIEM_SLOT_CAP_MRLSP) > + printf(" MRL(%s)", sta & PCIEM_SLOT_STA_MRLSS ? > "open" : > + "closed"); > } > _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"