comparison vidix/drivers/mach64_vid.c @ 9767:f6d2772efca3

Ignore disabled cards. (Jon Burgess <jburgess@uklinux.net>)
author ranma
date Mon, 31 Mar 2003 00:14:36 +0000
parents e81526dfe3d8
children afa6ebcbb50d
comparison
equal deleted inserted replaced
9766:afb1150cd5de 9767:f6d2772efca3
419 idx = find_chip(lst[i].device); 419 idx = find_chip(lst[i].device);
420 if(idx == -1 && force == PROBE_NORMAL) continue; 420 if(idx == -1 && force == PROBE_NORMAL) continue;
421 dname = pci_device_name(VENDOR_ATI,lst[i].device); 421 dname = pci_device_name(VENDOR_ATI,lst[i].device);
422 dname = dname ? dname : "Unknown chip"; 422 dname = dname ? dname : "Unknown chip";
423 printf("[mach64] Found chip: %s\n",dname); 423 printf("[mach64] Found chip: %s\n",dname);
424 if ((lst[i].command & PCI_COMMAND_IO) == 0)
425 {
426 printf("[mach64] Device is disabled, ignoring\n");
427 continue;
428 }
424 if(force > PROBE_NORMAL) 429 if(force > PROBE_NORMAL)
425 { 430 {
426 printf("[mach64] Driver was forced. Was found %sknown chip\n",idx == -1 ? "un" : ""); 431 printf("[mach64] Driver was forced. Was found %sknown chip\n",idx == -1 ? "un" : "");
427 if(idx == -1) 432 if(idx == -1)
428 printf("[mach64] Assuming it as Mach64\n"); 433 printf("[mach64] Assuming it as Mach64\n");