diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-11 00:11:06 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-11 00:11:06 +0000 |
commit | cd81217034d23fa8aa970c8780709caf30d4b151 (patch) | |
tree | 8ca9db080209650ca64b8460df1d3b4f2c37aead /sys/dev/hil/hilvar.h | |
parent | 44101ba4b541339e5661d2ae9b8cffddc7defa82 (diff) |
Reliability fixes:
- Let the loop initialize completely before attempting to probe its devices.
Fixes the "no answer from device 1" problem.
- Handle ``loop unplugged'' events and force detach of all children in this
case.
Diffstat (limited to 'sys/dev/hil/hilvar.h')
-rw-r--r-- | sys/dev/hil/hilvar.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/hil/hilvar.h b/sys/dev/hil/hilvar.h index 7467899d700..9253bed0ba4 100644 --- a/sys/dev/hil/hilvar.h +++ b/sys/dev/hil/hilvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hilvar.h,v 1.7 2005/01/09 23:49:36 miod Exp $ */ +/* $OpenBSD: hilvar.h,v 1.8 2005/01/11 00:11:05 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -83,7 +83,12 @@ struct hil_softc { u_int8_t *sc_pollbp; /* pointer into sc_pollbuf */ u_int8_t *sc_cmdbp; /* pointer into sc_cmdbuf */ - int sc_cpending; /* reconfiguration in progress */ + int sc_status; /* initialization status */ +#define HIL_STATUS_BUSY 0x00 +#define HIL_STATUS_READY 0x01 + int sc_pending; /* reconfiguration events in progress */ +#define HIL_PENDING_RECONFIG 0x01 +#define HIL_PENDING_UNPLUGGED 0x02 u_int sc_maxdev; /* number of devices on loop */ struct hildev_softc *sc_devices[NHILD]; /* interrupt dispatcher */ }; |