diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-05-04 09:28:39 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-05-04 09:28:39 +0000 |
commit | 9490b8b9b8015a7365179b72953b066f63e749b2 (patch) | |
tree | 0c8ca6099745bdc1e74da91398ad8275e81f85c3 /sys/arch | |
parent | 996788a2ff3f0ad84f630ce90d5a2fa6c9dd6bbb (diff) |
Sorted entries, and added com, lpt and ipl declarations
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amiga/include/conf.h | 76 |
1 files changed, 45 insertions, 31 deletions
diff --git a/sys/arch/amiga/include/conf.h b/sys/arch/amiga/include/conf.h index 9aeacd83f46..f9d6d47cee2 100644 --- a/sys/arch/amiga/include/conf.h +++ b/sys/arch/amiga/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.1 1996/05/02 06:44:43 niklas Exp $ */ +/* $OpenBSD: conf.h,v 1.2 1996/05/04 09:28:38 niklas Exp $ */ /* $NetBSD: conf.h,v 1.1 1996/04/21 21:13:16 veego Exp $ */ /* @@ -30,15 +30,42 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#define mmread mmrw -#define mmwrite mmrw -cdev_decl(mm); +cdev_decl(com); cdev_decl(ctty); bdev_decl(fd); cdev_decl(fd); +cdev_decl(grf); + +cdev_decl(ipl); + +cdev_decl(ite); + +cdev_decl(kbd); + +cdev_decl(lpt); + +cdev_decl(mfcs); + +#define mmread mmrw +#define mmwrite mmrw +cdev_decl(mm); + +cdev_decl(ms); + +cdev_decl(msc); + +cdev_decl(par); + +cdev_decl(ser); + +bdev_decl(sw); +cdev_decl(sw); + +cdev_decl(view); + /* open, close, ioctl, select, mmap -- XXX should be a map device */ #define cdev_grf_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) nullop, \ @@ -46,17 +73,18 @@ cdev_decl(fd); (dev_type_stop((*))) enodev, 0, dev_init(c,n,select), \ dev_init(c,n,mmap) } -/* open, close, ioctl, select, mmap -- XXX should be a map device */ -#define cdev_view_init(c,n) { \ - dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) nullop, \ - (dev_type_write((*))) nullop, dev_init(c,n,ioctl), \ - (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), \ - dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \ + dev_init(c,n,write), dev_init(c,n,ioctl), \ + (dev_type_stop((*))) enodev, \ 0, (dev_type_select((*))) enodev, (dev_type_mmap((*))) enodev } /* open, close, read, ioctl */ @@ -66,23 +94,9 @@ cdev_decl(fd); (dev_type_stop((*))) enodev, 0, seltrue, \ (dev_type_mmap((*))) enodev } -cdev_decl(ms); - -cdev_decl(grf); - -cdev_decl(kbd); - -cdev_decl(ite); - -cdev_decl(par); - -cdev_decl(ser); - -cdev_decl(msc); - -cdev_decl(mfcs); - -cdev_decl(view); - -bdev_decl(sw); -cdev_decl(sw); +/* open, close, ioctl, select, mmap -- XXX should be a map device */ +#define cdev_view_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) nullop, \ + (dev_type_write((*))) nullop, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) enodev, 0, dev_init(c,n,select), \ + dev_init(c,n,mmap) } |