Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 21 Nov 2002 03:51:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 21 Nov 2002 03:51:05 -0500 Received: from smtp.laposte.net ([213.30.181.11]:49343 "EHLO smtp.laposte.net") by vger.kernel.org with ESMTP id ; Thu, 21 Nov 2002 03:51:04 -0500 Subject: [PATCH] [2.5] Via KT400 agp support (fixes 'unsupported Via chipset (device id: 3189)') From: Nicolas Mailhot To: Linus Torvalds Cc: Alan Cox , Dave Jones , linux-kernel@vger.kernel.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ptol2IH/wsCWGhJ1RB0S" Organization: Message-Id: <1037869042.5728.16.camel@ulysse.olympe.o2t> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 (1.2.0-1) Date: 21 Nov 2002 09:57:23 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2788 Lines: 89 --=-ptol2IH/wsCWGhJ1RB0S Content-Type: text/plain Content-Transfer-Encoding: quoted-printable [ Re-send with magic keywords in subject, sorry about this ] Hi, This is a tiny patch to support agp on Via KT400 hardware. It basically adds the KT400 pci ID and lists it as using Via generic setup routines. This patch has been tested with all GL xscreensaver I could find, and been reviewed by Dave Jones (full patch history at http://bugzilla.kernel.org/show_bug.cgi?id=3D14). Please apply. diff -uNr linux-2.5.47-ac6.orig/drivers/char/agp/agp.c linux-2.5.47-ac6/drivers/char/agp/agp.c --- linux-2.5.47-ac6.orig/drivers/char/agp/agp.c 2002-11-11 04:28:26.000000= 000 +0100 +++ linux-2.5.47-ac6/drivers/char/agp/agp.c 2002-11-20 22:07:32.000000000 += 0100 @@ -1150,6 +1150,14 @@ .chipset_setup =3D via_generic_setup }, { + .device_id =3D PCI_DEVICE_ID_VIA_8377_0, + .vendor_id =3D PCI_VENDOR_ID_VIA, + .chipset =3D VIA_APOLLO_KT400, + .vendor_name =3D "Via", + .chipset_name =3D "Apollo Pro KT400", + .chipset_setup =3D via_generic_setup + }, + { .device_id =3D PCI_DEVICE_ID_VIA_8653_0, .vendor_id =3D PCI_VENDOR_ID_VIA, .chipset =3D VIA_APOLLO_PRO, diff -uNr linux-2.5.47-ac6.orig/include/linux/agp_backend.h linux-2.5.47-ac= 6/include/linux/agp_backend.h --- linux-2.5.47-ac6.orig/include/linux/agp_backend.h 2002-11-11 04:28:29.0= 00000000 +0100 +++ linux-2.5.47-ac6/include/linux/agp_backend.h 2002-11-20 22:49:35.000000= 000 +0100 @@ -61,6 +61,7 @@ VIA_APOLLO_PRO, VIA_APOLLO_KX133, VIA_APOLLO_KT133, + VIA_APOLLO_KT400, SIS_GENERIC, AMD_GENERIC, AMD_IRONGATE, diff -uNr linux-2.5.47-ac6.orig/include/linux/pci_ids.h linux-2.5.47-ac6/in= clude/linux/pci_ids.h --- linux-2.5.47-ac6.orig/include/linux/pci_ids.h 2002-11-20 21:46:32.00000= 0000 +0100 +++ linux-2.5.47-ac6/include/linux/pci_ids.h 2002-11-20 22:28:37.000000000 = +0100 @@ -1039,6 +1039,7 @@ #define PCI_DEVICE_ID_VIA_8361 0x3112=20 #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 --=20 Nicolas Mailhot --=-ptol2IH/wsCWGhJ1RB0S Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA93J/yI2bVKDsp8g0RAuQpAJ4zjkplqBA99uM2gRk/xnYCeFXxVgCgql8Y 27bx6U7dE1xvVSjmoj+Bn4c= =8gzh -----END PGP SIGNATURE----- --=-ptol2IH/wsCWGhJ1RB0S-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/