summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/btcx-risc.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-02-06 07:57:57 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-08 16:11:25 -0200
commitf1c50f2489f40494658a6b7326bd6d5a26f72711 (patch)
tree69af5dd2ec1c65bea75976c51c3672e80fced0c1 /drivers/media/common/btcx-risc.h
parent625958207752519bd0e49d0dcdde61a20ac081b3 (diff)
downloadop-kernel-dev-f1c50f2489f40494658a6b7326bd6d5a26f72711.zip
op-kernel-dev-f1c50f2489f40494658a6b7326bd6d5a26f72711.tar.gz
[media] btcx-risc: move from media/i2c to media/common
The btcx-risc module is a helper module for bttv/conexant based TV cards. It isn't an i2c module at all, instead it should be in common since it is used by 4 pci drivers. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/btcx-risc.h')
-rw-r--r--drivers/media/common/btcx-risc.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/media/common/btcx-risc.h b/drivers/media/common/btcx-risc.h
new file mode 100644
index 0000000..f8bc6e8
--- /dev/null
+++ b/drivers/media/common/btcx-risc.h
@@ -0,0 +1,34 @@
+/*
+ */
+struct btcx_riscmem {
+ unsigned int size;
+ __le32 *cpu;
+ __le32 *jmp;
+ dma_addr_t dma;
+};
+
+struct btcx_skiplist {
+ int start;
+ int end;
+};
+
+int btcx_riscmem_alloc(struct pci_dev *pci,
+ struct btcx_riscmem *risc,
+ unsigned int size);
+void btcx_riscmem_free(struct pci_dev *pci,
+ struct btcx_riscmem *risc);
+
+int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
+ struct v4l2_clip *clips, unsigned int n);
+int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
+ unsigned int n, int mask);
+void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips);
+void btcx_calc_skips(int line, int width, int *maxy,
+ struct btcx_skiplist *skips, unsigned int *nskips,
+ const struct v4l2_clip *clips, unsigned int nclips);
+
+/*
+ * Local variables:
+ * c-basic-offset: 8
+ * End:
+ */
OpenPOWER on IntegriCloud