From 2c94c4118c28e42becd45242eccfb3dbc15e199c Mon Sep 17 00:00:00 2001 From: scottl Date: Thu, 26 Jun 2003 00:03:59 +0000 Subject: - Zero the buffers used to hold configuration data from the card. Not doing so can leave stale data in the buffer and confuse the driver. - enable the ability to set the 'disable' hint for the driver to keep it from attaching. i.e. 'hw.ips.0.disable=1' will prevent the driver from attaching. - Only detach if attach suceeded. Submitted by: mjacob --- sys/dev/ips/ips.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/ips/ips.h') diff --git a/sys/dev/ips/ips.h b/sys/dev/ips/ips.h index 888cc40..68b41e5 100644 --- a/sys/dev/ips/ips.h +++ b/sys/dev/ips/ips.h @@ -343,7 +343,8 @@ typedef struct ips_wait_list{ typedef struct ips_softc{ struct resource * iores; struct resource * irqres; - int state; + int configured; + int state; int iotype; int rid; int irqrid; -- cgit v1.1