summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/cpu.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>1998-02-17 23:49:32 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>1998-02-17 23:49:32 +0000
commit185c1e53c88c0f99d32dd8744c7c2283e38c7aaa (patch)
tree86fe54b6e9b846be2e8fea242aa97c1cd342e21a /sys/arch/i386/include/cpu.h
parent7e873f48bff5884f2fecc61729b41743bb2aa8a7 (diff)
add an in-kernel /dev/xf86 aperture driver. the 'machdep.allowaperture'
sysctl controls whether it is permitted to access it. This sysctl can only be manipulated when securelevel=0, hence in sysctl.conf
Diffstat (limited to 'sys/arch/i386/include/cpu.h')
-rw-r--r--sys/arch/i386/include/cpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h
index 33527023919..fed648fadf4 100644
--- a/sys/arch/i386/include/cpu.h
+++ b/sys/arch/i386/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.19 1997/12/17 08:54:51 downsj Exp $ */
+/* $OpenBSD: cpu.h,v 1.20 1998/02/17 23:49:31 matthieu Exp $ */
/* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */
/*-
@@ -234,7 +234,8 @@ void setconf __P((void));
#define CPU_BIOS 2 /* BIOS variables */
#define CPU_BLK2CHR 3 /* convert blk maj into chr one */
#define CPU_CHR2BLK 4 /* convert chr maj into blk one */
-#define CPU_MAXID 5 /* number of valid machdep ids */
+#define CPU_ALLOWAPERTURE 5 /* allow mmap of /dev/xf86 */
+#define CPU_MAXID 6 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
@@ -242,6 +243,7 @@ void setconf __P((void));
{ "bios", CTLTYPE_INT }, \
{ "blk2chr", CTLTYPE_STRUCT }, \
{ "chr2blk", CTLTYPE_STRUCT }, \
+ { "allowaperture", CTLTYPE_INT }, \
}
#endif /* !_I386_CPU_H_ */