Add support for the VIA 8235.

Submitted by: Jason Dambrosio <jason@wiz.cx>
This commit is contained in:
Søren Schmidt 2002-09-18 09:39:37 +00:00
parent cc25845767
commit cea0b8e060
2 changed files with 5 additions and 2 deletions

View File

@ -507,7 +507,7 @@ ata_dmainit(struct ata_device *atadev, int apiomode, int wdmamode, int udmamode)
case 0x74411022: /* AMD 768 */
case 0x74111022: /* AMD 766 */
case 0x74091022: /* AMD 756 */
case 0x05711106: /* VIA 82C571, 82C586, 82C596, 82C686 , 8231, 8233 */
case 0x05711106: /* VIA 82C571, 82C586, 82C596, 82C686, 8231,8233,8235 */
{
int via_modes[5][7] = {
{ 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00 }, /* VIA ATA33 */
@ -518,7 +518,8 @@ ata_dmainit(struct ata_device *atadev, int apiomode, int wdmamode, int udmamode)
int *reg_val = NULL;
char *chip = "VIA";
if (ata_find_dev(parent, 0x31471106, 0)) { /* 8233a */
if (ata_find_dev(parent, 0x31471106, 0) || /* 8233a */
ata_find_dev(parent, 0x31771106, 0)) { /* 8235 */
udmamode = imin(udmamode, 6);
reg_val = via_modes[3];
}

View File

@ -180,6 +180,8 @@ ata_pci_match(device_t dev)
return "VIA 8233 ATA100 controller";
if (ata_find_dev(dev, 0x31471106, 0))
return "VIA 8233 ATA133 controller";
if (ata_find_dev(dev, 0x31771106, 0))
return "VIA 8235 ATA133 controller";
return "VIA Apollo ATA controller";
case 0x55131039: