From 0caecb585f57a0c1861bd83a5ca6d6d5c44999d6 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 1 Nov 2015 21:25:37 +0000 Subject: [PATCH] graphics: minor updates to headers --- Kernel/include/graphics.h | 1 + Library/include/sys/graphics.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Kernel/include/graphics.h b/Kernel/include/graphics.h index 1e96a9b4..c934198f 100644 --- a/Kernel/include/graphics.h +++ b/Kernel/include/graphics.h @@ -13,6 +13,7 @@ struct display { #define FMT_COLOUR4 2 #define FMT_COLOUR16 3 #define FMT_TEXT 4 /* Text only mode */ +#define FMT_MONO_WB_TILE8 5 /* White on black 8x8 tiled (Amstrad PCW etc) */ /* Those sufficiently funky */ #define FMT_SPECTRUM 128 #define FMT_VDP 129 /* VDP graphics engines */ diff --git a/Library/include/sys/graphics.h b/Library/include/sys/graphics.h index 33b594fc..27c6d588 100644 --- a/Library/include/sys/graphics.h +++ b/Library/include/sys/graphics.h @@ -13,6 +13,7 @@ struct display { #define FMT_COLOUR4 2 #define FMT_COLOUR16 3 #define FMT_TEXT 4 /* Text only mode */ +#define FMT_MONO_WB_TILE8 5 /* White on black 8x8 tiled (Amstrad PCW etc) */ /* Those sufficiently funky */ #define FMT_SPECTRUM 128 #define FMT_VDP 129 /* VDP graphics engines */ @@ -43,6 +44,7 @@ struct display { to run the command on */ #define GFX_WRITE 256 /* Supports writing a buffer */ #define GFX_AWRITE 512 /* Supports writing an attribute buffer */ +#define GFX_EXG 1024 /* Simultaenous GFX_READ/GFX_WRITE to swap */ /* We may want to add some hardware ones as we hit machines that have them */ }; @@ -91,4 +93,5 @@ struct videomap { #define GFXIOC_SETMODE 0x0312 /* Set video mode */ #define GFXIOC_WRITE 0x0313 /* Write to screen direct */ #define GFXIOC_AWRITE 0x0314 /* Write to attributes direct */ +#define GFXIOC_EXG 0x0315 /* Exchange a block */ #endif -- 2.34.1