|
发表于 2005-1-5 12:33:48
|
显示全部楼层
tmacd-machine:/lib/modules/2.6.10# modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.10/misc/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)问题,要打个patch。
root@4[fglrx-4.3.0-3.14.6]# cat agpgart_be.patch
--- agpgart_be.c 2004-08-21 17:25:05.000000000 +0200
+++ agpgart_be.c_ 2004-10-23 19:15:33.000000000 +0200
@@ -718,7 +718,7 @@
* AGP devices and collect their data.
*/
- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,
+ while ((device = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8,
device)) != NULL) {
pci_read_config_dword(device, 0x04, &scratch);
@@ -839,7 +839,7 @@
* command registers.
*/
- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,
+ while ((device = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8,
device)) != NULL) {
pci_read_config_dword(device, 0x04, &scratch);
@@ -5068,7 +5068,7 @@
* AGP devices and collect their data.
*/
- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,
+ while ((device = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8,
device)) != NULL) {
pci_read_config_dword(device, 0x04, &scratch);
@@ -5166,7 +5166,7 @@
* command registers.
*/
- while ((device = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8,
+ while ((device = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8,
device)) != NULL) {
pci_read_config_dword(device, 0x04, &scratch);
@@ -6418,7 +6418,7 @@
struct pci_dev *dev = NULL;
// locate host bridge device
- if ((dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) == NULL)
+ if ((dev = pci_get_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) == NULL)
return -ENODEV;
agp_bridge.dev = dev;
@@ -6935,7 +6935,7 @@
&agp_bridge.mode);
return hp_zx1_setup(dev);
}
- dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, dev);
+ dev = pci_get_class(PCI_CLASS_BRIDGE_HOST << 8, dev);
} while (dev);
return -ENODEV;
} |
|