From 33c5c0312bf693187fbfbabd9d37db059413862e Mon Sep 17 00:00:00 2001 From: hvozda Date: Mon, 15 Jan 1996 01:55:05 +0000 Subject: [PATCH] define pcmciabus for PCMCIA support --- sys/arch/i386/i386/conf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c index 15aa1270a25..adaa0da6558 100644 --- a/sys/arch/i386/i386/conf.c +++ b/sys/arch/i386/i386/conf.c @@ -111,6 +111,13 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \ 0, seltrue, (dev_type_mmap((*))) enodev } +/* 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, \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) enodev, 0, dev_init(c,n,select), \ + (dev_type_mmap((*))) enodev, 0 } + cdev_decl(cn); cdev_decl(ctty); #define mmread mmrw @@ -146,6 +153,8 @@ cdev_decl(ch); dev_decl(fd,open); #include "bpfilter.h" cdev_decl(bpf); +#include "pcmciabus.h" +cdev_decl(pcmciabus); #include "speaker.h" cdev_decl(spkr); #ifdef LKM @@ -214,7 +223,7 @@ struct cdevsw cdevsw[] = cdev_bpftun_init(NBPFILTER,bpf),/* 23: Berkeley packet filter */ cdev_notdef(), /* 24 */ cdev_notdef(), /* 25 */ - cdev_notdef(), /* 26 */ + cdev_ocis_init(NPCMCIABUS,pcmciabus), /* 26: PCMCIA Bus */ cdev_spkr_init(NSPEAKER,spkr), /* 27: PC speaker */ cdev_lkm_init(NLKM,lkm), /* 28: loadable module driver */ cdev_lkm_dummy(), /* 29 */ -- 2.20.1