drivers/media/pci/ivtv/ivtv-irq.h

Source file repositories/reference/linux-study-clean/drivers/media/pci/ivtv/ivtv-irq.h

File Facts

System
Linux kernel
Corpus path
drivers/media/pci/ivtv/ivtv-irq.h
Extension
.h
Size
1381 bytes
Lines
42
Domain
Driver Families
Bucket
drivers/media
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

interrupt handling
    Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
    Copyright (C) 2004  Chris Kennedy <c@groovy.org>
    Copyright (C) 2005-2007  Hans Verkuil <hverkuil@kernel.org>

 */

#ifndef IVTV_IRQ_H
#define IVTV_IRQ_H

#define IVTV_IRQ_ENC_START_CAP		BIT(31)
#define IVTV_IRQ_ENC_EOS		BIT(30)
#define IVTV_IRQ_ENC_VBI_CAP		BIT(29)
#define IVTV_IRQ_ENC_VIM_RST		BIT(28)
#define IVTV_IRQ_ENC_DMA_COMPLETE	BIT(27)
#define IVTV_IRQ_ENC_PIO_COMPLETE	BIT(25)
#define IVTV_IRQ_DEC_AUD_MODE_CHG	BIT(24)
#define IVTV_IRQ_DEC_DATA_REQ		BIT(22)
#define IVTV_IRQ_DEC_DMA_COMPLETE	BIT(20)
#define IVTV_IRQ_DEC_VBI_RE_INSERT	BIT(19)
#define IVTV_IRQ_DMA_ERR		BIT(18)
#define IVTV_IRQ_DMA_WRITE		BIT(17)
#define IVTV_IRQ_DMA_READ		BIT(16)
#define IVTV_IRQ_DEC_VSYNC		BIT(10)

/* IRQ Masks */
#define IVTV_IRQ_MASK_INIT (IVTV_IRQ_DMA_ERR|IVTV_IRQ_ENC_DMA_COMPLETE|\
		IVTV_IRQ_DMA_READ|IVTV_IRQ_ENC_PIO_COMPLETE)

#define IVTV_IRQ_MASK_CAPTURE (IVTV_IRQ_ENC_START_CAP | IVTV_IRQ_ENC_EOS)
#define IVTV_IRQ_MASK_DECODE  (IVTV_IRQ_DEC_DATA_REQ|IVTV_IRQ_DEC_AUD_MODE_CHG)

irqreturn_t ivtv_irq_handler(int irq, void *dev_id);

void ivtv_irq_work_handler(struct kthread_work *work);
void ivtv_dma_stream_dec_prepare(struct ivtv_stream *s, u32 offset, int lock);
void ivtv_unfinished_dma(struct timer_list *t);

#endif

Annotation

Implementation Notes