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