saa7134.h (5e2aa2ed08e2e280121dc7cf5609c87d464f12ef) saa7134.h (452015de2e2afaf0e2f76f28477dd3025d44bc95)
1/*
2 *
3 * v4l2 device driver for philips saa7134 based TV cards
4 *
5 * (c) 2001,02 Gerd Knorr <kraxel@bytesex.org>
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

--- 324 unchanged lines hidden (view full) ---

333#define SAA7134_BOARD_MAGICPRO_PROHDTV_PRO2 185
334#define SAA7134_BOARD_BEHOLD_501 186
335#define SAA7134_BOARD_BEHOLD_503FM 187
336#define SAA7134_BOARD_SENSORAY811_911 188
337#define SAA7134_BOARD_KWORLD_PC150U 189
338#define SAA7134_BOARD_ASUSTeK_PS3_100 190
339#define SAA7134_BOARD_HAWELL_HW_9004V1 191
340#define SAA7134_BOARD_AVERMEDIA_A706 192
1/*
2 *
3 * v4l2 device driver for philips saa7134 based TV cards
4 *
5 * (c) 2001,02 Gerd Knorr <kraxel@bytesex.org>
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

--- 324 unchanged lines hidden (view full) ---

333#define SAA7134_BOARD_MAGICPRO_PROHDTV_PRO2 185
334#define SAA7134_BOARD_BEHOLD_501 186
335#define SAA7134_BOARD_BEHOLD_503FM 187
336#define SAA7134_BOARD_SENSORAY811_911 188
337#define SAA7134_BOARD_KWORLD_PC150U 189
338#define SAA7134_BOARD_ASUSTeK_PS3_100 190
339#define SAA7134_BOARD_HAWELL_HW_9004V1 191
340#define SAA7134_BOARD_AVERMEDIA_A706 192
341#define SAA7134_BOARD_WIS_VOYAGER 193
341
342#define SAA7134_MAXBOARDS 32
343#define SAA7134_INPUT_MAX 8
344
345/* ----------------------------------------------------------- */
346/* Since we support 2 remote types, lets tell them apart */
347
348#define SAA7134_REMOTE_GPIO 1

--- 14 unchanged lines hidden (view full) ---

363 unsigned int gpio;
364 unsigned int tv:1;
365};
366
367enum saa7134_mpeg_type {
368 SAA7134_MPEG_UNUSED,
369 SAA7134_MPEG_EMPRESS,
370 SAA7134_MPEG_DVB,
342
343#define SAA7134_MAXBOARDS 32
344#define SAA7134_INPUT_MAX 8
345
346/* ----------------------------------------------------------- */
347/* Since we support 2 remote types, lets tell them apart */
348
349#define SAA7134_REMOTE_GPIO 1

--- 14 unchanged lines hidden (view full) ---

364 unsigned int gpio;
365 unsigned int tv:1;
366};
367
368enum saa7134_mpeg_type {
369 SAA7134_MPEG_UNUSED,
370 SAA7134_MPEG_EMPRESS,
371 SAA7134_MPEG_DVB,
372 SAA7134_MPEG_GO7007,
371};
372
373enum saa7134_mpeg_ts_type {
374 SAA7134_MPEG_TS_PARALLEL = 0,
375 SAA7134_MPEG_TS_SERIAL,
376};
377
378struct saa7134_board {

--- 23 unchanged lines hidden (view full) ---

402 enum saa7134_mpeg_ts_type ts_type;
403 unsigned int vid_port_opts;
404 unsigned int ts_force_val:1;
405};
406
407#define card_has_radio(dev) (NULL != saa7134_boards[dev->board].radio.name)
408#define card_is_empress(dev) (SAA7134_MPEG_EMPRESS == saa7134_boards[dev->board].mpeg)
409#define card_is_dvb(dev) (SAA7134_MPEG_DVB == saa7134_boards[dev->board].mpeg)
373};
374
375enum saa7134_mpeg_ts_type {
376 SAA7134_MPEG_TS_PARALLEL = 0,
377 SAA7134_MPEG_TS_SERIAL,
378};
379
380struct saa7134_board {

--- 23 unchanged lines hidden (view full) ---

404 enum saa7134_mpeg_ts_type ts_type;
405 unsigned int vid_port_opts;
406 unsigned int ts_force_val:1;
407};
408
409#define card_has_radio(dev) (NULL != saa7134_boards[dev->board].radio.name)
410#define card_is_empress(dev) (SAA7134_MPEG_EMPRESS == saa7134_boards[dev->board].mpeg)
411#define card_is_dvb(dev) (SAA7134_MPEG_DVB == saa7134_boards[dev->board].mpeg)
412#define card_is_go7007(dev) (SAA7134_MPEG_GO7007 == saa7134_boards[dev->board].mpeg)
410#define card_has_mpeg(dev) (SAA7134_MPEG_UNUSED != saa7134_boards[dev->board].mpeg)
411#define card(dev) (saa7134_boards[dev->board])
412#define card_in(dev,n) (saa7134_boards[dev->board].inputs[n])
413
414#define V4L2_CID_PRIVATE_INVERT (V4L2_CID_USER_SAA7134_BASE + 0)
415#define V4L2_CID_PRIVATE_Y_ODD (V4L2_CID_USER_SAA7134_BASE + 1)
416#define V4L2_CID_PRIVATE_Y_EVEN (V4L2_CID_USER_SAA7134_BASE + 2)
417#define V4L2_CID_PRIVATE_AUTOMUTE (V4L2_CID_USER_SAA7134_BASE + 3)

--- 99 unchanged lines hidden (view full) ---

517
518/* ts/mpeg ops */
519struct saa7134_mpeg_ops {
520 enum saa7134_mpeg_type type;
521 struct list_head next;
522 int (*init)(struct saa7134_dev *dev);
523 int (*fini)(struct saa7134_dev *dev);
524 void (*signal_change)(struct saa7134_dev *dev);
413#define card_has_mpeg(dev) (SAA7134_MPEG_UNUSED != saa7134_boards[dev->board].mpeg)
414#define card(dev) (saa7134_boards[dev->board])
415#define card_in(dev,n) (saa7134_boards[dev->board].inputs[n])
416
417#define V4L2_CID_PRIVATE_INVERT (V4L2_CID_USER_SAA7134_BASE + 0)
418#define V4L2_CID_PRIVATE_Y_ODD (V4L2_CID_USER_SAA7134_BASE + 1)
419#define V4L2_CID_PRIVATE_Y_EVEN (V4L2_CID_USER_SAA7134_BASE + 2)
420#define V4L2_CID_PRIVATE_AUTOMUTE (V4L2_CID_USER_SAA7134_BASE + 3)

--- 99 unchanged lines hidden (view full) ---

520
521/* ts/mpeg ops */
522struct saa7134_mpeg_ops {
523 enum saa7134_mpeg_type type;
524 struct list_head next;
525 int (*init)(struct saa7134_dev *dev);
526 int (*fini)(struct saa7134_dev *dev);
527 void (*signal_change)(struct saa7134_dev *dev);
528 void (*irq_ts_done)(struct saa7134_dev *dev,
529 unsigned long status);
525};
526
527/* global device status */
528struct saa7134_dev {
529 struct list_head devlist;
530 struct mutex lock;
531 spinlock_t slock;
532 struct v4l2_device v4l2_dev;

--- 360 unchanged lines hidden ---
530};
531
532/* global device status */
533struct saa7134_dev {
534 struct list_head devlist;
535 struct mutex lock;
536 spinlock_t slock;
537 struct v4l2_device v4l2_dev;

--- 360 unchanged lines hidden ---