]> Joshua Wise's Git repositories - netwatch.git/blobdiff - include/fb.h
More ICH2-specific code diked out.
[netwatch.git] / include / fb.h
index 9ade9e70b3bec1d441385694260edb8072408140..62524d130023d37b39979319b7fbbfdee20b81f4 100644 (file)
@@ -1,6 +1,18 @@
+/* fb.h
+ * Framebuffer definitions
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree. 
+ *
+ */
+
 #ifndef __FB_H
 #define __FB_H
 
+#include <stdint.h>
+
 struct fbdevice;
 struct vmode;
 
@@ -9,6 +21,8 @@ typedef enum {
 } format_t;
 
 typedef void (*getvmode_t)(void *);
+typedef uint32_t (*checksum_rect_t)(int x, int y, int width, int height);
+typedef void (*copy_pixels_t)(char *buf, int x, int y, int width, int height);
 
 struct vmode {
        int text:1;
@@ -18,8 +32,11 @@ struct vmode {
 
 struct fbdevice {
        unsigned char *fbaddr;
+       unsigned char *textbase;        /* A safe place to put a textfb. */
        void *priv;
        getvmode_t getvmode;
+       checksum_rect_t checksum_rect;
+       copy_pixels_t copy_pixels;
        struct vmode curmode;
 };
 
This page took 0.024145 seconds and 4 git commands to generate.