20,17 → 20,12 |
DWORD result; |
BYTE bus,dv; |
|
printk(KERN_DEBUG "Initializing PCI BUS...\n"); |
printk(KERN_INFO "Initializing PCI BUS...\n"); |
|
memset(&graph_dev,0,sizeof(struct pci_dev)); |
|
/* Scan the devices connected to the PCI bus */ |
if (pci_init() == 1) { |
clear(); |
pci_show(); |
} else { |
return -1; |
} |
if (pci_init() != 1) return -1; |
|
if(pci_present()) { |
|
59,13 → 54,13 |
graph_dev.flags[i]=0x80 | (result&0xf); |
graph_dev.len[i]=len; |
graph_dev.mask[i]=t&~0xf; |
printk(KERN_INFO "region%d, base=%.8x len=%d type=%d\n",\ |
printk(KERN_INFO "region%d, base=%.8lx len=%d type=%ld\n",\ |
i, result&(~0xf), len, result&0xf); |
} |
} |
} |
|
vga_init_vsync(&graph_dev); |
//vga_init_vsync(&graph_dev); |
|
} |
|