diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-05-03 02:18:48 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-05-03 02:18:48 +0000 |
commit | 69a8411c717e29b6c4375c6fc8f818863b775731 (patch) | |
tree | 823a0efbfa311b79b46de0da17a977936d9d9e07 /sys/dev/ic/wdcvar.h | |
parent | 4bbcc3640461b1f0310b36781dc58a9948d00432 (diff) |
Provide a function pointer that allows for the wdc reset
method to be changed as required.
This will be required for dealing with several chips in pciide.
Diffstat (limited to 'sys/dev/ic/wdcvar.h')
-rw-r--r-- | sys/dev/ic/wdcvar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/wdcvar.h b/sys/dev/ic/wdcvar.h index 9b8d4ef6fbb..4f2ae1227d4 100644 --- a/sys/dev/ic/wdcvar.h +++ b/sys/dev/ic/wdcvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wdcvar.h,v 1.38 2006/02/10 21:45:41 kettenis Exp $ */ +/* $OpenBSD: wdcvar.h,v 1.39 2006/05/03 02:18:47 jsg Exp $ */ /* $NetBSD: wdcvar.h,v 1.17 1999/04/11 20:50:29 bouyer Exp $ */ /*- @@ -209,6 +209,8 @@ struct wdc_softc { /* Per controller state */ /* if WDC_CAPABILITY_IRQACK set in 'cap' */ void (*irqack)(struct channel_softc *); + void (*reset)(struct channel_softc *); + /* Driver callback to probe for drives */ void (*drv_probe)(struct channel_softc *); }; @@ -287,6 +289,7 @@ void wdccommandext(struct channel_softc *, u_int8_t, u_int8_t, u_int64_t, u_int16_t); void wdccommandshort(struct channel_softc *, int, int); void wdctimeout(void *arg); +void wdc_do_reset(struct channel_softc *); int wdc_addref(struct channel_softc *); void wdc_delref(struct channel_softc *); |