svn commit: r197077 - head/sys/dev/pci
Andriy Gapon
avg at FreeBSD.org
Thu Sep 10 19:27:53 UTC 2009
Author: avg
Date: Thu Sep 10 19:27:53 2009
New Revision: 197077
URL: http://svn.freebsd.org/changeset/base/197077
Log:
pci: remove definitions of duplicate constants
Suggested by: jhb
Reviewed by: jhb
MFC after: 1 week
Modified:
head/sys/dev/pci/pcireg.h
head/sys/dev/pci/pcivar.h
Modified: head/sys/dev/pci/pcireg.h
==============================================================================
--- head/sys/dev/pci/pcireg.h Thu Sep 10 19:24:46 2009 (r197076)
+++ head/sys/dev/pci/pcireg.h Thu Sep 10 19:27:53 2009 (r197077)
@@ -39,11 +39,11 @@
*/
/* some PCI bus constants */
-
-#define PCI_BUSMAX 255
-#define PCI_SLOTMAX 31
-#define PCI_FUNCMAX 7
-#define PCI_REGMAX 255
+#define PCI_DOMAINMAX 65535 /* highest supported domain number */
+#define PCI_BUSMAX 255 /* highest supported bus number */
+#define PCI_SLOTMAX 31 /* highest supported slot number */
+#define PCI_FUNCMAX 7 /* highest supported function number */
+#define PCI_REGMAX 255 /* highest supported config register addr. */
#define PCI_MAXHDRTYPE 2
/* PCI config header registers for all devices */
Modified: head/sys/dev/pci/pcivar.h
==============================================================================
--- head/sys/dev/pci/pcivar.h Thu Sep 10 19:24:46 2009 (r197076)
+++ head/sys/dev/pci/pcivar.h Thu Sep 10 19:27:53 2009 (r197077)
@@ -33,13 +33,6 @@
#include <sys/queue.h>
/* some PCI bus constants */
-
-#define PCI_DOMAINMAX 65535 /* highest supported domain number */
-#define PCI_BUSMAX 255 /* highest supported bus number */
-#define PCI_SLOTMAX 31 /* highest supported slot number */
-#define PCI_FUNCMAX 7 /* highest supported function number */
-#define PCI_REGMAX 255 /* highest supported config register addr. */
-
#define PCI_MAXMAPS_0 6 /* max. no. of memory/port maps */
#define PCI_MAXMAPS_1 2 /* max. no. of maps for PCI to PCI bridge */
#define PCI_MAXMAPS_2 1 /* max. no. of maps for CardBus bridge */
More information about the svn-src-all
mailing list