Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2014 20:28:31 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 1189941 for review
Message-ID:  <201401102028.s0AKSVp7077868@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1189941?ac=10

Change 1189941 by jhb@jhb_jhbbsd on 2014/01/10 20:27:37

	Output slot numbers.

Affected files ...

.. //depot/projects/pci/usr.sbin/pciconf/cap.c#2 edit

Differences ...

==== //depot/projects/pci/usr.sbin/pciconf/cap.c#2 (text+ko) ====

@@ -447,8 +447,10 @@
 		printf("type %d", (flags & PCIEM_FLAGS_TYPE) >> 4);
 		break;
 	}
-	if (flags & PCIEM_FLAGS_SLOT)
-		printf(" slot");
+	if (flags & PCIEM_FLAGS_SLOT) {
+		cap = read_config(fd, &p->pc_sel, ptr + PCIER_SLOT_CAP, 4);
+		printf(" slot %d", (cap & PCIEM_SLOT_CAP_PSN) >> 19);
+	}
 	if (flags & PCIEM_FLAGS_IRQ)
 		printf(" IRQ %d", (flags & PCIEM_FLAGS_IRQ) >> 9);
 	cap = read_config(fd, &p->pc_sel, ptr + PCIER_DEVICE_CAP, 4);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401102028.s0AKSVp7077868>