2004-06-30 03:37:17

by augustus

[permalink] [raw]
Subject: [PATCH] K8T800Pro AGP Support

Patch to add support for the K8T800Pro chip in the AGPGART driver for
amd64-agp.

Signed-off-by: Kris Kersey <[email protected]>

Let me know if there are any problems. Please reply to sender on this
one.

Kris Kersey (Augustus)
LinuxHardware.org Site Manager
[email protected]
Gentoo Linux AMD64 Developer
[email protected]

diff -uprN linux-2.6.7/drivers/char/agp/amd64-agp.c linux-2.6.7-K8T800Pro/drivers/char/agp/amd64-agp.c
--- linux-2.6.7/drivers/char/agp/amd64-agp.c 2004-06-21 00:01:41.000000000 -0400
+++ linux-2.6.7-K8T800Pro/drivers/char/agp/amd64-agp.c 2004-06-29 23:27:02.474431400 -0400
@@ -536,6 +536,15 @@ static struct pci_device_id agp_amd64_pc
.subvendor = PCI_ANY_ID,
.subdevice = PCI_ANY_ID,
},
+ /* VIA K8T800Pro */
+ {
+ .class = (PCI_CLASS_BRIDGE_HOST << 8),
+ .class_mask = ~0,
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_K8T800PRO_0,
+ .subvendor = PCI_ANY_ID,
+ .subdevice = PCI_ANY_ID,
+ },
/* VIA K8T800 */
{
.class = (PCI_CLASS_BRIDGE_HOST << 8),
diff -uprN linux-2.6.7/include/linux/pci_ids.h linux-2.6.7-K8T800Pro/include/linux/pci_ids.h
--- linux-2.6.7/include/linux/pci_ids.h 2004-06-21 00:01:41.000000000 -0400
+++ linux-2.6.7-K8T800Pro/include/linux/pci_ids.h 2004-06-29 23:27:02.475431248 -0400
@@ -1174,6 +1174,7 @@
#define PCI_DEVICE_ID_VIA_8763_0 0x0198
#define PCI_DEVICE_ID_VIA_8380_0 0x0204
#define PCI_DEVICE_ID_VIA_PX8X0_0 0x0259
+#define PCI_DEVICE_ID_VIA_K8T800PRO_0 0x0282
#define PCI_DEVICE_ID_VIA_8363_0 0x0305
#define PCI_DEVICE_ID_VIA_8371_0 0x0391
#define PCI_DEVICE_ID_VIA_8501_0 0x0501


2004-06-30 15:37:16

by Dave Jones

[permalink] [raw]
Subject: Re: [PATCH] K8T800Pro AGP Support

On Tue, Jun 29, 2004 at 11:38:54PM -0400, [email protected] wrote:
> Patch to add support for the K8T800Pro chip in the AGPGART driver for
> amd64-agp.
>
> Signed-off-by: Kris Kersey <[email protected]>

Applied, thanks.

> +#define PCI_DEVICE_ID_VIA_K8T800PRO_0 0x0282
> #define PCI_DEVICE_ID_VIA_8363_0 0x0305
> #define PCI_DEVICE_ID_VIA_8371_0 0x0391
> #define PCI_DEVICE_ID_VIA_8501_0 0x0501

Although normally, it's preferred to use the chip number instead
of its marketing name. A quick google didn't actually turn up
its number though, so for the time being, I'll leave it like this.

Dave

2004-06-30 15:43:15

by augustus

[permalink] [raw]
Subject: Re: [PATCH] K8T800Pro AGP Support

Thanks. I noticed that the model numbers are prefered but I ran into the
same road block you did. If I find out what it is, I'll let you know.

Kris Kersey (Augustus)
LinuxHardware.org Site Manager
[email protected]
Gentoo Linux AMD64 Developer
[email protected]

On Wed, 30 Jun 2004, Dave Jones wrote:

> On Tue, Jun 29, 2004 at 11:38:54PM -0400, [email protected] wrote:
> > Patch to add support for the K8T800Pro chip in the AGPGART driver for
> > amd64-agp.
> >
> > Signed-off-by: Kris Kersey <[email protected]>
>
> Applied, thanks.
>
> > +#define PCI_DEVICE_ID_VIA_K8T800PRO_0 0x0282
> > #define PCI_DEVICE_ID_VIA_8363_0 0x0305
> > #define PCI_DEVICE_ID_VIA_8371_0 0x0391
> > #define PCI_DEVICE_ID_VIA_8501_0 0x0501
>
> Although normally, it's preferred to use the chip number instead
> of its marketing name. A quick google didn't actually turn up
> its number though, so for the time being, I'll leave it like this.
>
> Dave
>