summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-09-12 18:48:07 +0000
committergreen <green@FreeBSD.org>1999-09-12 18:48:07 +0000
commit347920f6fbdf6bb321a5895694e2ed2ae9b260ee (patch)
tree30106eb3e367ef1da8ee6729d4778d1cd813f2f5
parent8e94c274cd98f0bdafddd2cfc5e0c01d52d5dc6c (diff)
downloadFreeBSD-src-347920f6fbdf6bb321a5895694e2ed2ae9b260ee.zip
FreeBSD-src-347920f6fbdf6bb321a5895694e2ed2ae9b260ee.tar.gz
Correction: mem.c devices are "D_MEM" (and D_MEM is added.)
Taken issue with by: phk
-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