Path: blob/master/drivers/media/video/ivtv/ivtv-irq.h
17956 views
/*1interrupt handling2Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>3Copyright (C) 2004 Chris Kennedy <[email protected]>4Copyright (C) 2005-2007 Hans Verkuil <[email protected]>56This program is free software; you can redistribute it and/or modify7it under the terms of the GNU General Public License as published by8the Free Software Foundation; either version 2 of the License, or9(at your option) any later version.1011This program is distributed in the hope that it will be useful,12but WITHOUT ANY WARRANTY; without even the implied warranty of13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14GNU General Public License for more details.1516You should have received a copy of the GNU General Public License17along with this program; if not, write to the Free Software18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/2021#ifndef IVTV_IRQ_H22#define IVTV_IRQ_H2324#define IVTV_IRQ_ENC_START_CAP (0x1 << 31)25#define IVTV_IRQ_ENC_EOS (0x1 << 30)26#define IVTV_IRQ_ENC_VBI_CAP (0x1 << 29)27#define IVTV_IRQ_ENC_VIM_RST (0x1 << 28)28#define IVTV_IRQ_ENC_DMA_COMPLETE (0x1 << 27)29#define IVTV_IRQ_ENC_PIO_COMPLETE (0x1 << 25)30#define IVTV_IRQ_DEC_AUD_MODE_CHG (0x1 << 24)31#define IVTV_IRQ_DEC_DATA_REQ (0x1 << 22)32#define IVTV_IRQ_DEC_DMA_COMPLETE (0x1 << 20)33#define IVTV_IRQ_DEC_VBI_RE_INSERT (0x1 << 19)34#define IVTV_IRQ_DMA_ERR (0x1 << 18)35#define IVTV_IRQ_DMA_WRITE (0x1 << 17)36#define IVTV_IRQ_DMA_READ (0x1 << 16)37#define IVTV_IRQ_DEC_VSYNC (0x1 << 10)3839/* IRQ Masks */40#define IVTV_IRQ_MASK_INIT (IVTV_IRQ_DMA_ERR|IVTV_IRQ_ENC_DMA_COMPLETE|\41IVTV_IRQ_DMA_READ|IVTV_IRQ_ENC_PIO_COMPLETE)4243#define IVTV_IRQ_MASK_CAPTURE (IVTV_IRQ_ENC_START_CAP | IVTV_IRQ_ENC_EOS)44#define IVTV_IRQ_MASK_DECODE (IVTV_IRQ_DEC_DATA_REQ|IVTV_IRQ_DEC_AUD_MODE_CHG)4546irqreturn_t ivtv_irq_handler(int irq, void *dev_id);4748void ivtv_irq_work_handler(struct kthread_work *work);49void ivtv_dma_stream_dec_prepare(struct ivtv_stream *s, u32 offset, int lock);50void ivtv_unfinished_dma(unsigned long arg);5152#endif535455