From 489bbdb168f13bfa3c0c9e42a537632034e4022e Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Wed, 27 Oct 2004 21:23:02 +0000 Subject: Handle fatal errors from firmware (imported from iwi). --- sys/dev/pci/if_ipw.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 8d5a8286e6c..f38bf7b7bfd 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $Id: if_ipw.c,v 1.13 2004/10/27 21:22:14 damien Exp $ */ +/* $Id: if_ipw.c,v 1.14 2004/10/27 21:23:01 damien Exp $ */ /*- * Copyright (c) 2004 @@ -742,6 +742,11 @@ ipw_intr(void *arg) wakeup(sc); } + if (r & (IPW_INTR_FATAL_ERROR | IPW_INTR_PARITY_ERROR)) { + printf("%s: fatal error\n", sc->sc_dev.dv_xname); + ipw_stop(&sc->sc_ic.ic_if, 1); + } + /* Acknowledge interrupts */ CSR_WRITE_4(sc, IPW_CSR_INTR, r); -- cgit v1.2.3