Lines Matching +full:sub +full:- +full:mailboxes

3     Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl>
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 * -----
33 * MPG600/MPG160 support by T.Adachi <tadachi@tadachi-net.com>
37 * using information provided by Jiun-Kuei Jung @ AVerMedia.
49 #include <linux/i2c-algo-bit.h>
60 #include <media/v4l2-common.h>
61 #include <media/v4l2-ioctl.h>
62 #include <media/v4l2-ctrls.h>
63 #include <media/v4l2-device.h>
64 #include <media/v4l2-fh.h>
66 #include <media/drv-intf/cx2341x.h>
67 #include <media/i2c/ir-kbd-i2c.h>
143 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
159 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
173 #define IVTV_ERR(fmt, args...) v4l2_err(&itv->v4l2_dev, fmt , ## args)
174 #define IVTV_WARN(fmt, args...) v4l2_warn(&itv->v4l2_dev, fmt , ## args)
175 #define IVTV_INFO(fmt, args...) v4l2_info(&itv->v4l2_dev, fmt , ## args)
198 /* ivtv-specific mailbox template */
214 /* Bits 0-2 are for the encoder mailboxes, 0-1 are for the decoder mailboxes.
220 /* per-buffer bit flags */
223 /* per-stream, s_flags */
238 /* per-ivtv, i_flags */
269 /* Scatter-Gather array element, used in DMA transfers */
529 u8 odd[2]; /* two-byte payload of odd field */
530 u8 even[2]; /* two-byte payload of even field */;
534 u8 data[5]; /* five-byte VPS payload */
552 u32 dec_start; /* start in decoder memory of VBI re-insertion buffers */
559 int insert_mpeg; /* if non-zero, then embed VBI data in MPEG stream */
604 /* forward declaration of struct defined in ivtv-cards.h */
644 struct v4l2_subdev sd_gpio; /* GPIO sub-device */
647 /* High-level state info */
677 /* Used for ivtv-alsa module loading */
682 u32 irq_rr_idx; /* round-robin stream index */
687 int cur_dma_stream; /* index of current stream doing DMA (-1 if none) */
688 int cur_pio_stream; /* index of current stream doing PIO (-1 if none) */
702 struct ivtv_mailbox_data enc_mbox; /* encoder mailboxes */
703 struct ivtv_mailbox_data dec_mbox; /* decoder mailboxes */
737 struct vbi_info vbi; /* VBI-specific data */
748 int osd_chroma_key_state; /* 1 = chroma-keying is on */
780 /* Return non-zero if a signal is pending */
783 /* Wait on queue, returns -EINTR if interrupted */
790 /* First-open initialization: load firmware, init cx25840, etc. */
796 return itv->vbi.in.type == V4L2_BUF_TYPE_VBI_CAPTURE; in ivtv_raw_vbi()
811 #define read_reg(reg) readl(itv->reg_mem + (reg))
812 #define write_reg(val, reg) writel(val, itv->reg_mem + (reg))
816 #define read_enc(addr) readl(itv->enc_mem + (u32)(addr))
817 #define write_enc(val, addr) writel(val, itv->enc_mem + (u32)(addr))
821 #define read_dec(addr) readl(itv->dec_mem + (u32)(addr))
822 #define write_dec(val, addr) writel(val, itv->dec_mem + (u32)(addr))
829 v4l2_device_mask_call_all(&(itv)->v4l2_dev, hw, o, f, ##args)
835 -ENOIOCTLCMD, then return with that error code. */
837 v4l2_device_mask_call_until_err(&(itv)->v4l2_dev, hw, o, f, ##args)