if_patm_intr.c (139749) | if_patm_intr.c (147256) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * SUCH DAMAGE. 26 * 27 * Author: Hartmut Brandt <harti@freebsd.org> 28 * 29 * Driver for IDT77252 based cards like ProSum's. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * SUCH DAMAGE. 26 * 27 * Author: Hartmut Brandt <harti@freebsd.org> 28 * 29 * Driver for IDT77252 based cards like ProSum's. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm_intr.c 139749 2005-01-06 01:43:34Z imp $"); | 33__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm_intr.c 147256 2005-06-10 16:49:24Z brooks $"); |
34 35#include "opt_inet.h" 36#include "opt_natm.h" 37 38#include <sys/types.h> 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> --- 72 unchanged lines hidden (view full) --- 114 const uint32_t fbqa = IDT_STAT_FBQ3A | IDT_STAT_FBQ2A | 115 IDT_STAT_FBQ1A | IDT_STAT_FBQ0A; 116 117 mtx_lock(&sc->mtx); 118 119 stat = patm_nor_read(sc, IDT_NOR_STAT); 120 patm_nor_write(sc, IDT_NOR_STAT, stat & (ints | fbqa)); 121 | 34 35#include "opt_inet.h" 36#include "opt_natm.h" 37 38#include <sys/types.h> 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> --- 72 unchanged lines hidden (view full) --- 114 const uint32_t fbqa = IDT_STAT_FBQ3A | IDT_STAT_FBQ2A | 115 IDT_STAT_FBQ1A | IDT_STAT_FBQ0A; 116 117 mtx_lock(&sc->mtx); 118 119 stat = patm_nor_read(sc, IDT_NOR_STAT); 120 patm_nor_write(sc, IDT_NOR_STAT, stat & (ints | fbqa)); 121 |
122 if (!(sc->ifatm.ifnet.if_flags & IFF_RUNNING)) { | 122 if (!(sc->ifp->if_flags & IFF_RUNNING)) { |
123 /* if we are stopped ack all interrupts and handle PHYI */ 124 if (stat & IDT_STAT_PHYI) { 125 patm_debug(sc, INTR, "PHYI (stopped)"); 126 utopia_intr(&sc->utopia); 127 } 128 mtx_unlock(&sc->mtx); 129 return; 130 } --- 423 unchanged lines hidden --- | 123 /* if we are stopped ack all interrupts and handle PHYI */ 124 if (stat & IDT_STAT_PHYI) { 125 patm_debug(sc, INTR, "PHYI (stopped)"); 126 utopia_intr(&sc->utopia); 127 } 128 mtx_unlock(&sc->mtx); 129 return; 130 } --- 423 unchanged lines hidden --- |