summaryrefslogtreecommitdiff
path: root/sys/dev/ic/p9000.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-12-27 18:54:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-12-27 18:54:05 +0000
commit29f6c52f294d873a9bf75f6c9b9230edb91230df (patch)
treea7611406adc17310f2f3e6ae0c7f559a380f4b2c /sys/dev/ic/p9000.h
parent29b4fcf82a58a5db7b26c0b17ce40da8e3176389 (diff)
Add code to change video mode (resolution and color depth) on the fly for
pnozz(4), when switching between emulation (i.e. text console) and mapped (i.e. X11) modes. Geometries different than 800x600 are only available on the external video port, with the internal panel blanked. Currently this mode is compiled in, until an interface allows the X server and the kernel to settle on which one to use. Due to the internal panel blanking requirements, all of this is only available if tctrl(4) is configured in, which is the case for GENERIC but not for installation media kernels (who runs X11 with installation media anyway?) Most of this has been written 18 months ago, it was just lacking a final touch...
Diffstat (limited to 'sys/dev/ic/p9000.h')
-rw-r--r--sys/dev/ic/p9000.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/p9000.h b/sys/dev/ic/p9000.h
index b0b4089c7ae..cfa5215be47 100644
--- a/sys/dev/ic/p9000.h
+++ b/sys/dev/ic/p9000.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: p9000.h,v 1.2 2005/04/02 23:27:25 miod Exp $ */
+/* $OpenBSD: p9000.h,v 1.3 2006/12/27 18:54:02 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
*
@@ -53,9 +53,14 @@
#define SCR_PIXEL_16BPP 0x0c000000
#define SCR_PIXEL_24BPP 0x1c000000
#define SCR_PIXEL_32BPP 0x14000000
+#define SCR_SWAP_WORDS 0x00002000
+#define SCR_SWAP_BYTES 0x00001000
+#define SCR_SWAP_BITS 0x00000800
#define SCR_READ_BUFFER_MASK 0x00000400
#define SCR_WRITE_BUFFER_MASK 0x00000200
#define SCR_ID_MASK 0x00000007
+#define SCR_SC(sc0, sc1, sc2, sc3) \
+ (((sc0) << 14) | ((sc1) << 17) | ((sc2) << 20) | ((sc3) << 29))
/* Interrupt status register */
#define P9000_INTERRUPT 0x00000008