diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2002-02-23 16:59:37 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2002-02-23 16:59:37 +0000 |
commit | ee312b568e9fef3b9b62ff898a0fd112a806d6ad (patch) | |
tree | 5cf4dccd958caa3ba836dd5f5937ffe15de0fc89 /sys/arch/macppc/include/cpu.h | |
parent | a87c88484403497840352aff1fcb0fa5083414d9 (diff) |
Add aperture driver support for macppc, and also place writing to /dev/pci
under the control of machdep.allowaperture.
This allows to run the X server on macppc with securelevel=1, given that
machdep.allowaperture is != 0.
OK deraadt@
Diffstat (limited to 'sys/arch/macppc/include/cpu.h')
-rw-r--r-- | sys/arch/macppc/include/cpu.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/macppc/include/cpu.h b/sys/arch/macppc/include/cpu.h index 0a1bd865f7d..f535ea93285 100644 --- a/sys/arch/macppc/include/cpu.h +++ b/sys/arch/macppc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.3 2002/01/07 05:03:23 drahn Exp $ */ +/* $OpenBSD: cpu.h,v 1.4 2002/02/23 16:59:36 matthieu Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -60,4 +60,15 @@ syncicache(void *from, int len) __asm__ __volatile__ ("isync"); } +/* + * CTL_MACHDEP definitions. + */ +#define CPU_ALLOWAPERTURE 1 /* allow mmap of /dev/xf86 */ +#define CPU_MAXID 2 /* number of valid machdep ids */ + + +#define CTL_MACHDEP_NAMES { \ + { 0, 0 }, \ + { "allowaperture", CTLTYPE_INT }, \ +} #endif /* _MACHINE_CPU_H_ */ |