Author: jhb
Date: Thu Nov  5 20:24:56 2015
New Revision: 290412
URL: https://svnweb.freebsd.org/changeset/base/290412

Log:
  Note if relaxed ordering or no snoop is enabled for each PCI-express device.
  
  MFC after:    1 week

Modified:
  head/usr.sbin/pciconf/cap.c

Modified: head/usr.sbin/pciconf/cap.c
==============================================================================
--- head/usr.sbin/pciconf/cap.c Thu Nov  5 20:21:43 2015        (r290411)
+++ head/usr.sbin/pciconf/cap.c Thu Nov  5 20:24:56 2015        (r290412)
@@ -460,6 +460,10 @@ cap_express(int fd, struct pci_conf *p, 
            MAX_PAYLOAD(cap & PCIEM_CAP_MAX_PAYLOAD));
        if ((cap & PCIEM_CAP_FLR) != 0)
                printf(" FLR");
+       if (ctl & PCIEM_CTL_RELAXED_ORD_ENABLE)
+               printf(" RO");
+       if (ctl & PCIEM_CTL_NOSNOOP_ENABLE)
+               printf(" NS");
        cap = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CAP, 4);
        sta = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_STA, 2);
        printf(" link x%d(x%d)", (sta & PCIEM_LINK_STA_WIDTH) >> 4,
_______________________________________________
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"

Reply via email to