summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-06-11 05:15:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-06-11 05:15:22 +0000
commitbbeea69a18aa990c0fc985fd84aec1c97773089e (patch)
tree9802dc42b8babf8b4bf6bbcf7b05d6daedd6132a /sys
parentbe6f9dc2900c4b7bf84fd09e5ef3db75ad1ea36d (diff)
Move cdev_lpt_init() to a common location.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/conf.c8
-rw-r--r--sys/arch/amiga/include/conf.h9
-rw-r--r--sys/arch/hppa/hppa/conf.c7
-rw-r--r--sys/arch/i386/i386/conf.c8
-rw-r--r--sys/arch/i386/include/conf.h7
-rw-r--r--sys/arch/sparc64/sparc64/conf.c8
-rw-r--r--sys/sys/conf.h8
7 files changed, 13 insertions, 42 deletions
diff --git a/sys/arch/alpha/alpha/conf.c b/sys/arch/alpha/alpha/conf.c
index b1a6a214473..8eaf119c66c 100644
--- a/sys/arch/alpha/alpha/conf.c
+++ b/sys/arch/alpha/alpha/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.40 2002/06/11 04:53:39 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.41 2002/06/11 05:15:17 miod Exp $ */
/* $NetBSD: conf.c,v 1.16 1996/10/18 21:26:57 cgd Exp $ */
/*-
@@ -80,12 +80,6 @@ struct bdevsw bdevsw[] =
};
int nblkdev = sizeof (bdevsw) / sizeof (bdevsw[0]);
-/* open, close, write, ioctl */
-#define cdev_lpt_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev }
-
#define mmread mmrw
#define mmwrite mmrw
cdev_decl(mm);
diff --git a/sys/arch/amiga/include/conf.h b/sys/arch/amiga/include/conf.h
index 52bc06776cd..a8657150ff1 100644
--- a/sys/arch/amiga/include/conf.h
+++ b/sys/arch/amiga/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.15 2002/06/11 03:25:46 miod Exp $ */
+/* $OpenBSD: conf.h,v 1.16 2002/06/11 05:15:18 miod Exp $ */
/* $NetBSD: conf.h,v 1.4 1996/11/30 01:13:07 is Exp $ */
/*
@@ -75,13 +75,6 @@ cdev_decl(joy);
(dev_type_stop((*))) enodev, 0, dev_init(c,n,select), \
dev_init(c,n,mmap) }
-/* open, close, write, ioctl */
-#define cdev_lpt_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- dev_init(c,n,write), dev_init(c,n,ioctl), \
- (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev }
-
/* open, close, read, write, ioctl -- XXX should be a generic device */
#define cdev_par_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
diff --git a/sys/arch/hppa/hppa/conf.c b/sys/arch/hppa/hppa/conf.c
index 0a9fa010b42..05f5d25c997 100644
--- a/sys/arch/hppa/hppa/conf.c
+++ b/sys/arch/hppa/hppa/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.19 2002/05/16 21:40:12 mickey Exp $ */
+/* $OpenBSD: conf.c,v 1.20 2002/06/11 05:15:18 miod Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -87,11 +87,6 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
dev_init(c,n,tty), ttselect /* ttpoll */, dev_init(c,n,mmap) }
-#define cdev_lpt_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- dev_init(c,n,write), dev_init(c,n,ioctl),(dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev }
-
#include "pty.h"
#include "wsdisplay.h"
#include "wskbd.h"
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index 0b25be71134..3a4a2367f18 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.91 2002/06/09 22:03:43 niklas Exp $ */
+/* $OpenBSD: conf.c,v 1.92 2002/06/11 05:15:19 miod Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -95,12 +95,6 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
-/* open, close, write, ioctl */
-#define cdev_lpt_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev }
-
/* open, close, read, ioctl */
#define cdev_joy_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
diff --git a/sys/arch/i386/include/conf.h b/sys/arch/i386/include/conf.h
index ae3ef445ee5..c28c43c8906 100644
--- a/sys/arch/i386/include/conf.h
+++ b/sys/arch/i386/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.8 2001/08/18 06:08:08 mickey Exp $ */
+/* $OpenBSD: conf.h,v 1.9 2002/06/11 05:15:19 miod Exp $ */
/* $NetBSD: conf.h,v 1.2 1996/05/05 19:28:34 christos Exp $ */
/*
@@ -48,11 +48,6 @@ cdev_decl(fd);
cdev_decl(pc);
-/* open, close, write, ioctl */
-#define cdev_spkr_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev }
#define cdev_apm_init(c,n) {\
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c
index cc1ba43e763..dcdf4376633 100644
--- a/sys/arch/sparc64/sparc64/conf.c
+++ b/sys/arch/sparc64/sparc64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.30 2002/05/16 21:11:18 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.31 2002/06/11 05:15:21 miod Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
@@ -55,12 +55,6 @@
#include <machine/conf.h>
-/* open, close, write, ioctl */
-#define cdev_lpt_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev }
-
#include "pty.h"
#include "bpfilter.h"
#include "tun.h"
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 0df782bd9c6..23400ff0cc6 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.56 2002/06/09 22:03:44 niklas Exp $ */
+/* $OpenBSD: conf.h,v 1.57 2002/06/11 05:15:15 miod Exp $ */
/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */
/*-
@@ -436,6 +436,12 @@ void randomattach(void);
dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
0, seltrue, (dev_type_mmap((*))) enodev }
+/* open, close, write, ioctl */
+#define cdev_lpt_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
+ 0, seltrue, (dev_type_mmap((*))) enodev }
+
/* symbolic sleep message strings */
extern char devopn[], devio[], devwait[], devin[], devout[];
extern char devioc[], devcls[];