diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-22 19:40:55 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-22 19:40:55 +0000 |
commit | f50e21120b8ebbdbc501c5e983d375c333c12d85 (patch) | |
tree | a75835a7ba5ec68d265b3a10c6df55a3c4342185 /sys/arch/mac68k/dev/macfbvar.h | |
parent | 1f158e584073b8dec2d5cba982d36d6d024fd0fc (diff) |
Colormap support for DAFB frame buffers (using information from Linux).
However, color can not be enabled in emulation mode if the display is the
console at this point, but 8bpp X11 works.
Diffstat (limited to 'sys/arch/mac68k/dev/macfbvar.h')
-rw-r--r-- | sys/arch/mac68k/dev/macfbvar.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/mac68k/dev/macfbvar.h b/sys/arch/mac68k/dev/macfbvar.h index 6a83cb31f87..9641ed3a52a 100644 --- a/sys/arch/mac68k/dev/macfbvar.h +++ b/sys/arch/mac68k/dev/macfbvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: macfbvar.h,v 1.4 2006/01/10 21:19:14 miod Exp $ */ +/* $OpenBSD: macfbvar.h,v 1.5 2006/01/22 19:40:54 miod Exp $ */ /* $NetBSD: macfbvar.h,v 1.3 2005/01/15 16:00:59 chs Exp $ */ /* $NetBSD: grfvar.h,v 1.11 1996/08/04 06:03:58 scottr Exp $ */ /* $NetBSD: grfioctl.h,v 1.5 1995/07/02 05:26:45 briggs Exp $ */ @@ -103,6 +103,7 @@ struct macfb_devconfig { vaddr_t dc_vaddr; /* memory space virtual base address */ paddr_t dc_paddr; /* memory space physical base address */ psize_t dc_size; /* size of slot memory */ + vaddr_t dc_cmapregs; /* va of cmap registers if known */ int dc_offset; /* offset to base of flat fb */ @@ -114,6 +115,10 @@ struct macfb_devconfig { /* rasops information */ struct rasops_info dc_ri; + /* shadow colormap */ + u_int8_t dc_cmap[256 * 3]; + void (*dc_setcolor)(void *, u_int, u_int); + /* wsdisplay information */ struct wsscreen_descr wsd; int nscreens; |