Deleted Added
full compact
emu10kx.c (172150) emu10kx.c (172568)
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * Copyright (c) 2003-2007 Yuriy Tsibizov <yuriy.tsibizov@gfk.ru>
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:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHERIN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * Copyright (c) 2003-2007 Yuriy Tsibizov <yuriy.tsibizov@gfk.ru>
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:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHERIN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/sound/pci/emu10kx.c 172150 2007-09-12 07:43:43Z ariff $
27 * $FreeBSD: head/sys/dev/sound/pci/emu10kx.c 172568 2007-10-12 06:03:46Z kevlo $
28 */
29
30#include <sys/param.h>
31#include <sys/types.h>
32#include <sys/bus.h>
33#include <machine/bus.h>
34#include <sys/rman.h>
35#include <sys/systm.h>

--- 909 unchanged lines hidden (view full) ---

945 x = emu_rd(sc, INTE, 4);
946 x &= ~sc->ihandler[hnumber].inte_mask;
947
948 sc->ihandler[hnumber].inte_mask = 0;
949 sc->ihandler[hnumber].intr_mask = 0;
950 sc->ihandler[hnumber].softc = NULL;
951 sc->ihandler[hnumber].irq_func = NULL;
952
28 */
29
30#include <sys/param.h>
31#include <sys/types.h>
32#include <sys/bus.h>
33#include <machine/bus.h>
34#include <sys/rman.h>
35#include <sys/systm.h>

--- 909 unchanged lines hidden (view full) ---

945 x = emu_rd(sc, INTE, 4);
946 x &= ~sc->ihandler[hnumber].inte_mask;
947
948 sc->ihandler[hnumber].inte_mask = 0;
949 sc->ihandler[hnumber].intr_mask = 0;
950 sc->ihandler[hnumber].softc = NULL;
951 sc->ihandler[hnumber].irq_func = NULL;
952
953 /* other interupt handlers may use this INTE value */
953 /* other interrupt handlers may use this INTE value */
954 for (i = 0; i < EMU_MAX_IRQ_CONSUMERS; i++)
955 if (sc->ihandler[i].inte_mask != 0)
956 x |= sc->ihandler[i].inte_mask;
957
958 emu_wr(sc, INTE, x, 4);
959
960 mtx_unlock(&sc->lock);
961 return (hnumber);

--- 2599 unchanged lines hidden ---
954 for (i = 0; i < EMU_MAX_IRQ_CONSUMERS; i++)
955 if (sc->ihandler[i].inte_mask != 0)
956 x |= sc->ihandler[i].inte_mask;
957
958 emu_wr(sc, INTE, x, 4);
959
960 mtx_unlock(&sc->lock);
961 return (hnumber);

--- 2599 unchanged lines hidden ---