Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 1 | /* |
| 2 | interrupt handling |
| 3 | Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> |
| 4 | Copyright (C) 2004 Chris Kennedy <c@groovy.org> |
| 5 | Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> |
| 6 | |
| 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 2 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
| 19 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 | */ |
| 21 | |
Hans Verkuil | 612570f | 2007-08-23 05:42:59 -0300 | [diff] [blame] | 22 | #ifndef IVTV_IRQ_H |
| 23 | #define IVTV_IRQ_H |
| 24 | |
Hans Verkuil | 33c0fca | 2007-08-23 06:32:46 -0300 | [diff] [blame] | 25 | #define IVTV_IRQ_ENC_START_CAP (0x1 << 31) |
| 26 | #define IVTV_IRQ_ENC_EOS (0x1 << 30) |
| 27 | #define IVTV_IRQ_ENC_VBI_CAP (0x1 << 29) |
| 28 | #define IVTV_IRQ_ENC_VIM_RST (0x1 << 28) |
| 29 | #define IVTV_IRQ_ENC_DMA_COMPLETE (0x1 << 27) |
| 30 | #define IVTV_IRQ_ENC_PIO_COMPLETE (0x1 << 25) |
| 31 | #define IVTV_IRQ_DEC_AUD_MODE_CHG (0x1 << 24) |
| 32 | #define IVTV_IRQ_DEC_DATA_REQ (0x1 << 22) |
| 33 | #define IVTV_IRQ_DEC_DMA_COMPLETE (0x1 << 20) |
| 34 | #define IVTV_IRQ_DEC_VBI_RE_INSERT (0x1 << 19) |
| 35 | #define IVTV_IRQ_DMA_ERR (0x1 << 18) |
| 36 | #define IVTV_IRQ_DMA_WRITE (0x1 << 17) |
| 37 | #define IVTV_IRQ_DMA_READ (0x1 << 16) |
| 38 | #define IVTV_IRQ_DEC_VSYNC (0x1 << 10) |
| 39 | |
| 40 | /* IRQ Masks */ |
| 41 | #define IVTV_IRQ_MASK_INIT (IVTV_IRQ_DMA_ERR|IVTV_IRQ_ENC_DMA_COMPLETE|\ |
| 42 | IVTV_IRQ_DMA_READ|IVTV_IRQ_ENC_PIO_COMPLETE) |
| 43 | |
| 44 | #define IVTV_IRQ_MASK_CAPTURE (IVTV_IRQ_ENC_START_CAP | IVTV_IRQ_ENC_EOS) |
| 45 | #define IVTV_IRQ_MASK_DECODE (IVTV_IRQ_DEC_DATA_REQ|IVTV_IRQ_DEC_AUD_MODE_CHG) |
| 46 | |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 47 | irqreturn_t ivtv_irq_handler(int irq, void *dev_id); |
Hans Verkuil | 1e13f9e | 2007-03-10 06:52:02 -0300 | [diff] [blame] | 48 | |
Tejun Heo | 7bc4656 | 2010-06-29 10:07:09 +0200 | [diff] [blame] | 49 | void ivtv_irq_work_handler(struct kthread_work *work); |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 50 | void ivtv_dma_stream_dec_prepare(struct ivtv_stream *s, u32 offset, int lock); |
| 51 | void ivtv_unfinished_dma(unsigned long arg); |
Hans Verkuil | 612570f | 2007-08-23 05:42:59 -0300 | [diff] [blame] | 52 | |
| 53 | #endif |