Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2012 18:27:45 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240146 - head/usr.sbin/pciconf
Message-ID:  <201209051827.q85IRjhk081764@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gavin
Date: Wed Sep  5 18:27:45 2012
New Revision: 240146
URL: http://svn.freebsd.org/changeset/base/240146

Log:
  - If the PCIe "SLOT" flag is set, include this in the capability output
  - Fix printing of PCIe interrupt number, the shift was incorrect.
  
  MFC after:	1 week

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

Modified: head/usr.sbin/pciconf/cap.c
==============================================================================
--- head/usr.sbin/pciconf/cap.c	Wed Sep  5 18:19:54 2012	(r240145)
+++ head/usr.sbin/pciconf/cap.c	Wed Sep  5 18:27:45 2012	(r240146)
@@ -403,8 +403,10 @@ cap_express(int fd, struct pci_conf *p, 
 		printf("type %d", (flags & PCIM_EXP_FLAGS_TYPE) >> 4);
 		break;
 	}
+	if (flags & PCIM_EXP_FLAGS_SLOT)
+		printf(" slot");
 	if (flags & PCIM_EXP_FLAGS_IRQ)
-		printf(" IRQ %d", (flags & PCIM_EXP_FLAGS_IRQ) >> 8);
+		printf(" IRQ %d", (flags & PCIM_EXP_FLAGS_IRQ) >> 9);
 	val = read_config(fd, &p->pc_sel, ptr + PCIR_EXPRESS_DEVICE_CAP, 4);
 	flags = read_config(fd, &p->pc_sel, ptr + PCIR_EXPRESS_DEVICE_CTL, 2);
 	printf(" max data %d(%d)",



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