diff options
author | phk <phk@FreeBSD.org> | 2004-02-21 21:10:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-21 21:10:55 +0000 |
commit | ad925439e08646e188eb1c0e0be355f0685c8739 (patch) | |
tree | 0896a7d99c90ad922a1e4b41f052d155256cb97e /sys/alpha | |
parent | d68e8ba04cb070f349043edccaafae5facffab48 (diff) | |
download | FreeBSD-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/alpha')
-rw-r--r-- | sys/alpha/alpha/mem.c | 3 | ||||
-rw-r--r-- | sys/alpha/alpha/promcons.c | 3 | ||||
-rw-r--r-- | sys/alpha/tlsb/zs_tlsb.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/alpha/alpha/mem.c b/sys/alpha/alpha/mem.c index 7edc6f1..6c30c97 100644 --- a/sys/alpha/alpha/mem.c +++ b/sys/alpha/alpha/mem.c @@ -83,6 +83,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, @@ -91,7 +92,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/alpha/alpha/promcons.c b/sys/alpha/alpha/promcons.c index 473f0fc..4d41abc 100644 --- a/sys/alpha/alpha/promcons.c +++ b/sys/alpha/alpha/promcons.c @@ -64,11 +64,12 @@ static d_close_t promclose; static d_ioctl_t promioctl; static struct cdevsw prom_cdevsw = { + .d_version = D_VERSION, .d_open = promopen, .d_close = promclose, .d_ioctl = promioctl, .d_name = "prom", - .d_flags = D_TTY, + .d_flags = D_TTY | D_NEEDGIANT, }; diff --git a/sys/alpha/tlsb/zs_tlsb.c b/sys/alpha/tlsb/zs_tlsb.c index 035ac45..749dd6d 100644 --- a/sys/alpha/tlsb/zs_tlsb.c +++ b/sys/alpha/tlsb/zs_tlsb.c @@ -71,11 +71,12 @@ static d_close_t zsclose; static d_ioctl_t zsioctl; static struct cdevsw zs_cdevsw = { + .d_version = D_VERSION, .d_open = zsopen, .d_close = zsclose, .d_ioctl = zsioctl, .d_name = "zs", - .d_flags = D_TTY, + .d_flags = D_TTY | D_NEEDGIANT, }; static void zsstart(struct tty *); |