[142] | 1 | /* $Id: irqmgr.h 142 2000-04-23 14:55:46Z ktk $ */
|
---|
| 2 |
|
---|
| 3 | /*
|
---|
| 4 | **********************************************************************
|
---|
| 5 | * irq.h
|
---|
| 6 | * Copyright 1999, 2000 Creative Labs, Inc.
|
---|
| 7 | *
|
---|
| 8 | **********************************************************************
|
---|
| 9 | *
|
---|
| 10 | * Date Author Summary of changes
|
---|
| 11 | * ---- ------ ------------------
|
---|
| 12 | * October 20, 1999 Bertrand Lee base code release
|
---|
| 13 | *
|
---|
| 14 | **********************************************************************
|
---|
| 15 | *
|
---|
| 16 | * This program is free software; you can redistribute it and/or
|
---|
| 17 | * modify it under the terms of the GNU General Public License as
|
---|
| 18 | * published by the Free Software Foundation; either version 2 of
|
---|
| 19 | * the License, or (at your option) any later version.
|
---|
| 20 | *
|
---|
| 21 | * This program is distributed in the hope that it will be useful,
|
---|
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 24 | * GNU General Public License for more details.
|
---|
| 25 | *
|
---|
| 26 | * You should have received a copy of the GNU General Public
|
---|
| 27 | * License along with this program; if not, write to the Free
|
---|
| 28 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
| 29 | * USA.
|
---|
| 30 | *
|
---|
| 31 | **********************************************************************
|
---|
| 32 | */
|
---|
| 33 |
|
---|
| 34 | #ifndef _IRQ_H
|
---|
| 35 | #define _IRQ_H
|
---|
| 36 |
|
---|
| 37 | /* EMU Irq Types */
|
---|
| 38 | #define IRQTYPE_PCIBUSERROR IPR_PCIERROR
|
---|
| 39 | #define IRQTYPE_MIXERBUTTON (IPR_VOLINCR | IPR_VOLDECR | IPR_MUTE)
|
---|
| 40 | #define IRQTYPE_VOICE (IPR_CHANNELLOOP | IPR_CHANNELNUMBERMASK)
|
---|
| 41 | #define IRQTYPE_RECORD (IPR_ADCBUFFULL | IPR_ADCBUFHALFFULL | IPR_MICBUFFULL | IPR_MICBUFHALFFULL | IPR_EFXBUFFULL | IPR_EFXBUFHALFFULL)
|
---|
| 42 | #define IRQTYPE_MPUOUT IPR_MIDITRANSBUFEMPTY
|
---|
| 43 | #define IRQTYPE_MPUIN IPR_MIDIRECVBUFEMPTY
|
---|
| 44 | #define IRQTYPE_TIMER IPR_INTERVALTIMER
|
---|
| 45 | #define IRQTYPE_SPDIF (IPR_GPSPDIFSTATUSCHANGE | IPR_CDROMSTATUSCHANGE)
|
---|
| 46 | #define IRQTYPE_DSP IPR_FXDSP
|
---|
| 47 |
|
---|
| 48 | struct emu10k1_wavedevice
|
---|
| 49 | {
|
---|
| 50 | struct emu10k1_card *card;
|
---|
| 51 | struct wiinst *wiinst;
|
---|
| 52 | struct woinst *woinst;
|
---|
| 53 | u16 enablebits;
|
---|
| 54 | };
|
---|
| 55 |
|
---|
| 56 | void emu10k1_timer_irqhandler(struct emu10k1_card *);
|
---|
| 57 |
|
---|
| 58 | int emu10k1_irq_enable(struct emu10k1_card *, u32);
|
---|
| 59 | int emu10k1_irq_disable(struct emu10k1_card *, u32);
|
---|
| 60 |
|
---|
| 61 | #endif /* _IRQ_H */
|
---|