summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/asc.c20
-rw-r--r--sys/i386/isa/ctx.c20
-rw-r--r--sys/i386/isa/cx.c24
-rw-r--r--sys/i386/isa/cy.c24
-rw-r--r--sys/i386/isa/gpib.c19
-rw-r--r--sys/i386/isa/gsc.c19
-rw-r--r--sys/i386/isa/istallion.c24
-rw-r--r--sys/i386/isa/loran.c19
-rw-r--r--sys/i386/isa/mse.c20
-rw-r--r--sys/i386/isa/pcaudio.c20
-rw-r--r--sys/i386/isa/pcvt/pcvt_drv.c25
-rw-r--r--sys/i386/isa/spic.c20
-rw-r--r--sys/i386/isa/spigot.c21
-rw-r--r--sys/i386/isa/spkr.c19
-rw-r--r--sys/i386/isa/stallion.c24
-rw-r--r--sys/i386/isa/tw.c20
-rw-r--r--sys/i386/isa/wt.c21
17 files changed, 133 insertions, 226 deletions
diff --git a/sys/i386/isa/asc.c b/sys/i386/isa/asc.c
index 875dc58..d231807 100644
--- a/sys/i386/isa/asc.c
+++ b/sys/i386/isa/asc.c
@@ -198,19 +198,13 @@ static d_poll_t ascpoll;
#define CDEV_MAJOR 71
static struct cdevsw asc_cdevsw = {
- /* open */ ascopen,
- /* close */ ascclose,
- /* read */ ascread,
- /* write */ nowrite,
- /* ioctl */ ascioctl,
- /* poll */ ascpoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "asc",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = ascopen,
+ .d_close = ascclose,
+ .d_read = ascread,
+ .d_ioctl = ascioctl,
+ .d_poll = ascpoll,
+ .d_name = "asc",
+ .d_maj = CDEV_MAJOR,
};
#define STATIC static
diff --git a/sys/i386/isa/ctx.c b/sys/i386/isa/ctx.c
index e70c40e..659c27b 100644
--- a/sys/i386/isa/ctx.c
+++ b/sys/i386/isa/ctx.c
@@ -151,19 +151,13 @@ static d_ioctl_t ctxioctl;
#define CDEV_MAJOR 40
static struct cdevsw ctx_cdevsw = {
- /* open */ ctxopen,
- /* close */ ctxclose,
- /* read */ ctxread,
- /* write */ ctxwrite,
- /* ioctl */ ctxioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "ctx",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = ctxopen,
+ .d_close = ctxclose,
+ .d_read = ctxread,
+ .d_write = ctxwrite,
+ .d_ioctl = ctxioctl,
+ .d_name = "ctx",
+ .d_maj = CDEV_MAJOR,
};
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c
index e814415..0892a0f 100644
--- a/sys/i386/isa/cx.c
+++ b/sys/i386/isa/cx.c
@@ -73,20 +73,16 @@ static d_ioctl_t cxioctl;
#define CDEV_MAJOR 42
/* Don't make this static, since if_cx.c uses it. */
struct cdevsw cx_cdevsw = {
- /* open */ cxopen,
- /* close */ cxclose,
- /* read */ ttyread,
- /* write */ ttywrite,
- /* ioctl */ cxioctl,
- /* poll */ ttypoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "cx",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_TTY | D_KQFILTER,
- /* kqfilter */ ttykqfilter,
+ .d_open = cxopen,
+ .d_close = cxclose,
+ .d_read = ttyread,
+ .d_write = ttywrite,
+ .d_ioctl = cxioctl,
+ .d_poll = ttypoll,
+ .d_name = "cx",
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_TTY | D_KQFILTER,
+ .d_kqfilter = ttykqfilter,
};
static void cxoproc (struct tty *tp);
diff --git a/sys/i386/isa/cy.c b/sys/i386/isa/cy.c
index 0d54043..53ea3bc 100644
--- a/sys/i386/isa/cy.c
+++ b/sys/i386/isa/cy.c
@@ -397,20 +397,16 @@ static d_ioctl_t sioioctl;
#define CDEV_MAJOR 48
static struct cdevsw sio_cdevsw = {
- /* open */ sioopen,
- /* close */ sioclose,
- /* read */ ttyread,
- /* write */ siowrite,
- /* ioctl */ sioioctl,
- /* poll */ ttypoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ driver_name,
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_TTY | D_KQFILTER,
- /* kqfilter */ ttykqfilter,
+ .d_open = sioopen,
+ .d_close = sioclose,
+ .d_read = ttyread,
+ .d_write = siowrite,
+ .d_ioctl = sioioctl,
+ .d_poll = ttypoll,
+ .d_name = driver_name,
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_TTY | D_KQFILTER,
+ .d_kqfilter = ttykqfilter,
};
static int comconsole = -1;
diff --git a/sys/i386/isa/gpib.c b/sys/i386/isa/gpib.c
index 0a5a0e0..288775e 100644
--- a/sys/i386/isa/gpib.c
+++ b/sys/i386/isa/gpib.c
@@ -73,19 +73,12 @@ static d_ioctl_t gpioctl;
#define CDEV_MAJOR 44
static struct cdevsw gp_cdevsw = {
- /* open */ gpopen,
- /* close */ gpclose,
- /* read */ noread,
- /* write */ gpwrite,
- /* ioctl */ gpioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "gp",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = gpopen,
+ .d_close = gpclose,
+ .d_write = gpwrite,
+ .d_ioctl = gpioctl,
+ .d_name = "gp",
+ .d_maj = CDEV_MAJOR,
};
#define BUFSIZE 1024
diff --git a/sys/i386/isa/gsc.c b/sys/i386/isa/gsc.c
index 5a94838..b435ced 100644
--- a/sys/i386/isa/gsc.c
+++ b/sys/i386/isa/gsc.c
@@ -193,19 +193,12 @@ static d_ioctl_t gscioctl;
#define CDEV_MAJOR 47
static struct cdevsw gsc_cdevsw = {
- /* open */ gscopen,
- /* close */ gscclose,
- /* read */ gscread,
- /* write */ nowrite,
- /* ioctl */ gscioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "gsc",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = gscopen,
+ .d_close = gscclose,
+ .d_read = gscread,
+ .d_ioctl = gscioctl,
+ .d_name = "gsc",
+ .d_maj = CDEV_MAJOR,
};
diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c
index 35aa836..d988687 100644
--- a/sys/i386/isa/istallion.c
+++ b/sys/i386/isa/istallion.c
@@ -642,20 +642,16 @@ COMPAT_ISA_DRIVER(stli, stlidriver);
#define CDEV_MAJOR 75
static struct cdevsw stli_cdevsw = {
- /* open */ stliopen,
- /* close */ stliclose,
- /* read */ stliread,
- /* write */ stliwrite,
- /* ioctl */ stliioctl,
- /* poll */ ttypoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ stli_drvname,
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_TTY | D_KQFILTER,
- /* kqfilter */ ttykqfilter,
+ .d_open = stliopen,
+ .d_close = stliclose,
+ .d_read = stliread,
+ .d_write = stliwrite,
+ .d_ioctl = stliioctl,
+ .d_poll = ttypoll,
+ .d_name = stli_drvname,
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_TTY | D_KQFILTER,
+ .d_kqfilter = ttykqfilter,
};
#endif
diff --git a/sys/i386/isa/loran.c b/sys/i386/isa/loran.c
index f41338c..47b8b7d 100644
--- a/sys/i386/isa/loran.c
+++ b/sys/i386/isa/loran.c
@@ -622,19 +622,12 @@ struct isa_driver lorandriver = {
COMPAT_ISA_DRIVER(loran, lorandriver);
static struct cdevsw loran_cdevsw = {
- /* open */ loranopen,
- /* close */ loranclose,
- /* read */ loranread,
- /* write */ loranwrite,
- /* ioctl */ noioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "loran",
- /* maj */ MAJOR_AUTO,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = loranopen,
+ .d_close = loranclose,
+ .d_read = loranread,
+ .d_write = loranwrite,
+ .d_name = "loran",
+ .d_maj = MAJOR_AUTO,
};
#endif /* _KERNEL */
diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c
index 17622bd..57b0e7b 100644
--- a/sys/i386/isa/mse.c
+++ b/sys/i386/isa/mse.c
@@ -139,19 +139,13 @@ static d_poll_t msepoll;
#define CDEV_MAJOR 27
static struct cdevsw mse_cdevsw = {
- /* open */ mseopen,
- /* close */ mseclose,
- /* read */ mseread,
- /* write */ nowrite,
- /* ioctl */ mseioctl,
- /* poll */ msepoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "mse",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = mseopen,
+ .d_close = mseclose,
+ .d_read = mseread,
+ .d_ioctl = mseioctl,
+ .d_poll = msepoll,
+ .d_name = "mse",
+ .d_maj = CDEV_MAJOR,
};
static void mseintr(void *);
diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c
index 2978471..170407f 100644
--- a/sys/i386/isa/pcaudio.c
+++ b/sys/i386/isa/pcaudio.c
@@ -155,19 +155,13 @@ static d_poll_t pcapoll;
#define CDEV_MAJOR 24
static struct cdevsw pca_cdevsw = {
- /* open */ pcaopen,
- /* close */ pcaclose,
- /* read */ noread,
- /* write */ pcawrite,
- /* ioctl */ pcaioctl,
- /* poll */ pcapoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "pca",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = pcaopen,
+ .d_close = pcaclose,
+ .d_write = pcawrite,
+ .d_ioctl = pcaioctl,
+ .d_poll = pcapoll,
+ .d_name = "pca",
+ .d_maj = CDEV_MAJOR,
};
static void pca_continue(void);
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c
index 72a23e0..55570ea 100644
--- a/sys/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/i386/isa/pcvt/pcvt_drv.c
@@ -96,20 +96,17 @@ static d_mmap_t pcvt_mmap;
#define CDEV_MAJOR 12
static struct cdevsw vt_cdevsw = {
- /* open */ pcvt_open,
- /* close */ pcvt_close,
- /* read */ ttyread,
- /* write */ ttywrite,
- /* ioctl */ pcvt_ioctl,
- /* poll */ ttypoll,
- /* mmap */ pcvt_mmap,
- /* strategy */ nostrategy,
- /* name */ "vt",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_TTY | D_KQFILTER,
- /* kqfilter */ ttykqfilter,
+ .d_open = pcvt_open,
+ .d_close = pcvt_close,
+ .d_read = ttyread,
+ .d_write = ttywrite,
+ .d_ioctl = pcvt_ioctl,
+ .d_poll = ttypoll,
+ .d_mmap = pcvt_mmap,
+ .d_name = "vt",
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_TTY | D_KQFILTER,
+ .d_kqfilter = ttykqfilter,
};
static int pcvt_probe(device_t dev);
diff --git a/sys/i386/isa/spic.c b/sys/i386/isa/spic.c
index 6bc5ac4..7331f74 100644
--- a/sys/i386/isa/spic.c
+++ b/sys/i386/isa/spic.c
@@ -84,19 +84,13 @@ static d_ioctl_t spicioctl;
static d_poll_t spicpoll;
static struct cdevsw spic_cdevsw = {
- /* open */ spicopen,
- /* close */ spicclose,
- /* read */ spicread,
- /* write */ nowrite,
- /* ioctl */ spicioctl,
- /* poll */ spicpoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "spic",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = spicopen,
+ .d_close = spicclose,
+ .d_read = spicread,
+ .d_ioctl = spicioctl,
+ .d_poll = spicpoll,
+ .d_name = "spic",
+ .d_maj = CDEV_MAJOR,
};
#define SCBUFLEN 128
diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c
index 79ad930..1a7bfec 100644
--- a/sys/i386/isa/spigot.c
+++ b/sys/i386/isa/spigot.c
@@ -106,19 +106,14 @@ static d_mmap_t spigot_mmap;
#define CDEV_MAJOR 11
static struct cdevsw spigot_cdevsw = {
- /* open */ spigot_open,
- /* close */ spigot_close,
- /* read */ spigot_read,
- /* write */ spigot_write,
- /* ioctl */ spigot_ioctl,
- /* poll */ nopoll,
- /* mmap */ spigot_mmap,
- /* strategy */ nostrategy,
- /* name */ "spigot",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = spigot_open,
+ .d_close = spigot_close,
+ .d_read = spigot_read,
+ .d_write = spigot_write,
+ .d_ioctl = spigot_ioctl,
+ .d_mmap = spigot_mmap,
+ .d_name = "spigot",
+ .d_maj = CDEV_MAJOR,
};
static ointhand2_t spigintr;
diff --git a/sys/i386/isa/spkr.c b/sys/i386/isa/spkr.c
index 22b6bf3..97fa4e6 100644
--- a/sys/i386/isa/spkr.c
+++ b/sys/i386/isa/spkr.c
@@ -34,19 +34,12 @@ static d_ioctl_t spkrioctl;
#define CDEV_MAJOR 26
static struct cdevsw spkr_cdevsw = {
- /* open */ spkropen,
- /* close */ spkrclose,
- /* read */ noread,
- /* write */ spkrwrite,
- /* ioctl */ spkrioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "spkr",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = spkropen,
+ .d_close = spkrclose,
+ .d_write = spkrwrite,
+ .d_ioctl = spkrioctl,
+ .d_name = "spkr",
+ .d_maj = CDEV_MAJOR,
};
static MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c
index 1d8c666..ebf3534 100644
--- a/sys/i386/isa/stallion.c
+++ b/sys/i386/isa/stallion.c
@@ -536,20 +536,16 @@ COMPAT_PCI_DRIVER (stlpci, stlpcidriver);
#define CDEV_MAJOR 72
static struct cdevsw stl_cdevsw = {
- /* open */ stlopen,
- /* close */ stlclose,
- /* read */ ttyread,
- /* write */ ttywrite,
- /* ioctl */ stlioctl,
- /* poll */ ttypoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "stl",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_TTY | D_KQFILTER,
- /* kqfilter */ ttykqfilter,
+ .d_open = stlopen,
+ .d_close = stlclose,
+ .d_read = ttyread,
+ .d_write = ttywrite,
+ .d_ioctl = stlioctl,
+ .d_poll = ttypoll,
+ .d_name = "stl",
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_TTY | D_KQFILTER,
+ .d_kqfilter = ttykqfilter,
};
#endif
diff --git a/sys/i386/isa/tw.c b/sys/i386/isa/tw.c
index 3200828..d0d0e65 100644
--- a/sys/i386/isa/tw.c
+++ b/sys/i386/isa/tw.c
@@ -226,19 +226,13 @@ static d_poll_t twpoll;
#define CDEV_MAJOR 19
static struct cdevsw tw_cdevsw = {
- /* open */ twopen,
- /* close */ twclose,
- /* read */ twread,
- /* write */ twwrite,
- /* ioctl */ noioctl,
- /* poll */ twpoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "tw",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = twopen,
+ .d_close = twclose,
+ .d_read = twread,
+ .d_write = twwrite,
+ .d_poll = twpoll,
+ .d_name = "tw",
+ .d_maj = CDEV_MAJOR,
};
/*
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c
index 64356e7..e29664d 100644
--- a/sys/i386/isa/wt.c
+++ b/sys/i386/isa/wt.c
@@ -186,19 +186,14 @@ static d_strategy_t wtstrategy;
#define CDEV_MAJOR 10
static struct cdevsw wt_cdevsw = {
- /* open */ wtopen,
- /* close */ wtclose,
- /* read */ physread,
- /* write */ physwrite,
- /* ioctl */ wtioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ wtstrategy,
- /* name */ "wt",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = wtopen,
+ .d_close = wtclose,
+ .d_read = physread,
+ .d_write = physwrite,
+ .d_ioctl = wtioctl,
+ .d_strategy = wtstrategy,
+ .d_name = "wt",
+ .d_maj = CDEV_MAJOR,
};
OpenPOWER on IntegriCloud