Skip to contentSkip to conversation

2.4.18 KT400 support

PATCH In review Toplica Tanaskovic 2 participants 2 messages Feb 14, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.18 KT400 support

Here is the patch that adds complete support for Via KT400 chipsets for
2.4.18 kernel
Don't forget to update yours pci.ids, before applying this patch don't forget
to update your pci.ids to the latest version.

Signature · 2 lines
	Pozdrav, 
	Tanasković Toplica
drivers/char/agp/agpgart_be.c renamed from linux/drivers/char/agp/agpgart_be.c +6 -0
diff -ur orig/linux/drivers/char/agp/agpgart_be.c linux/drivers/char/agp/agpgart_be.c
@@ -3807,6 +3807,12 @@
 		"Via",
 		"Apollo Pro KT266",
 		via_generic_setup },
+	{ PCI_DEVICE_ID_VIA_8377_0,
+		PCI_VENDOR_ID_VIA,
+		VIA_APOLLO_KT400,
+		"Via",
+		"Apollo Pro KT400",
+		via_generic_setup },
 	{ 0,
 		PCI_VENDOR_ID_VIA,
 		VIA_GENERIC,
drivers/char/drm/drm_agpsupport.h renamed from linux/drivers/char/drm/drm_agpsupport.h +2 -0
diff -ur orig/linux/drivers/char/drm/drm_agpsupport.h linux/drivers/char/drm/drm_agpsupport.h
@@ -285,6 +285,8 @@
 			break;
 		case VIA_APOLLO_KT133:	head->chipset = "VIA Apollo KT133";
 			break;
+		case VIA_APOLLO_KT400:	head->chipset = "VIA Apollo KT400";
+			break;
 
 		case VIA_APOLLO_PRO: 	head->chipset = "VIA Apollo Pro";
 			break;
drivers/char/drm-4.0/agpsupport.c renamed from linux/drivers/char/drm-4.0/agpsupport.c +2 -0
diff -ur orig/linux/drivers/char/drm-4.0/agpsupport.c linux/drivers/char/drm-4.0/agpsupport.c
@@ -275,6 +275,8 @@
 			break;
 		case VIA_APOLLO_KT133:	head->chipset = "VIA Apollo KT133"; 
 			break;
+		case VIA_APOLLO_KT400:	head->chipset = "VIA Apollo KT400";
+			break;
 #endif
 
 		case VIA_APOLLO_PRO: 	head->chipset = "VIA Apollo Pro";
drivers/ide/via82cxxx.c renamed from linux/drivers/ide/via82cxxx.c +1 -1
diff -ur orig/linux/drivers/ide/via82cxxx.c linux/drivers/ide/via82cxxx.c
@@ -105,8 +105,8 @@
 } via_isa_bridges[] = {
 #ifdef FUTURE_BRIDGES
 	{ "vt8237",	PCI_DEVICE_ID_VIA_8237,     0x00, 0x2f, VIA_UDMA_133 },
-	{ "vt8235",	PCI_DEVICE_ID_VIA_8235,     0x00, 0x2f, VIA_UDMA_133 },
 #endif
+	{ "vt8235",	PCI_DEVICE_ID_VIA_8235,     0x00, 0x2f, VIA_UDMA_133 },
 	{ "vt8233a",	PCI_DEVICE_ID_VIA_8233A,    0x00, 0x2f, VIA_UDMA_133 },
 	{ "vt8233c",	PCI_DEVICE_ID_VIA_8233C_0,  0x00, 0x2f, VIA_UDMA_100 },
 	{ "vt8233",	PCI_DEVICE_ID_VIA_8233_0,   0x00, 0x2f, VIA_UDMA_100 },
include/linux/agp_backend.h renamed from linux/include/linux/agp_backend.h +1 -0
diff -ur orig/linux/include/linux/agp_backend.h linux/include/linux/agp_backend.h
@@ -59,6 +59,7 @@
 	VIA_APOLLO_PRO,
 	VIA_APOLLO_KX133,
 	VIA_APOLLO_KT133,
+	VIA_APOLLO_KT400,
 	SIS_GENERIC,
 	AMD_GENERIC,
 	AMD_IRONGATE,
include/linux/pci_ids.h renamed from linux/include/linux/pci_ids.h +2 -0
diff -ur orig/linux/include/linux/pci_ids.h linux/include/linux/pci_ids.h
@@ -963,6 +963,8 @@
 #define PCI_DEVICE_ID_VIA_8233C_0	0x3109
 #define PCI_DEVICE_ID_VIA_8361		0x3112
 #define PCI_DEVICE_ID_VIA_8233A		0x3147
+#define PCI_DEVICE_ID_VIA_8235		0x3177
+#define PCI_DEVICE_ID_VIA_8377_0	0x3189
 #define PCI_DEVICE_ID_VIA_86C100A	0x6100
 #define PCI_DEVICE_ID_VIA_8231		0x8231
 #define PCI_DEVICE_ID_VIA_8231_4	0x8235

Only in linux/include/linux: ~

#1 lore raw
Quoted 2 lines · Toplica Tanaskovic

Here is the patch that adds complete support for Via KT400 chipsets for
2.4.18 kernel

Not complete. This will only work if you have an AGP2.0 card. There is no code here to setup the bridge in AGP3.0 mode, or handling what happens when it sees a x8 card. Fully working code is present in 2.5.60-bk if you have time to backport it (hint: I don't right now)

Quoted 2 lines

Don't forget to update yours pci.ids, before applying this patch don't forget
to update your pci.ids to the latest version.

Has no relevance to the patch. pci.ids is only used by pciutils, and should not affect behaviour of this agp/ide patch.

Also..

drivers/char/agp/agpgart_be.c line 3813

Quoted 4 lines
drivers/char/agp/agpgart_be.c renamed from linux/drivers/char/agp/agpgart_be.c +4 -0
+	{ PCI_DEVICE_ID_VIA_8377_0,
+		PCI_VENDOR_ID_VIA,
+		VIA_APOLLO_KT400,
+		"Via",

Should be capitalised 'VIA'.

drivers/ide/via82cxxx.c line 109

Quoted 9 lines
drivers/ide/via82cxxx.c renamed from linux/drivers/ide/via82cxxx.c +1 -1
@@ -105,8 +105,8 @@
 } via_isa_bridges[] = {
 #ifdef FUTURE_BRIDGES
 	{ "vt8237",	PCI_DEVICE_ID_VIA_8237,     0x00, 0x2f, VIA_UDMA_133 },
-	{ "vt8235",	PCI_DEVICE_ID_VIA_8235,     0x00, 0x2f, VIA_UDMA_133 },
 #endif
+	{ "vt8235",	PCI_DEVICE_ID_VIA_8235,     0x00, 0x2f, VIA_UDMA_133 },

Already in 2.4-bk

Dave

Signature · 2 lines
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs