From: maciek n <mac...@wp...> - 2001-07-26 10:51:09
|
Please find small patch to linux-2.4.7 agpgart/drm and to XFree-4.1.0 drm/kernel for very popular and powerfull VIA VT82C694X chipset ( Intel PIII/CII PC133 ). Until now it was not directly supported by agpgart/drm in kernel and for operation need ugly agp_try_unsupported=1 into modules.conf Maciek If you have any questions to me please add cc: to mac...@wp... because I'am not subscribed to this list --- linux-2.4.7-VIA694X-patch ------------------------- diff -u --recursive --new-file linux-2.4.7- orig/drivers/char/agp/agp.h linux/drivers/char/agp/agp.h --- linux-2.4.7-orig/drivers/char/agp/agp.h Tue Jul 3 00:27:56 2001 +++ linux/drivers/char/agp/agp.h Wed Jul 25 21:49:03 2001 @@ -160,6 +160,9 @@ #ifndef PCI_DEVICE_ID_VIA_8363_0 #define PCI_DEVICE_ID_VIA_8363_0 0x0305 #endif +#ifndef PCI_DEVICE_ID_VIA_82C694X_0 +#define PCI_DEVICE_ID_VIA_82C694X_0 0x0605 +#endif #ifndef PCI_DEVICE_ID_INTEL_810_0 #define PCI_DEVICE_ID_INTEL_810_0 0x7120 #endif diff -u --recursive --new-file linux-2.4.7- orig/drivers/char/agp/agpgart_be.c linux/drivers/char/agp/agpgart_be.c --- linux-2.4.7-orig/drivers/char/agp/agpgart_be.c Tue Jul 3 00:27:56 2001 +++ linux/drivers/char/agp/agpgart_be.c Wed Jul 25 22:07:49 2001 @@ -507,6 +507,7 @@ if (cap_ptr != 0x00) pci_write_config_dword(device, cap_ptr + 8, command); } + printk (KERN_INFO PFX "AGP mode is %ldx\n", command & 7); } static int agp_generic_create_gatt_table(void) @@ -3022,6 +3023,12 @@ VIA_APOLLO_KT133, "Via", "Apollo Pro KT133", + via_generic_setup }, + { PCI_DEVICE_ID_VIA_82C694X_0, + PCI_VENDOR_ID_VIA, + VIA_APOLLO_PRO133A, + "Via", + "Apollo Pro 133A", via_generic_setup }, { 0, PCI_VENDOR_ID_VIA, diff -u --recursive --new-file linux-2.4.7- orig/drivers/char/drm/agpsupport.c linux/drivers/char/drm/agpsupport.c --- linux-2.4.7-orig/drivers/char/drm/agpsupport.c Tue Jul 3 00:27:56 2001 +++ linux/drivers/char/drm/agpsupport.c Wed Jul 25 22:19:21 2001 @@ -275,6 +275,8 @@ break; case VIA_APOLLO_KT133: head->chipset = "VIA Apollo KT133"; break; + case VIA_APOLLO_PRO133A:head->chipset = "VIA Apollo Pro 133A"; + break; #endif case VIA_APOLLO_PRO: head->chipset = "VIA Apollo Pro"; diff -u --recursive --new-file linux-2.4.7- orig/include/linux/agp_backend.h linux/include/linux/agp_backend.h --- linux-2.4.7-orig/include/linux/agp_backend.h Tue Jul 3 00:27:56 2001 +++ linux/include/linux/agp_backend.h Wed Jul 25 22:15:01 2001 @@ -55,6 +55,7 @@ VIA_APOLLO_PRO, VIA_APOLLO_KX133, VIA_APOLLO_KT133, + VIA_APOLLO_PRO133A, SIS_GENERIC, AMD_GENERIC, AMD_IRONGATE, --- XFree86-4.1.0-DRM-VIA694X-patch -------------------------------- diff -u /tmp/dri/xc/programs/Xserver/hw/xfree86/os- support/linux/drm/kernel/drm_agpsupport.h xc/programs/Xserver/hw/xfree86/os- support/linux/drm/kernel/drm_agpsupport.h --- /tmp/dri/xc/programs/Xserver/hw/xfree86/os- support/linux/drm/kernel/drm_agpsupport.h Tue Apr 10 18:08:04 2001 +++ xc/programs/Xserver/hw/xfree86/os- support/linux/drm/kernel/drm_agpsupport.h Tue Jul 24 23:15:13 2001 @@ -285,6 +285,8 @@ break; case VIA_APOLLO_KT133: head->chipset = "VIA Apollo KT133"; break; + case VIA_APOLLO_PRO133A:head->chipset = "VIA Apollo Pro133A"; + break; #endif case VIA_APOLLO_PRO: head->chipset = "VIA Apollo Pro"; ----------------------------------------------------------------------- Nie stój w kolejce do pieniędzy! Sprawdź nową ofertę w Pasażu Finansowym. Kliknij! < http://pasazfin.wp.pl/pasaz/pasaz_bankowy.html?param=inteligo/inteligo_glowna_p.html > |