summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-02-06 22:39:14 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-02-06 22:39:14 +0000
commitedf6f88ae9200110423d88ff207347ffaaea31d2 (patch)
tree3f81faaf505bc642fcebdc16ddd048edf029635f /sys/arch/amd64
parent9ec0373c90abba62c24ecf1663b040d6515d5431 (diff)
define the bio(4) cdev stuff in conf.h, rather than having a per machine
definition. switch amd64 and i386 to the conf.h version, and add it to macppc. original diff ok gwk@ tweaks and ok miod@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/conf.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/amd64/amd64/conf.c b/sys/arch/amd64/amd64/conf.c
index 07a75ec18f8..fccb2dabd3f 100644
--- a/sys/arch/amd64/amd64/conf.c
+++ b/sys/arch/amd64/amd64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.10 2007/01/15 23:19:05 jsg Exp $ */
+/* $OpenBSD: conf.c,v 1.11 2007/02/06 22:39:13 dlg Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -98,13 +98,6 @@ 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, \
@@ -285,7 +278,7 @@ struct cdevsw cdevsw[] =
cdev_radio_init(NRADIO, radio), /* 76: generic radio I/O */
cdev_usbdev_init(NUSCANNER,uscanner), /* 77: USB scanners */
cdev_systrace_init(NSYSTRACE,systrace), /* 78: system call tracing */
- cdev_oci_init(NBIO,bio), /* 79: ioctl tunnel */
+ cdev_bio_init(NBIO,bio), /* 79: ioctl tunnel */
cdev_notdef(), /* 80: gpr? XXX */
cdev_ptm_init(NPTY,ptm), /* 81: pseudo-tty ptm device */
cdev_hotplug_init(NHOTPLUG,hotplug), /* 82: devices hot plugging */