1.\" $NetBSD: cmdide.4,v 1.4 2009/10/19 18:41:08 bouyer Exp $ 2.\" 3.\" Copyright (c) 2003 Manuel Bouyer. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22.\" INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24.\" 25.Dd December 13, 2003 26.Dt CMDIDE 4 27.Os 28.Sh NAME 29.Nm cmdide 30.Nd CMD Technology and Silicon Image IDE disk controllers driver 31.Sh SYNOPSIS 32.Cd "cmdide* at pci? dev ? function ? flags 0x0000" 33.Cd "options PCIIDE_CMD064x_DISABLE" 34.Cd "options PCIIDE_CMD0646U_ENABLEUDMA" 35.Sh DESCRIPTION 36The 37.Nm 38driver supports the CMD Technology PCI0640, PCI0643, PCI0646, PCI0648, PCI0649, 39and Silicon Image 0680 IDE controllers, and provides the interface with the 40hardware for the 41.Xr ata 4 42driver. 43.Pp 44The 0x0002 flag forces the 45.Nm 46driver to disable DMA on chipsets for which DMA would normally be 47enabled. 48This can be used as a debugging aid, or to work around 49problems where the IDE controller is wired up to the system incorrectly. 50.Sh SEE ALSO 51.Xr ata 4 , 52.Xr atapi 4 , 53.Xr intro 4 , 54.Xr pci 4 , 55.Xr pciide 4 , 56.Xr wd 4 , 57.Xr wdc 4 58.Sh BUGS 59There's no way to reliably know if a PCI064x controller is enabled or not. 60If the driver finds a PCI064x, it will assume it is enabled unless the 61PCIIDE_CMD064x_DISABLE option is specified in the kernel config file. 62This will be a problem only if the controller has been disabled in the BIOS 63and another controller has been installed and uses the ISA legacy I/O ports 64and interrupts. 65.Pp 66The PCI0646U controller is known to be buggy with Ultra-DMA transfers, so 67Ultra-DMA is disabled by default for this controller. 68To enable Ultra-DMA, use the PCIIDE_CMD0646U_ENABLEUDMA option. 69Ultra-DMA can eventually be disabled on a per-drive basis with config 70flags, see 71.Xr wd 4 . 72.Pp 73The timings used for the PIO and DMA modes for controllers listed above 74are for a PCI bus running at 30 or 33 MHz. 75This driver may not work properly on overclocked systems. 76