forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/saa7134/saa7134.h
....@@ -1,18 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 *
34 * v4l2 device driver for philips saa7134 based TV cards
45 *
56 * (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
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178
189 #define SAA7134_VERSION "0, 2, 17"
....@@ -107,7 +98,6 @@
10798 };
10899
109100 struct saa7134_format {
110
- char *name;
111101 unsigned int fourcc;
112102 unsigned int depth;
113103 unsigned int pm;
....@@ -123,9 +113,7 @@
123113 struct saa7134_card_ir {
124114 struct rc_dev *dev;
125115
126
- char name[32];
127116 char phys[32];
128
- unsigned users;
129117
130118 u32 polling;
131119 u32 last_gpio;
....@@ -521,7 +509,7 @@
521509 void *vaddr;
522510 struct scatterlist *sglist;
523511 int sglen;
524
- int nr_pages;
512
+ unsigned long nr_pages;
525513 unsigned int dma_blk;
526514 unsigned int read_offset;
527515 unsigned int read_count;
....@@ -545,6 +533,12 @@
545533 void (*signal_change)(struct saa7134_dev *dev);
546534 void (*irq_ts_done)(struct saa7134_dev *dev,
547535 unsigned long status);
536
+};
537
+
538
+enum saa7134_pads {
539
+ SAA7134_PAD_IF_INPUT,
540
+ SAA7134_PAD_VID_OUT,
541
+ SAA7134_NUM_PADS
548542 };
549543
550544 /* global device status */
....@@ -674,7 +668,7 @@
674668 struct media_pad input_pad[SAA7134_INPUT_MAX + 1];
675669
676670 struct media_entity demod;
677
- struct media_pad demod_pad[DEMOD_NUM_PADS];
671
+ struct media_pad demod_pad[SAA7134_NUM_PADS];
678672
679673 struct media_pad video_pad, vbi_pad;
680674 struct media_entity *decoder;
....@@ -917,13 +911,13 @@
917911 void saa7134_input_fini(struct saa7134_dev *dev);
918912 void saa7134_input_irq(struct saa7134_dev *dev);
919913 void saa7134_probe_i2c_ir(struct saa7134_dev *dev);
920
-int saa7134_ir_start(struct saa7134_dev *dev);
921
-void saa7134_ir_stop(struct saa7134_dev *dev);
914
+int saa7134_ir_open(struct rc_dev *dev);
915
+void saa7134_ir_close(struct rc_dev *dev);
922916 #else
923917 #define saa7134_input_init1(dev) ((void)0)
924918 #define saa7134_input_fini(dev) ((void)0)
925919 #define saa7134_input_irq(dev) ((void)0)
926920 #define saa7134_probe_i2c_ir(dev) ((void)0)
927
-#define saa7134_ir_start(dev) ((void)0)
928
-#define saa7134_ir_stop(dev) ((void)0)
921
+#define saa7134_ir_open(dev) ((void)0)
922
+#define saa7134_ir_close(dev) ((void)0)
929923 #endif