aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-05-01 17:46:56 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-05-01 17:46:56 +0000
commite1da986b54db549b245725dbbb7c289fbb22bc1d (patch)
tree6ca381b4cab2514309d965f400db2d2b0f575eb4 /sys
parenta8702c83831552781739ba895ae961ea1f837fa9 (diff)
downloadsrc-e1da986b54db549b245725dbbb7c289fbb22bc1d.tar.gz
src-e1da986b54db549b245725dbbb7c289fbb22bc1d.zip
Make it explicit that D_MEM cdevsw d_flag is to signify that the
driver is (or behaves identically to) /dev/mem. Remove the D_MEM flag from random drivers. Note that currently the D_MEM flag does not affect any behaviour, but this going to change in the next commit. Noted and reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week X-Differential revision: https://reviews.freebsd.org/D6149
Notes
Notes: svn path=/head/; revision=298890
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/firewire/fwdev.c1
-rw-r--r--sys/i386/bios/smapi.c2
-rw-r--r--sys/sys/conf.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/firewire/fwdev.c b/sys/dev/firewire/fwdev.c
index e09ce2c947bf..cebd28ad876a 100644
--- a/sys/dev/firewire/fwdev.c
+++ b/sys/dev/firewire/fwdev.c
@@ -80,7 +80,6 @@ struct cdevsw firewire_cdevsw = {
.d_mmap = fw_mmap,
.d_strategy = fw_strategy,
.d_name = "fw",
- .d_flags = D_MEM
};
struct fw_drv1 {
diff --git a/sys/i386/bios/smapi.c b/sys/i386/bios/smapi.c
index a7710bbc92bb..ef1ba426b141 100644
--- a/sys/i386/bios/smapi.c
+++ b/sys/i386/bios/smapi.c
@@ -80,7 +80,7 @@ static struct cdevsw smapi_cdevsw = {
.d_version = D_VERSION,
.d_ioctl = smapi_ioctl,
.d_name = "smapi",
- .d_flags = D_MEM | D_NEEDGIANT,
+ .d_flags = D_NEEDGIANT,
};
static void smapi_identify(driver_t *, device_t);
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index b7d9756c3b5c..2bfc14f56e4f 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -138,7 +138,7 @@ typedef int dumper_t(
#define D_TAPE 0x0001
#define D_DISK 0x0002
#define D_TTY 0x0004
-#define D_MEM 0x0008
+#define D_MEM 0x0008 /* /dev/(k)mem */
#ifdef _KERNEL