[Mplayer-cvslog] CVS: main/vidix/drivers nvidia_vid.c,1.1,1.2

Alex Beregszaszi alex at mplayer.dev.hu
Tue Jan 15 17:35:19 CET 2002


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

Modified Files:
	nvidia_vid.c 
Log Message:
commited due to request of nexus

Index: nvidia_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/nvidia_vid.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- nvidia_vid.c	13 Jan 2002 00:26:23 -0000	1.1
+++ nvidia_vid.c	15 Jan 2002 16:35:17 -0000	1.2
@@ -18,15 +18,22 @@
 static int32_t overlay_offset = 0;
 static uint32_t ram_size = 0;
 
+#define CARD_FLAGS_NONE		0x00
+#define CARD_FLAGS_NOTSUPPORTED	0x01
+
 struct nv_card_id_s
 {
     const unsigned int id ;
     const char name[17];
+    const int core;
+    const int flags;
 };
 
 static const struct nv_card_id_s nv_card_ids[]=
 {
-    { DEVICE_NVIDIA_RIVA_TNT2_NV5, "nVidia TNT2" },
+    { DEVICE_NVIDIA_RIVA_TNT2_NV5, "nVidia TNT2 (NV5) ", 5, CARD_FLAGS_NOTSUPPORTED},
+    { DEVICE_NVIDIA_VANTA_NV6, "nVidia Vanta (NV6.1)", 6, CARD_FLAGS_NOTSUPPORTED},
+    { DEVICE_NVIDIA_VANTA_NV62, "nVidia Vanta (NV6.2)", 6, CARD_FLAGS_NOTSUPPORTED},
 };
 
 static int find_chip(unsigned int chip_id)
@@ -95,7 +102,15 @@
 		idx = find_chip(lst[i].device);
 		if (idx == -1)
 		    continue;
-		printf("Found chip: %s\n", nv_card_ids[idx].name);
+		if (nv_card_ids[idx].flags & CARD_FLAGS_NOTSUPPORTED)
+		{
+		    printf("Found chip: %s, but not supported!\n",
+			nv_card_ids[idx].name);
+		    continue;
+		}
+		else
+		
+		    printf("Found chip: %s\n", nv_card_ids[idx].name);
 		nvidia_cap.device_id = nv_card_ids[idx].id;
 		err = 0;
 		memcpy(&pci_info, &lst[i], sizeof(pciinfo_t));




More information about the MPlayer-cvslog mailing list