From 347920f6fbdf6bb321a5895694e2ed2ae9b260ee Mon Sep 17 00:00:00 2001 From: green Date: Sun, 12 Sep 1999 18:48:07 +0000 Subject: Correction: mem.c devices are "D_MEM" (and D_MEM is added.) Taken issue with by: phk --- sys/alpha/alpha/mem.c | 2 +- sys/amd64/amd64/mem.c | 2 +- sys/i386/i386/mem.c | 2 +- sys/sys/conf.h | 9 +++++---- sys/sys/linedisc.h | 9 +++++---- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/sys/alpha/alpha/mem.c b/sys/alpha/alpha/mem.c index fff71fb..99bb4cc 100644 --- a/sys/alpha/alpha/mem.c +++ b/sys/alpha/alpha/mem.c @@ -95,7 +95,7 @@ static struct cdevsw mem_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_DISK, + /* flags */ D_MEM, /* maxio */ 0, /* bmaj */ -1 }; diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c index ec18a00..42e9b14 100644 --- a/sys/amd64/amd64/mem.c +++ b/sys/amd64/amd64/mem.c @@ -95,7 +95,7 @@ static struct cdevsw mem_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_DISK, + /* flags */ D_MEM, /* maxio */ 0, /* bmaj */ -1 }; diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c index ec18a00..42e9b14 100644 --- a/sys/i386/i386/mem.c +++ b/sys/i386/i386/mem.c @@ -95,7 +95,7 @@ static struct cdevsw mem_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_DISK, + /* flags */ D_MEM, /* maxio */ 0, /* bmaj */ -1 }; diff --git a/sys/sys/conf.h b/sys/sys/conf.h index ddf4c68..377d90a 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -143,11 +143,12 @@ typedef void devfs_remove_t __P((dev_t dev)); */ #define BUF_STRATEGY(bp, dummy) (*devsw((bp)->b_dev)->d_strategy)(bp) /* - * Types for d_type. + * Types for d_flags. */ -#define D_TAPE 1 -#define D_DISK 2 -#define D_TTY 4 +#define D_TAPE 0x0001 +#define D_DISK 0x0002 +#define D_TTY 0x0004 +#define D_MEM 0x0008 #define D_TYPEMASK 0xffff diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index ddf4c68..377d90a 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -143,11 +143,12 @@ typedef void devfs_remove_t __P((dev_t dev)); */ #define BUF_STRATEGY(bp, dummy) (*devsw((bp)->b_dev)->d_strategy)(bp) /* - * Types for d_type. + * Types for d_flags. */ -#define D_TAPE 1 -#define D_DISK 2 -#define D_TTY 4 +#define D_TAPE 0x0001 +#define D_DISK 0x0002 +#define D_TTY 0x0004 +#define D_MEM 0x0008 #define D_TYPEMASK 0xffff -- cgit v1.1