[Mplayer-cvslog] CVS: main/vidix/drivers mga_vid.c,1.12,1.13

Nick Kurshev nick at mplayer.dev.hu
Sat Feb 2 19:28:58 CET 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv24615/main/vidix/drivers

Modified Files:
	mga_vid.c 
Log Message:
using MTRR

Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mga_vid.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- mga_vid.c	23 Jan 2002 19:34:33 -0000	1.12
+++ mga_vid.c	2 Feb 2002 18:28:55 -0000	1.13
@@ -1246,7 +1246,7 @@
 int vixInit(void)
 {
     unsigned int card_option = 0;
-
+    int err;
     printf("[mga] init\n");
 
     mga_vid_in_use = 0;
@@ -1341,7 +1341,8 @@
 
     printf("[mga] MMIO at %p, IRQ: %d, framebuffer: %p\n",
         mga_mmio_base, mga_irq, mga_mem_base);
-
+    err = mtrr_set_type(pci_info.base0,mga_ram_size*1024*1024,MTRR_TYPE_WRCOMB);
+    if(!err) printf("[mga] Set write-combining type of video memory\n");
 #ifdef MGA_ALLOW_IRQ
     if (mga_irq != -1)
     {




More information about the MPlayer-cvslog mailing list