On Saturday, April 02, 2016 11:49:53 AM Oliver Pinter wrote: > > + if (cap & PCIEM_SLOT_CAP_HPS) > > + printf(" surprise"); > > > What is this surprise string or state? Or is this a forgotten debug string?
It's an actual thing in the spec. "Surprise" insertion/removal means that devices can be hotplugged without requiring notification to the OS ahead of time. The expresscard slots in my x220 actually report this: pcib3@pci0:0:28:3: class=0x060400 card=0x21da17aa chip=0x1c168086 rev=0xb4 hdr=0x01 cap 10[40] = PCI-Express 2 root port max data 128(128) link x0(x1) speed 0.0(5.0) ASPM L0s/L1(L0s/L1) slot 3 power limit 100 mW HotPlug(empty) surprise cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x21da17aa cap 01[a0] = powerspec 2 supports D0 D3 current D0 and after inserting a card: pcib3@pci0:0:28:3: class=0x060400 card=0x21da17aa chip=0x1c168086 rev=0xb4 hdr=0x01 cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) speed 2.5(5.0) ASPM disabled(L0s/L1) slot 3 power limit 100 mW HotPlug(present) surprise cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x21da17aa cap 01[a0] = powerspec 2 supports D0 D3 current D0 -- John Baldwin _______________________________________________ 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"