Update the list of controller capabilities, and document the one I added

(WDC_CAPABILITY_NOIRQ).
This commit is contained in:
bjh21 2002-08-14 12:30:22 +00:00
parent 2eded71179
commit 96d74ccf91
1 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: wdc.9,v 1.9 2002/02/13 08:18:57 ross Exp $ .\" $NetBSD: wdc.9,v 1.10 2002/08/14 12:30:22 bjh21 Exp $
.\" .\"
.\" Copyright (c) 1998 Manuel Bouyer. .\" Copyright (c) 1998 Manuel Bouyer.
.\" .\"
@ -81,6 +81,11 @@ struct wdc_softc { /* Per controller state */
#define WDC_CAPABILITY_ATA_NOSTREAM 0x0040 #define WDC_CAPABILITY_ATA_NOSTREAM 0x0040
#define WDC_CAPABILITY_ATAPI_NOSTREAM 0x0080 #define WDC_CAPABILITY_ATAPI_NOSTREAM 0x0080
#define WDC_CAPABILITY_NO_EXTRA_RESETS 0x0100 #define WDC_CAPABILITY_NO_EXTRA_RESETS 0x0100
#define WDC_CAPABILITY_PREATA 0x0200
#define WDC_CAPABILITY_IRQACK 0x0400
#define WDC_CAPABILITY_SINGLE_DRIVE 0x0800
#define WDC_CAPABILITY_NOIRQ 0x1000
#define WDC_CAPABILITY_SELECT 0x2000
u_int8_t pio_mode; u_int8_t pio_mode;
u_int8_t dma_mode; u_int8_t dma_mode;
int nchannels; int nchannels;
@ -276,6 +281,10 @@ avoid the controller reset at the end of the disks probe.
This reset is needed for some controllers, but causes problems with some This reset is needed for some controllers, but causes problems with some
others. others.
.Pp .Pp
.Va WDC_CAPABILITY_NOIRQ
tells the driver that this controller doesn't have its interrupt lines
wired up usefully, so it should always use polled transfers.
.Pp
The bus front-end needs to fill in the following The bus front-end needs to fill in the following
elements of elements of
.Va channel_softc : .Va channel_softc :