summaryrefslogtreecommitdiffstats
path: root/sys/ia64
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/ia64
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/ia64')
-rw-r--r--sys/ia64/ia64/mem.c3
-rw-r--r--sys/ia64/ia64/ssc.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/ia64/ia64/mem.c b/sys/ia64/ia64/mem.c
index a904172..c1a2872 100644
--- a/sys/ia64/ia64/mem.c
+++ b/sys/ia64/ia64/mem.c
@@ -82,6 +82,7 @@ static d_mmap_t memmmap;
#define CDEV_MAJOR 2
static struct cdevsw mem_cdevsw = {
+ .d_version = D_VERSION,
.d_open = mmopen,
.d_close = mmclose,
.d_read = mmrw,
@@ -90,7 +91,7 @@ static struct cdevsw mem_cdevsw = {
.d_mmap = memmmap,
.d_name = "mem",
.d_maj = CDEV_MAJOR,
- .d_flags = D_MEM,
+ .d_flags = D_MEM | D_NEEDGIANT,
};
struct mem_range_softc mem_range_softc;
diff --git a/sys/ia64/ia64/ssc.c b/sys/ia64/ia64/ssc.c
index 1f21be1..68f4727 100644
--- a/sys/ia64/ia64/ssc.c
+++ b/sys/ia64/ia64/ssc.c
@@ -58,11 +58,12 @@ static d_close_t sscclose;
static d_ioctl_t sscioctl;
static struct cdevsw ssc_cdevsw = {
+ .d_version = D_VERSION,
.d_open = sscopen,
.d_close = sscclose,
.d_ioctl = sscioctl,
.d_name = "ssc",
- .d_flags = D_TTY,
+ .d_flags = D_TTY | D_NEEDGIANT,
};
static struct tty *ssc_tp = NULL;
OpenPOWER on IntegriCloud