summaryrefslogtreecommitdiffstats
path: root/sys/isa
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/isa
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/isa')
-rw-r--r--sys/isa/fd.c3
-rw-r--r--sys/isa/psm.c2
-rw-r--r--sys/isa/vga_isa.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index 5a50633..808c537 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -482,6 +482,7 @@ fdin_rd(fdc_p fdc)
}
static struct cdevsw fd_cdevsw = {
+ .d_version = D_VERSION,
.d_open = fdopen,
.d_close = fdclose,
.d_read = physread,
@@ -489,7 +490,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/isa/psm.c b/sys/isa/psm.c
index e886e8c..dd2fd7e 100644
--- a/sys/isa/psm.c
+++ b/sys/isa/psm.c
@@ -348,6 +348,8 @@ static driver_t psm_driver = {
static struct cdevsw psm_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = psmopen,
.d_close = psmclose,
.d_read = psmread,
diff --git a/sys/isa/vga_isa.c b/sys/isa/vga_isa.c
index c820be2..ce330f8 100644
--- a/sys/isa/vga_isa.c
+++ b/sys/isa/vga_isa.c
@@ -72,6 +72,8 @@ static d_ioctl_t isavga_ioctl;
static d_mmap_t isavga_mmap;
static struct cdevsw isavga_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = isavga_open,
.d_close = isavga_close,
.d_read = isavga_read,
OpenPOWER on IntegriCloud