Add support for nvidia MCP61/65 IDE/SATA Controllers.

This commit is contained in:
xtraeme 2006-09-03 08:42:32 +00:00
parent bbdb91feca
commit fdcb59bf6d
1 changed files with 49 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: viaide.c,v 1.32 2006/08/01 20:38:50 xtraeme Exp $ */
/* $NetBSD: viaide.c,v 1.33 2006/09/03 08:42:32 xtraeme Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.32 2006/08/01 20:38:50 xtraeme Exp $");
__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.33 2006/09/03 08:42:32 xtraeme Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -185,6 +185,51 @@ static const struct pciide_product_desc pciide_nvidia_products[] = {
"NVIDIA MCP55 Serial ATA Controller",
via_sata_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP61_IDE,
0,
"NVIDIA MCP61 IDE Controller",
via_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP65_IDE,
0,
"NVIDIA MCP65 IDE Controller",
via_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP61_SATA,
0,
"NVIDIA MCP61 Serial ATA Controller",
via_sata_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP61_SATA2,
0,
"NVIDIA MCP61 Serial ATA Controller",
via_sata_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP61_SATA3,
0,
"NVIDIA MCP61 Serial ATA Controller",
via_sata_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP65_SATA,
0,
"NVIDIA MCP65 Serial ATA Controller",
via_sata_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP65_SATA2,
0,
"NVIDIA MCP65 Serial ATA Controller",
via_sata_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP65_SATA3,
0,
"NVIDIA MCP65 Serial ATA Controller",
via_sata_chip_map
},
{ PCI_PRODUCT_NVIDIA_MCP65_SATA4,
0,
"NVIDIA MCP65 Serial ATA Controller",
via_sata_chip_map
},
{ 0,
0,
NULL,
@ -386,6 +431,8 @@ unknown:
case PCI_PRODUCT_NVIDIA_NFORCE430_ATA133:
case PCI_PRODUCT_NVIDIA_MCP04_IDE:
case PCI_PRODUCT_NVIDIA_MCP55_IDE:
case PCI_PRODUCT_NVIDIA_MCP61_IDE:
case PCI_PRODUCT_NVIDIA_MCP65_IDE:
sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;
break;
}