summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-21 21:10:55 +0000
committerphk <phk@FreeBSD.org>2004-02-21 21:10:55 +0000
commitad925439e08646e188eb1c0e0be355f0685c8739 (patch)
tree0896a7d99c90ad922a1e4b41f052d155256cb97e /sys/pc98
parentd68e8ba04cb070f349043edccaafae5facffab48 (diff)
downloadFreeBSD-src-ad925439e08646e188eb1c0e0be355f0685c8739.zip
FreeBSD-src-ad925439e08646e188eb1c0e0be355f0685c8739.tar.gz
Device megapatch 4/6:
Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/fdc.c3
-rw-r--r--sys/pc98/cbus/gdc.c2
-rw-r--r--sys/pc98/cbus/olpt.c2
-rw-r--r--sys/pc98/cbus/sio.c3
-rw-r--r--sys/pc98/pc98/fd.c3
-rw-r--r--sys/pc98/pc98/mse.c2
-rw-r--r--sys/pc98/pc98/olpt.c2
-rw-r--r--sys/pc98/pc98/pc98gdc.c2
-rw-r--r--sys/pc98/pc98/sio.c3
-rw-r--r--sys/pc98/pc98/wd_cd.c3
10 files changed, 20 insertions, 5 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index a2ebaa4..df37273 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -623,6 +623,7 @@ fdin_rd(fdc_p fdc)
#endif /* PC98 */
static struct cdevsw fd_cdevsw = {
+ .d_version = D_VERSION,
.d_open = fdopen,
.d_close = fdclose,
.d_read = physread,
@@ -630,7 +631,7 @@ static struct cdevsw fd_cdevsw = {
.d_ioctl = fdioctl,
.d_strategy = fdstrategy,
.d_name = "fd",
- .d_flags = D_DISK,
+ .d_flags = D_DISK | D_NEEDGIANT,
};
/*
diff --git a/sys/pc98/cbus/gdc.c b/sys/pc98/cbus/gdc.c
index 5a23282..0307f6c 100644
--- a/sys/pc98/cbus/gdc.c
+++ b/sys/pc98/cbus/gdc.c
@@ -102,6 +102,8 @@ static d_ioctl_t gdcioctl;
static d_mmap_t gdcmmap;
static struct cdevsw gdc_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = gdcopen,
.d_close = gdcclose,
.d_read = gdcread,
diff --git a/sys/pc98/cbus/olpt.c b/sys/pc98/cbus/olpt.c
index f176046..0ebd84c 100644
--- a/sys/pc98/cbus/olpt.c
+++ b/sys/pc98/cbus/olpt.c
@@ -230,6 +230,8 @@ static d_write_t lptwrite;
static d_ioctl_t lptioctl;
static struct cdevsw lpt_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = lptopen,
.d_close = lptclose,
.d_write = lptwrite,
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 3c309c0..39269ea 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -416,13 +416,14 @@ static d_write_t siowrite;
static d_ioctl_t sioioctl;
static struct cdevsw sio_cdevsw = {
+ .d_version = D_VERSION,
.d_open = sioopen,
.d_close = sioclose,
.d_read = sioread,
.d_write = siowrite,
.d_ioctl = sioioctl,
.d_name = sio_driver_name,
- .d_flags = D_TTY,
+ .d_flags = D_TTY | D_NEEDGIANT,
};
int comconsole = -1;
diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c
index a2ebaa4..df37273 100644
--- a/sys/pc98/pc98/fd.c
+++ b/sys/pc98/pc98/fd.c
@@ -623,6 +623,7 @@ fdin_rd(fdc_p fdc)
#endif /* PC98 */
static struct cdevsw fd_cdevsw = {
+ .d_version = D_VERSION,
.d_open = fdopen,
.d_close = fdclose,
.d_read = physread,
@@ -630,7 +631,7 @@ static struct cdevsw fd_cdevsw = {
.d_ioctl = fdioctl,
.d_strategy = fdstrategy,
.d_name = "fd",
- .d_flags = D_DISK,
+ .d_flags = D_DISK | D_NEEDGIANT,
};
/*
diff --git a/sys/pc98/pc98/mse.c b/sys/pc98/pc98/mse.c
index cc439a0..4ddeb63 100644
--- a/sys/pc98/pc98/mse.c
+++ b/sys/pc98/pc98/mse.c
@@ -137,6 +137,8 @@ static d_ioctl_t mseioctl;
static d_poll_t msepoll;
static struct cdevsw mse_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = mseopen,
.d_close = mseclose,
.d_read = mseread,
diff --git a/sys/pc98/pc98/olpt.c b/sys/pc98/pc98/olpt.c
index f176046..0ebd84c 100644
--- a/sys/pc98/pc98/olpt.c
+++ b/sys/pc98/pc98/olpt.c
@@ -230,6 +230,8 @@ static d_write_t lptwrite;
static d_ioctl_t lptioctl;
static struct cdevsw lpt_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = lptopen,
.d_close = lptclose,
.d_write = lptwrite,
diff --git a/sys/pc98/pc98/pc98gdc.c b/sys/pc98/pc98/pc98gdc.c
index 5a23282..0307f6c 100644
--- a/sys/pc98/pc98/pc98gdc.c
+++ b/sys/pc98/pc98/pc98gdc.c
@@ -102,6 +102,8 @@ static d_ioctl_t gdcioctl;
static d_mmap_t gdcmmap;
static struct cdevsw gdc_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = gdcopen,
.d_close = gdcclose,
.d_read = gdcread,
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index 3c309c0..39269ea 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -416,13 +416,14 @@ static d_write_t siowrite;
static d_ioctl_t sioioctl;
static struct cdevsw sio_cdevsw = {
+ .d_version = D_VERSION,
.d_open = sioopen,
.d_close = sioclose,
.d_read = sioread,
.d_write = siowrite,
.d_ioctl = sioioctl,
.d_name = sio_driver_name,
- .d_flags = D_TTY,
+ .d_flags = D_TTY | D_NEEDGIANT,
};
int comconsole = -1;
diff --git a/sys/pc98/pc98/wd_cd.c b/sys/pc98/pc98/wd_cd.c
index 8780917..ef508c0 100644
--- a/sys/pc98/pc98/wd_cd.c
+++ b/sys/pc98/pc98/wd_cd.c
@@ -49,6 +49,7 @@ static d_strategy_t acdstrategy;
static struct cdevsw acd_cdevsw = {
+ .d_version = D_VERSION,
.d_open = acdopen,
.d_close = acdclose,
.d_read = physread,
@@ -56,7 +57,7 @@ static struct cdevsw acd_cdevsw = {
.d_ioctl = acdioctl,
.d_strategy = acdstrategy,
.d_name = "wcd",
- .d_flags = D_DISK,
+ .d_flags = D_DISK | D_NEEDGIANT,
};
#define NUNIT 16 /* Max # of devices */
OpenPOWER on IntegriCloud