summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/alpha/mem.c2
-rw-r--r--sys/amd64/amd64/mem.c2
-rw-r--r--sys/i386/i386/mem.c2
-rw-r--r--sys/sys/conf.h9
-rw-r--r--sys/sys/linedisc.h9
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
OpenPOWER on IntegriCloud