diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/media/video/zoran_device.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/media/video/zoran_device.h')
-rw-r--r-- | drivers/media/video/zoran_device.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/drivers/media/video/zoran_device.h b/drivers/media/video/zoran_device.h new file mode 100644 index 000000000000..f315203d7105 --- /dev/null +++ b/drivers/media/video/zoran_device.h | |||
@@ -0,0 +1,91 @@ | |||
1 | /* | ||
2 | * Zoran zr36057/zr36067 PCI controller driver, for the | ||
3 | * Pinnacle/Miro DC10/DC10+/DC30/DC30+, Iomega Buz, Linux | ||
4 | * Media Labs LML33/LML33R10. | ||
5 | * | ||
6 | * This part handles card-specific data and detection | ||
7 | * | ||
8 | * Copyright (C) 2000 Serguei Miridonov <mirsev@cicese.mx> | ||
9 | * | ||
10 | * Currently maintained by: | ||
11 | * Ronald Bultje <rbultje@ronald.bitfreak.net> | ||
12 | * Laurent Pinchart <laurent.pinchart@skynet.be> | ||
13 | * Mailinglist <mjpeg-users@lists.sf.net> | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or modify | ||
16 | * it under the terms of the GNU General Public License as published by | ||
17 | * the Free Software Foundation; either version 2 of the License, or | ||
18 | * (at your option) any later version. | ||
19 | * | ||
20 | * This program is distributed in the hope that it will be useful, | ||
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
23 | * GNU General Public License for more details. | ||
24 | * | ||
25 | * You should have received a copy of the GNU General Public License | ||
26 | * along with this program; if not, write to the Free Software | ||
27 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
28 | */ | ||
29 | |||
30 | #ifndef __ZORAN_DEVICE_H__ | ||
31 | #define __ZORAN_DEVICE_H__ | ||
32 | |||
33 | /* general purpose I/O */ | ||
34 | extern void GPIO(struct zoran *zr, | ||
35 | int bit, | ||
36 | unsigned int value); | ||
37 | |||
38 | /* codec (or actually: guest bus) access */ | ||
39 | extern int post_office_wait(struct zoran *zr); | ||
40 | extern int post_office_write(struct zoran *zr, | ||
41 | unsigned guest, | ||
42 | unsigned reg, | ||
43 | unsigned value); | ||
44 | extern int post_office_read(struct zoran *zr, | ||
45 | unsigned guest, | ||
46 | unsigned reg); | ||
47 | |||
48 | extern void detect_guest_activity(struct zoran *zr); | ||
49 | |||
50 | extern void jpeg_codec_sleep(struct zoran *zr, | ||
51 | int sleep); | ||
52 | extern int jpeg_codec_reset(struct zoran *zr); | ||
53 | |||
54 | /* zr360x7 access to raw capture */ | ||
55 | extern void zr36057_overlay(struct zoran *zr, | ||
56 | int on); | ||
57 | extern void write_overlay_mask(struct file *file, | ||
58 | struct video_clip *vp, | ||
59 | int count); | ||
60 | extern void zr36057_set_memgrab(struct zoran *zr, | ||
61 | int mode); | ||
62 | extern int wait_grab_pending(struct zoran *zr); | ||
63 | |||
64 | /* interrupts */ | ||
65 | extern void print_interrupts(struct zoran *zr); | ||
66 | extern void clear_interrupt_counters(struct zoran *zr); | ||
67 | extern irqreturn_t zoran_irq(int irq, | ||
68 | void *dev_id, | ||
69 | struct pt_regs *regs); | ||
70 | |||
71 | /* JPEG codec access */ | ||
72 | extern void jpeg_start(struct zoran *zr); | ||
73 | extern void zr36057_enable_jpg(struct zoran *zr, | ||
74 | enum zoran_codec_mode mode); | ||
75 | extern void zoran_feed_stat_com(struct zoran *zr); | ||
76 | |||
77 | /* general */ | ||
78 | extern void zoran_set_pci_master(struct zoran *zr, | ||
79 | int set_master); | ||
80 | extern void zoran_init_hardware(struct zoran *zr); | ||
81 | extern void zr36057_restart(struct zoran *zr); | ||
82 | |||
83 | /* i2c */ | ||
84 | extern int decoder_command(struct zoran *zr, | ||
85 | int cmd, | ||
86 | void *data); | ||
87 | extern int encoder_command(struct zoran *zr, | ||
88 | int cmd, | ||
89 | void *data); | ||
90 | |||
91 | #endif /* __ZORAN_DEVICE_H__ */ | ||