changeset 4175:8110b321f2ca

commited due to request of nexus
author alex
date Tue, 15 Jan 2002 16:35:17 +0000
parents 4cfb6b9a6da3
children 116abdd0aed1
files vidix/drivers/nvidia_vid.c
diffstat 1 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/nvidia_vid.c	Tue Jan 15 15:59:53 2002 +0000
+++ b/vidix/drivers/nvidia_vid.c	Tue Jan 15 16:35:17 2002 +0000
@@ -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));