]> Joshua Wise's Git repositories - netwatch.git/blobdiff - video/tnt2.c
Remove demapper from pagingstub.c, since that code is now elsewhere. Correct locatio...
[netwatch.git] / video / tnt2.c
index 32e646a407989ecd17ed35739de95d5f0502d0d4..6da661eedd7f0e888770f93e8541d57d09278f06 100644 (file)
@@ -1,9 +1,22 @@
+/* tnt2.c
+ * NVidia TNT2 driver.
+ * 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.
+ *
+ */
+
 #include <minilib.h>
 #include <io.h>
 #include <pci.h>
 #include <output.h>
 #include <fb.h>
 #include <paging.h>
 #include <minilib.h>
 #include <io.h>
 #include <pci.h>
 #include <output.h>
 #include <fb.h>
 #include <paging.h>
+#include <text.h>
+
+#include "generic.h"
 
 static void tnt2_getvmode(void *priv);
 
 
 static void tnt2_getvmode(void *priv);
 
@@ -27,12 +40,18 @@ static void tnt2_getvmode(void *priv)
                tnt2_fb.curmode.format = FB_RGB888;
                tnt2_fb.curmode.bytestride = 4;
                tnt2_fb.curmode.text = 0;
                tnt2_fb.curmode.format = FB_RGB888;
                tnt2_fb.curmode.bytestride = 4;
                tnt2_fb.curmode.text = 0;
+               tnt2_fb.checksum_rect = checksum_rect_generic32;
+               tnt2_fb.copy_pixels = copy_pixels_generic32;
                break;
        case 0:
                tnt2_fb.curmode.text = 1;
                break;
        case 0:
                tnt2_fb.curmode.text = 1;
+               tnt2_fb.checksum_rect = text_checksum;
+               tnt2_fb.copy_pixels = text_render;
                break;
        default:
                tnt2_fb.curmode.text = 1;
                break;
        default:
                tnt2_fb.curmode.text = 1;
+               tnt2_fb.checksum_rect = text_checksum;
+               tnt2_fb.copy_pixels = text_render;
                outputf("Unknown TNT2 format %x", vgard(0x28));
                break;
        }
                outputf("Unknown TNT2 format %x", vgard(0x28));
                break;
        }
This page took 0.024151 seconds and 4 git commands to generate.