summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-03 22:49:06 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-03 22:49:06 +0000
commit0d72833ec44ebcf7017021b314c1884585e50d06 (patch)
treef5cccbc7a46a5723456b98b747439c88ec5d61eb /sys
parent3fdfdecd16c585b62a1cd8bd4b84284fd0e7e8e1 (diff)
Add the I2O device
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/conf.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index a78d7d8cc94..4492e159bd5 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.75 2001/06/27 05:50:04 kjc Exp $ */
+/* $OpenBSD: conf.c,v 1.76 2001/07/03 22:49:05 niklas Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -117,6 +117,13 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
+/* open, close, ioctl -- XXX should be a generic device */
+#define cdev_oci_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
+ (dev_type_stop((*))) enodev, 0, seltrue, \
+ (dev_type_mmap((*))) enodev, 0 }
+
/* open, close, ioctl, select -- XXX should be a generic device */
#define cdev_ocis_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
@@ -212,6 +219,8 @@ cdev_decl(urio);
cdev_decl(ucom);
#include "cz.h"
cdev_decl(cztty);
+#include "iop.h"
+cdev_decl(iop);
/* XXX -- this needs to be supported by config(8)! */
#if (NCOM > 0) && (NPCCOM > 0)
@@ -339,6 +348,7 @@ struct cdevsw cdevsw[] =
#endif
cdev_pf_init(NPF,pf), /* 73: packet filter */
cdev_altq_init(NALTQ,altq), /* 74: ALTQ control interface */
+ cdev_oci_init(NIOP,iop), /* 75: I2O controller */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);