summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_tl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_tl.c')
-rw-r--r--sys/pci/if_tl.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c
index 00e1e0a..c6d2369 100644
--- a/sys/pci/if_tl.c
+++ b/sys/pci/if_tl.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_tl.c,v 1.28 1998/09/18 05:22:57 wpaul Exp $
+ * $Id: if_tl.c,v 1.30 1998/09/24 16:26:02 wpaul Exp $
*/
/*
@@ -211,7 +211,7 @@
#ifndef lint
static char rcsid[] =
- "$Id: if_tl.c,v 1.28 1998/09/18 05:22:57 wpaul Exp $";
+ "$Id: if_tl.c,v 1.30 1998/09/24 16:26:02 wpaul Exp $";
#endif
#ifdef TL_DEBUG
@@ -1750,6 +1750,15 @@ tl_attach(config_id, unit)
goto fail;
}
+ tl_intvec_adchk((void *)sc, 0);
+ tl_stop(sc);
+
+ /*
+ * Attempt to clear any stray interrupts
+ * that may be lurking.
+ */
+ tl_intr((void *)sc);
+
/*
* Call MI attach routines.
*/
@@ -2111,7 +2120,8 @@ static int tl_intvec_adchk(xsc, type)
sc = xsc;
- printf("tl%d: adapter check: %x\n", sc->tl_unit,
+ if (type)
+ printf("tl%d: adapter check: %x\n", sc->tl_unit,
CSR_READ_4(sc, TL_CH_PARM));
#ifdef TL_DEBUG
evshow(sc);
OpenPOWER on IntegriCloud