1.\" $OpenBSD: wd.4,v 1.13 2007/05/31 19:19:53 jmc Exp $ 2.\" $NetBSD: wd.4,v 1.4 1999/04/25 00:00:05 mjl Exp $ 3.\" 4.\" Copyright (c) 1994 James A. Jegers 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. The name of the author may not be used to endorse or promote products 13.\" derived from this software without specific prior written permission 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25.\" 26.Dd $Mdocdate: May 31 2007 $ 27.Dt WD 4 28.Os 29.Sh NAME 30.Nm wd 31.Nd WD100x compatible hard disk driver 32.Sh SYNOPSIS 33.Cd "wd* at wdc? flags 0x0000" 34.Cd "wd* at pciide? flags 0x0000" 35.Sh DESCRIPTION 36The 37.Nm 38driver supports hard disks which emulate the Western Digital WD100x. 39This includes standard MFM, RLL, ESDI, IDE, and EIDE drives, as well as 40Serial ATA drives, and PCMCIA/CF storage media. 41.Pp 42The 43.Cm flags 44are used only with controllers that support DMA operations and 45mode settings (like some 46.Xr pciide 4 47controllers). 48The lowest order (rightmost) nibble of the 49.Cm flags 50define the PIO mode to use. 51The next four bits indicate the DMA mode and the third nibble the UltraDMA 52mode. 53.Pp 54For each set of four bits, the 3 lower bits define the mode to use 55and the last bit must be set to 1 for this setting to be used. 56For DMA and UltraDMA, 0xf (1111) means 57.Dq disable . 58For example, a 59.Cm flags 60value of 0x0fac (1111 1010 1100) 61means 62.Do 63use PIO mode 4, DMA mode 2, disable UltraDMA 64.Dc . 65The special setting 0x0000 means 66.Dq use whatever the drive claims to support . 67.Sh SEE ALSO 68.Xr intro 4 , 69.Xr pciide 4 , 70.Xr scsi 4 , 71.Xr wdc 4 , 72.Xr disklabel 5 , 73.Xr atactl 8 , 74.Xr disklabel 8 , 75.Xr fdisk 8 76