Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Mask out (disable) gem interrupts on detach.
details: https://anonhg.NetBSD.org/src/rev/6fa516ddf656
branches: trunk
changeset: 750701:6fa516ddf656
user: jdc <jdc%NetBSD.org@localhost>
date: Mon Jan 11 09:30:41 2010 +0000
description:
Mask out (disable) gem interrupts on detach.
diffstat:
sys/dev/ic/gem.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 60ddc0456725 -r 6fa516ddf656 sys/dev/ic/gem.c
--- a/sys/dev/ic/gem.c Mon Jan 11 09:21:39 2010 +0000
+++ b/sys/dev/ic/gem.c Mon Jan 11 09:30:41 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gem.c,v 1.90 2010/01/08 20:02:39 dyoung Exp $ */
+/* $NetBSD: gem.c,v 1.91 2010/01/11 09:30:41 jdc Exp $ */
/*
*
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.90 2010/01/08 20:02:39 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.91 2010/01/11 09:30:41 jdc Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@@ -152,6 +152,8 @@
{
int i;
struct ifnet *ifp = &sc->sc_ethercom.ec_if;
+ bus_space_tag_t t = sc->sc_bustag;
+ bus_space_handle_t h = sc->sc_h1;
/*
* Free any resources we've allocated during the attach.
@@ -161,6 +163,7 @@
case GEM_ATT_BACKEND_2:
case GEM_ATT_BACKEND_1:
case GEM_ATT_FINISHED:
+ bus_space_write_4(t, h, GEM_INTMASK, ~(uint32_t)0);
gem_stop(&sc->sc_ethercom.ec_if, 1);
#ifdef GEM_COUNTERS
Home |
Main Index |
Thread Index |
Old Index