summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-09-10 19:27:53 +0000
committeravg <avg@FreeBSD.org>2009-09-10 19:27:53 +0000
commita697c0b9e42c4491607e9626f6fcb4e5e0ade6f9 (patch)
treecca83dcbd0e101b82bb79a4d965503dd370548fc /sys/dev/pci
parentedbb0d714bacdc3c48d8a938ae276ccb4ae4dfcc (diff)
downloadFreeBSD-src-a697c0b9e42c4491607e9626f6fcb4e5e0ade6f9.zip
FreeBSD-src-a697c0b9e42c4491607e9626f6fcb4e5e0ade6f9.tar.gz
pci: remove definitions of duplicate constants
Suggested by: jhb Reviewed by: jhb MFC after: 1 week
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pcireg.h10
-rw-r--r--sys/dev/pci/pcivar.h7
2 files changed, 5 insertions, 12 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index c352147..c7a7245 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -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 */
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 36ae213..d7de96e 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -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 */
OpenPOWER on IntegriCloud