Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add UDMA support for VIA VX900 media system proc...
details: https://anonhg.NetBSD.org/src/rev/a365e6b290b6
branches: trunk
changeset: 778188:a365e6b290b6
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Mar 18 17:50:43 2012 +0000
description:
Add UDMA support for VIA VX900 media system processor IDE controller.
PR/46166 from Hiroshi Tokuda.
This should be pulled up to netbsd-6, since ZOTAC ZBOX nano VD01
http://www.zotacusa.com/zbox-nano-vd01.html
exhibited at NetBSD booth in Open Source Conference 2012 Tokyo Spring
was favored by many people.
diffstat:
sys/dev/pci/viaide.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 88282b8d4128 -r a365e6b290b6 sys/dev/pci/viaide.c
--- a/sys/dev/pci/viaide.c Sun Mar 18 17:30:19 2012 +0000
+++ b/sys/dev/pci/viaide.c Sun Mar 18 17:50:43 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: viaide.c,v 1.77 2011/12/28 20:28:04 phx Exp $ */
+/* $NetBSD: viaide.c,v 1.78 2012/03/18 17:50:43 tsutsui Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.77 2011/12/28 20:28:04 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.78 2012/03/18 17:50:43 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -310,6 +310,11 @@
NULL,
via_chip_map,
},
+ { PCI_PRODUCT_VIATECH_VX900_IDE,
+ 0,
+ NULL,
+ via_chip_map,
+ },
{ PCI_PRODUCT_VIATECH_VT6410_RAID,
0,
NULL,
@@ -464,6 +469,11 @@
interface = PCIIDE_INTERFACE_BUS_MASTER_DMA |
PCIIDE_INTERFACE_PCI(0) | PCIIDE_INTERFACE_PCI(1);
break;
+ case PCI_PRODUCT_VIATECH_VX900_IDE:
+ aprint_normal_dev(sc->sc_wdcdev.sc_atac.atac_dev,
+ "VIA Technologies VX900 ATA133 controller\n");
+ sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;
+ break;
default:
/*
* get a PCI tag for the ISA bridge.
Home |
Main Index |
Thread Index |
Old Index