summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-07-28 17:35:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-07-28 17:35:56 +0000
commit3f83f8acf579b060f0933b30adeea0f1b267febd (patch)
treec53421d1b7943a1a0ef01804eba53b84a8a22b05 /sys/arch/arm
parentef40cd5248820626eb78edd138cfb326258c0c72 (diff)
Make option USER_PCICONF work.
ok drahn@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/arm/conf.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/sys/arch/arm/arm/conf.c b/sys/arch/arm/arm/conf.c
index 0c18afd3fde..4bed188dc0d 100644
--- a/sys/arch/arm/arm/conf.c
+++ b/sys/arch/arm/arm/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.12 2006/05/29 17:01:42 drahn Exp $ */
+/* $OpenBSD: conf.c,v 1.13 2006/07/28 17:35:55 kettenis Exp $ */
/* $NetBSD: conf.c,v 1.10 2002/04/19 01:04:38 wiz Exp $ */
/*
@@ -99,16 +99,11 @@
bdev_decl(wd);
bdev_decl(sw);
-#ifdef CONF_HAVE_PCI
-#include "iop.h"
+#ifdef USER_PCICONF
#include "pci.h"
-#else
-#define NIOP 0
-#define NMLX 0
-#define NMLY 0
-#define NPCI 0
+cdev_decl(pci);
#endif
-#define NAGP 0
+
/*
* SCSI/ATAPI devices
*/
@@ -383,7 +378,11 @@ struct cdevsw cdevsw[] = {
cdev_notdef(), /* 85: removed device */
cdev_notdef(), /* 86: removed device */
cdev_notdef(), /* 87: removed device */
- cdev_notdef(), /* 88: removed device */
+#ifdef USER_PCICONF
+ cdev_pci_init(NPCI,pci), /* 88: PCI user */
+#else
+ cdev_notdef(),
+#endif
cdev_notdef(), /* 89: removed device */
cdev_notdef(), /* 90: removed device */
cdev_notdef(), /* 91: removed device */