graphics: add EXG operator
authorAlan Cox <alan@etchedpixels.co.uk>
Sun, 25 Oct 2015 14:15:10 +0000 (14:15 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Sun, 25 Oct 2015 14:15:10 +0000 (14:15 +0000)
Kernel/include/graphics.h

index 324bec8..1e96a9b 100644 (file)
@@ -43,6 +43,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 +92,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