bttvp.h (976e3645923bdd2fe7893aae33fd7a21098bfb28) | bttvp.h (3c161e82dfbd3ee67a1548691412d04d04ad6a37) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 4 bttv - Bt848 frame grabber driver 5 6 bttv's *private* header file -- nobody other than bttv itself 7 should ever include this file. 8 --- 36 unchanged lines hidden (view full) --- 45#define FORMAT_FLAGS_CrCb 0x10 46 47#define RISC_SLOT_O_VBI 4 48#define RISC_SLOT_O_FIELD 6 49#define RISC_SLOT_E_VBI 10 50#define RISC_SLOT_E_FIELD 12 51#define RISC_SLOT_LOOP 14 52 | 1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 4 bttv - Bt848 frame grabber driver 5 6 bttv's *private* header file -- nobody other than bttv itself 7 should ever include this file. 8 --- 36 unchanged lines hidden (view full) --- 45#define FORMAT_FLAGS_CrCb 0x10 46 47#define RISC_SLOT_O_VBI 4 48#define RISC_SLOT_O_FIELD 6 49#define RISC_SLOT_E_VBI 10 50#define RISC_SLOT_E_FIELD 12 51#define RISC_SLOT_LOOP 14 52 |
53#define RESOURCE_OVERLAY 1 | |
54#define RESOURCE_VIDEO_STREAM 2 55#define RESOURCE_VBI 4 56#define RESOURCE_VIDEO_READ 8 57 58#define RAW_LINES 640 59#define RAW_BPL 1024 60 61#define UNSET (-1U) --- 98 unchanged lines hidden (view full) --- 160 161struct bttv_buffer_set { 162 struct bttv_buffer *top; /* top field buffer */ 163 struct bttv_buffer *bottom; /* bottom field buffer */ 164 unsigned int top_irq; 165 unsigned int frame_irq; 166}; 167 | 53#define RESOURCE_VIDEO_STREAM 2 54#define RESOURCE_VBI 4 55#define RESOURCE_VIDEO_READ 8 56 57#define RAW_LINES 640 58#define RAW_BPL 1024 59 60#define UNSET (-1U) --- 98 unchanged lines hidden (view full) --- 159 160struct bttv_buffer_set { 161 struct bttv_buffer *top; /* top field buffer */ 162 struct bttv_buffer *bottom; /* bottom field buffer */ 163 unsigned int top_irq; 164 unsigned int frame_irq; 165}; 166 |
168struct bttv_overlay { 169 unsigned int tvnorm; 170 struct v4l2_rect w; 171 enum v4l2_field field; 172 struct v4l2_clip *clips; 173 int nclips; 174 int setup_ok; 175}; 176 | |
177struct bttv_vbi_fmt { 178 struct v4l2_vbi_format fmt; 179 180 /* fmt.start[] and count[] refer to this video standard. */ 181 const struct bttv_tvnorm *tvnorm; 182 183 /* Earliest possible start of video capturing with this 184 v4l2_vbi_format, in struct bttv_crop.rect units. */ --- 26 unchanged lines hidden (view full) --- 211 enum v4l2_buf_type type; 212 213 /* video capture */ 214 struct videobuf_queue cap; 215 const struct bttv_format *fmt; 216 int width; 217 int height; 218 | 167struct bttv_vbi_fmt { 168 struct v4l2_vbi_format fmt; 169 170 /* fmt.start[] and count[] refer to this video standard. */ 171 const struct bttv_tvnorm *tvnorm; 172 173 /* Earliest possible start of video capturing with this 174 v4l2_vbi_format, in struct bttv_crop.rect units. */ --- 26 unchanged lines hidden (view full) --- 201 enum v4l2_buf_type type; 202 203 /* video capture */ 204 struct videobuf_queue cap; 205 const struct bttv_format *fmt; 206 int width; 207 int height; 208 |
219 /* video overlay */ 220 const struct bttv_format *ovfmt; 221 struct bttv_overlay ov; 222 | |
223 /* Application called VIDIOC_S_SELECTION. */ 224 int do_crop; 225 226 /* vbi capture */ 227 struct videobuf_queue vbi; 228 /* Current VBI capture window as seen through this fh (cannot 229 be global for compatibility with earlier drivers). Protected 230 by struct bttv.lock and struct bttv_fh.vbi.lock. */ --- 20 unchanged lines hidden (view full) --- 251int bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf); 252int bttv_buffer_activate_video(struct bttv *btv, 253 struct bttv_buffer_set *set); 254int bttv_buffer_activate_vbi(struct bttv *btv, 255 struct bttv_buffer *vbi); 256void bttv_dma_free(struct videobuf_queue *q, struct bttv *btv, 257 struct bttv_buffer *buf); 258 | 209 /* Application called VIDIOC_S_SELECTION. */ 210 int do_crop; 211 212 /* vbi capture */ 213 struct videobuf_queue vbi; 214 /* Current VBI capture window as seen through this fh (cannot 215 be global for compatibility with earlier drivers). Protected 216 by struct bttv.lock and struct bttv_fh.vbi.lock. */ --- 20 unchanged lines hidden (view full) --- 237int bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf); 238int bttv_buffer_activate_video(struct bttv *btv, 239 struct bttv_buffer_set *set); 240int bttv_buffer_activate_vbi(struct bttv *btv, 241 struct bttv_buffer *vbi); 242void bttv_dma_free(struct videobuf_queue *q, struct bttv *btv, 243 struct bttv_buffer *buf); 244 |
259/* overlay handling */ 260int bttv_overlay_risc(struct bttv *btv, struct bttv_overlay *ov, 261 const struct bttv_format *fmt, 262 struct bttv_buffer *buf); 263 264 | |
265/* ---------------------------------------------------------- */ 266/* bttv-vbi.c */ 267 268int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); 269int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); 270int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); 271 272extern const struct videobuf_queue_ops bttv_vbi_qops; 273 274/* ---------------------------------------------------------- */ 275/* bttv-gpio.c */ 276 277extern struct bus_type bttv_sub_bus_type; 278int bttv_sub_add_device(struct bttv_core *core, char *name); 279int bttv_sub_del_devices(struct bttv_core *core); 280 281/* ---------------------------------------------------------- */ | 245/* ---------------------------------------------------------- */ 246/* bttv-vbi.c */ 247 248int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); 249int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); 250int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); 251 252extern const struct videobuf_queue_ops bttv_vbi_qops; 253 254/* ---------------------------------------------------------- */ 255/* bttv-gpio.c */ 256 257extern struct bus_type bttv_sub_bus_type; 258int bttv_sub_add_device(struct bttv_core *core, char *name); 259int bttv_sub_del_devices(struct bttv_core *core); 260 261/* ---------------------------------------------------------- */ |
282/* bttv-cards.c */ 283 284extern int no_overlay; 285 286/* ---------------------------------------------------------- */ | |
287/* bttv-input.c */ 288 289extern void init_bttv_i2c_ir(struct bttv *btv); 290 291/* ---------------------------------------------------------- */ 292/* bttv-i2c.c */ 293extern int init_bttv_i2c(struct bttv *btv); 294extern int fini_bttv_i2c(struct bttv *btv); --- 154 unchanged lines hidden (view full) --- 449 450 /* switch status for multi-controller cards */ 451 char sw_status[4]; 452 453 /* risc memory management data 454 - must acquire s_lock before changing these 455 - only the irq handler is supported to touch top + bottom + vcurr */ 456 struct btcx_riscmem main; | 262/* bttv-input.c */ 263 264extern void init_bttv_i2c_ir(struct bttv *btv); 265 266/* ---------------------------------------------------------- */ 267/* bttv-i2c.c */ 268extern int init_bttv_i2c(struct bttv *btv); 269extern int fini_bttv_i2c(struct bttv *btv); --- 154 unchanged lines hidden (view full) --- 424 425 /* switch status for multi-controller cards */ 426 char sw_status[4]; 427 428 /* risc memory management data 429 - must acquire s_lock before changing these 430 - only the irq handler is supported to touch top + bottom + vcurr */ 431 struct btcx_riscmem main; |
457 struct bttv_buffer *screen; /* overlay */ | |
458 struct list_head capture; /* video capture queue */ 459 struct list_head vcapture; /* vbi capture queue */ 460 struct bttv_buffer_set curr; /* active buffers */ 461 struct bttv_buffer *cvbi; /* active vbi buffer */ 462 int loop_irq; 463 int new_input; 464 465 unsigned long cap_ctl; --- 8 unchanged lines hidden (view full) --- 474 unsigned int irq_me; 475 476 unsigned int users; 477 struct bttv_fh init; 478 479 /* used to make dvb-bt8xx autoloadable */ 480 struct work_struct request_module_wk; 481 | 432 struct list_head capture; /* video capture queue */ 433 struct list_head vcapture; /* vbi capture queue */ 434 struct bttv_buffer_set curr; /* active buffers */ 435 struct bttv_buffer *cvbi; /* active vbi buffer */ 436 int loop_irq; 437 int new_input; 438 439 unsigned long cap_ctl; --- 8 unchanged lines hidden (view full) --- 448 unsigned int irq_me; 449 450 unsigned int users; 451 struct bttv_fh init; 452 453 /* used to make dvb-bt8xx autoloadable */ 454 struct work_struct request_module_wk; 455 |
482 /* Default (0) and current (1) video capturing and overlay | 456 /* Default (0) and current (1) video capturing |
483 cropping parameters in bttv_tvnorm.cropcap units. Protected 484 by bttv.lock. */ 485 struct bttv_crop crop[2]; 486 487 /* Earliest possible start of video capturing in 488 bttv_tvnorm.cropcap line units. Set by check_alloc_btres() 489 and free_btres(). Protected by bttv.lock. */ 490 __s32 vbi_end; --- 33 unchanged lines hidden --- | 457 cropping parameters in bttv_tvnorm.cropcap units. Protected 458 by bttv.lock. */ 459 struct bttv_crop crop[2]; 460 461 /* Earliest possible start of video capturing in 462 bttv_tvnorm.cropcap line units. Set by check_alloc_btres() 463 and free_btres(). Protected by bttv.lock. */ 464 __s32 vbi_end; --- 33 unchanged lines hidden --- |