6836c07794fcc541f8fcb708874e12b54c2391aa
[linux-2.6.git] / drivers / media / video / saa7134 / saa7134.h
1 /*
2  * $Id: saa7134.h,v 1.48 2005/07/01 08:22:24 nsh Exp $
3  *
4  * v4l2 device driver for philips saa7134 based TV cards
5  *
6  * (c) 2001,02 Gerd Knorr <kraxel@bytesex.org>
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22
23 #include <linux/version.h>
24 #define SAA7134_VERSION_CODE KERNEL_VERSION(0,2,13)
25
26 #include <linux/pci.h>
27 #include <linux/i2c.h>
28 #include <linux/videodev.h>
29 #include <linux/kdev_t.h>
30 #include <linux/input.h>
31
32 #include <asm/io.h>
33
34 #include <media/tuner.h>
35 #include <media/audiochip.h>
36 #include <media/id.h>
37 #include <media/ir-common.h>
38 #include <media/video-buf.h>
39 #include <media/video-buf-dvb.h>
40
41 #ifndef TRUE
42 # define TRUE (1==1)
43 #endif
44 #ifndef FALSE
45 # define FALSE (1==0)
46 #endif
47 #define UNSET (-1U)
48
49 /* ----------------------------------------------------------- */
50 /* enums                                                       */
51
52 enum saa7134_tvaudio_mode {
53         TVAUDIO_FM_MONO       = 1,
54         TVAUDIO_FM_BG_STEREO  = 2,
55         TVAUDIO_FM_SAT_STEREO = 3,
56         TVAUDIO_FM_K_STEREO   = 4,
57         TVAUDIO_NICAM_AM      = 5,
58         TVAUDIO_NICAM_FM      = 6,
59 };
60
61 enum saa7134_audio_in {
62         TV    = 1,
63         LINE1 = 2,
64         LINE2 = 3,
65         LINE2_LEFT,
66 };
67
68 enum saa7134_video_out {
69         CCIR656 = 1,
70 };
71
72 /* ----------------------------------------------------------- */
73 /* static data                                                 */
74
75 struct saa7134_tvnorm {
76         char          *name;
77         v4l2_std_id   id;
78
79         /* video decoder */
80         unsigned int  sync_control;
81         unsigned int  luma_control;
82         unsigned int  chroma_ctrl1;
83         unsigned int  chroma_gain;
84         unsigned int  chroma_ctrl2;
85         unsigned int  vgate_misc;
86
87         /* video scaler */
88         unsigned int  h_start;
89         unsigned int  h_stop;
90         unsigned int  video_v_start;
91         unsigned int  video_v_stop;
92         unsigned int  vbi_v_start_0;
93         unsigned int  vbi_v_stop_0;
94         unsigned int  src_timing;
95         unsigned int  vbi_v_start_1;
96 };
97
98 struct saa7134_tvaudio {
99         char         *name;
100         v4l2_std_id  std;
101         enum         saa7134_tvaudio_mode mode;
102         int          carr1;
103         int          carr2;
104 };
105
106 struct saa7134_format {
107         char           *name;
108         unsigned int   fourcc;
109         unsigned int   depth;
110         unsigned int   pm;
111         unsigned int   vshift;   /* vertical downsampling (for planar yuv) */
112         unsigned int   hshift;   /* horizontal downsampling (for planar yuv) */
113         unsigned int   bswap:1;
114         unsigned int   wswap:1;
115         unsigned int   yuv:1;
116         unsigned int   planar:1;
117         unsigned int   uvswap:1;
118 };
119
120 /* ----------------------------------------------------------- */
121 /* card configuration                                          */
122
123 #define SAA7134_BOARD_NOAUTO        UNSET
124 #define SAA7134_BOARD_UNKNOWN           0
125 #define SAA7134_BOARD_PROTEUS_PRO       1
126 #define SAA7134_BOARD_FLYVIDEO3000      2
127 #define SAA7134_BOARD_FLYVIDEO2000      3
128 #define SAA7134_BOARD_EMPRESS           4
129 #define SAA7134_BOARD_MONSTERTV         5
130 #define SAA7134_BOARD_MD9717            6
131 #define SAA7134_BOARD_TVSTATION_RDS     7
132 #define SAA7134_BOARD_CINERGY400        8
133 #define SAA7134_BOARD_MD5044            9
134 #define SAA7134_BOARD_KWORLD           10
135 #define SAA7134_BOARD_CINERGY600       11
136 #define SAA7134_BOARD_MD7134           12
137 #define SAA7134_BOARD_TYPHOON_90031    13
138 #define SAA7134_BOARD_ELSA             14
139 #define SAA7134_BOARD_ELSA_500TV       15
140 #define SAA7134_BOARD_ASUSTeK_TVFM7134 16
141 #define SAA7134_BOARD_VA1000POWER      17
142 #define SAA7134_BOARD_BMK_MPEX_NOTUNER 18
143 #define SAA7134_BOARD_VIDEOMATE_TV     19
144 #define SAA7134_BOARD_CRONOS_PLUS      20
145 #define SAA7134_BOARD_10MOONSTVMASTER  21
146 #define SAA7134_BOARD_MD2819           22
147 #define SAA7134_BOARD_BMK_MPEX_TUNER   23
148 #define SAA7134_BOARD_TVSTATION_DVR    24
149 #define SAA7134_BOARD_ASUSTEK_TVFM7133  25
150 #define SAA7134_BOARD_PINNACLE_PCTV_STEREO 26
151 #define SAA7134_BOARD_MANLI_MTV002     27
152 #define SAA7134_BOARD_MANLI_MTV001     28
153 #define SAA7134_BOARD_TG3000TV         29
154 #define SAA7134_BOARD_ECS_TVP3XP       30
155 #define SAA7134_BOARD_ECS_TVP3XP_4CB5  31
156 #define SAA7134_BOARD_AVACSSMARTTV     32
157 #define SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER 33
158 #define SAA7134_BOARD_NOVAC_PRIMETV7133 34
159 #define SAA7134_BOARD_AVERMEDIA_STUDIO_305 35
160 #define SAA7134_BOARD_UPMOST_PURPLE_TV 36
161 #define SAA7134_BOARD_ITEMS_MTV005     37
162 #define SAA7134_BOARD_CINERGY200       38
163 #define SAA7134_BOARD_FLYTVPLATINUM_MINI 39
164 #define SAA7134_BOARD_VIDEOMATE_TV_PVR 40
165 #define SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS 41
166 #define SAA7134_BOARD_SABRENT_SBTTVFM  42
167 #define SAA7134_BOARD_ZOLID_XPERT_TV7134 43
168 #define SAA7134_BOARD_EMPIRE_PCI_TV_RADIO_LE 44
169 #define SAA7134_BOARD_AVERMEDIA_STUDIO_307    45
170 #define SAA7134_BOARD_AVERMEDIA_CARDBUS 46
171 #define SAA7134_BOARD_CINERGY400_CARDBUS 47
172 #define SAA7134_BOARD_CINERGY600_MK3   48
173 #define SAA7134_BOARD_VIDEOMATE_GOLD_PLUS 49
174 #define SAA7134_BOARD_PINNACLE_300I_DVBT_PAL 50
175 #define SAA7134_BOARD_PROVIDEO_PV952   51
176 #define SAA7134_BOARD_AVERMEDIA_305    52
177 #define SAA7134_BOARD_ASUSTeK_TVFM7135 53
178 #define SAA7134_BOARD_FLYTVPLATINUM_FM 54
179 #define SAA7134_BOARD_FLYDVBTDUO 55
180 #define SAA7134_BOARD_AVERMEDIA_307    56
181 #define SAA7134_BOARD_AVERMEDIA_GO_007_FM 57
182 #define SAA7134_BOARD_ADS_INSTANT_TV 58
183 #define SAA7134_BOARD_KWORLD_VSTREAM_XPERT 59
184 #define SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS 60
185 #define SAA7134_BOARD_PHILIPS_TOUGH 61
186 #define SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII 62
187 #define SAA7134_BOARD_KWORLD_XPERT 63
188
189 #define SAA7134_MAXBOARDS 8
190 #define SAA7134_INPUT_MAX 8
191
192 struct saa7134_input {
193         char                    *name;
194         unsigned int            vmux;
195         enum saa7134_audio_in   amux;
196         unsigned int            gpio;
197         unsigned int            tv:1;
198 };
199
200 enum saa7134_mpeg_type {
201         SAA7134_MPEG_UNUSED,
202         SAA7134_MPEG_EMPRESS,
203         SAA7134_MPEG_DVB,
204 };
205
206 struct saa7134_board {
207         char                    *name;
208         unsigned int            audio_clock;
209
210         /* input switching */
211         unsigned int            gpiomask;
212         struct saa7134_input    inputs[SAA7134_INPUT_MAX];
213         struct saa7134_input    radio;
214         struct saa7134_input    mute;
215
216         /* i2c chip info */
217         unsigned int            tuner_type;
218         unsigned int            radio_type;
219         unsigned char           tuner_addr;
220         unsigned char           radio_addr;
221
222         unsigned int            tda9887_conf;
223
224         /* peripheral I/O */
225         enum saa7134_video_out  video_out;
226         enum saa7134_mpeg_type  mpeg;
227 };
228
229 #define card_has_radio(dev)   (NULL != saa7134_boards[dev->board].radio.name)
230 #define card_is_empress(dev)  (SAA7134_MPEG_EMPRESS == saa7134_boards[dev->board].mpeg)
231 #define card_is_dvb(dev)      (SAA7134_MPEG_DVB     == saa7134_boards[dev->board].mpeg)
232 #define card_has_mpeg(dev)    (SAA7134_MPEG_UNUSED  != saa7134_boards[dev->board].mpeg)
233 #define card(dev)             (saa7134_boards[dev->board])
234 #define card_in(dev,n)        (saa7134_boards[dev->board].inputs[n])
235
236 /* ----------------------------------------------------------- */
237 /* device / file handle status                                 */
238
239 #define RESOURCE_OVERLAY       1
240 #define RESOURCE_VIDEO         2
241 #define RESOURCE_VBI           4
242
243 #define INTERLACE_AUTO         0
244 #define INTERLACE_ON           1
245 #define INTERLACE_OFF          2
246
247 #define BUFFER_TIMEOUT     (HZ/2)  /* 0.5 seconds */
248
249 struct saa7134_dev;
250 struct saa7134_dma;
251
252 /* saa7134 page table */
253 struct saa7134_pgtable {
254         unsigned int               size;
255         __le32                     *cpu;
256         dma_addr_t                 dma;
257 };
258
259 /* tvaudio thread status */
260 struct saa7134_thread {
261         pid_t                      pid;
262         struct completion          exit;
263         wait_queue_head_t          wq;
264         unsigned int               shutdown;
265         unsigned int               scan1;
266         unsigned int               scan2;
267         unsigned int               mode;
268 };
269
270 /* buffer for one video/vbi/ts frame */
271 struct saa7134_buf {
272         /* common v4l buffer stuff -- must be first */
273         struct videobuf_buffer vb;
274
275         /* saa7134 specific */
276         struct saa7134_format   *fmt;
277         unsigned int            top_seen;
278         int (*activate)(struct saa7134_dev *dev,
279                         struct saa7134_buf *buf,
280                         struct saa7134_buf *next);
281
282         /* page tables */
283         struct saa7134_pgtable  *pt;
284 };
285
286 struct saa7134_dmaqueue {
287         struct saa7134_dev         *dev;
288         struct saa7134_buf         *curr;
289         struct list_head           queue;
290         struct timer_list          timeout;
291         unsigned int               need_two;
292 };
293
294 /* video filehandle status */
295 struct saa7134_fh {
296         struct saa7134_dev         *dev;
297         unsigned int               radio;
298         enum v4l2_buf_type         type;
299         unsigned int               resources;
300 #ifdef VIDIOC_G_PRIORITY
301         enum v4l2_priority         prio;
302 #endif
303
304         /* video overlay */
305         struct v4l2_window         win;
306         struct v4l2_clip           clips[8];
307         unsigned int               nclips;
308
309         /* video capture */
310         struct saa7134_format      *fmt;
311         unsigned int               width,height;
312         struct videobuf_queue      cap;
313         struct saa7134_pgtable     pt_cap;
314
315         /* vbi capture */
316         struct videobuf_queue      vbi;
317         struct saa7134_pgtable     pt_vbi;
318 };
319
320 /* oss dsp status */
321 struct saa7134_oss {
322         struct semaphore           lock;
323         int                        minor_mixer;
324         int                        minor_dsp;
325         unsigned int               users_dsp;
326
327         /* mixer */
328         enum saa7134_audio_in      input;
329         unsigned int               count;
330         unsigned int               line1;
331         unsigned int               line2;
332
333         /* dsp */
334         unsigned int               afmt;
335         unsigned int               rate;
336         unsigned int               channels;
337         unsigned int               recording_on;
338         unsigned int               dma_running;
339         unsigned int               blocks;
340         unsigned int               blksize;
341         unsigned int               bufsize;
342         struct saa7134_pgtable     pt;
343         struct videobuf_dmabuf     dma;
344         wait_queue_head_t          wq;
345         unsigned int               dma_blk;
346         unsigned int               read_offset;
347         unsigned int               read_count;
348 };
349
350 /* IR input */
351 struct saa7134_ir {
352         struct input_dev           dev;
353         struct ir_input_state      ir;
354         char                       name[32];
355         char                       phys[32];
356         u32                        mask_keycode;
357         u32                        mask_keydown;
358         u32                        mask_keyup;
359         int                        polling;
360         u32                        last_gpio;
361         struct timer_list          timer;
362 };
363
364 /* ts/mpeg status */
365 struct saa7134_ts {
366         /* TS capture */
367         struct saa7134_pgtable     pt_ts;
368         int                        nr_packets;
369         int                        nr_bufs;
370 };
371
372 /* ts/mpeg ops */
373 struct saa7134_mpeg_ops {
374         enum saa7134_mpeg_type     type;
375         struct list_head           next;
376         int                        (*init)(struct saa7134_dev *dev);
377         int                        (*fini)(struct saa7134_dev *dev);
378         void                       (*signal_change)(struct saa7134_dev *dev);
379 };
380
381 /* global device status */
382 struct saa7134_dev {
383         struct list_head           devlist;
384         struct semaphore           lock;
385         spinlock_t                 slock;
386 #ifdef VIDIOC_G_PRIORITY
387         struct v4l2_prio_state     prio;
388 #endif
389
390         /* various device info */
391         unsigned int               resources;
392         struct video_device        *video_dev;
393         struct video_device        *radio_dev;
394         struct video_device        *vbi_dev;
395         struct saa7134_oss         oss;
396
397         /* infrared remote */
398         int                        has_remote;
399         struct saa7134_ir          *remote;
400
401         /* pci i/o */
402         char                       name[32];
403         int                        nr;
404         struct pci_dev             *pci;
405         unsigned char              pci_rev,pci_lat;
406         __u32                      __iomem *lmmio;
407         __u8                       __iomem *bmmio;
408
409         /* config info */
410         unsigned int               board;
411         unsigned int               tuner_type;
412         unsigned int               radio_type;
413         unsigned char              tuner_addr;
414         unsigned char              radio_addr;
415
416         unsigned int               tda9887_conf;
417         unsigned int               gpio_value;
418
419         /* i2c i/o */
420         struct i2c_adapter         i2c_adap;
421         struct i2c_client          i2c_client;
422         unsigned char              eedata[64];
423
424         /* video overlay */
425         struct v4l2_framebuffer    ovbuf;
426         struct saa7134_format      *ovfmt;
427         unsigned int               ovenable;
428         enum v4l2_field            ovfield;
429
430         /* video+ts+vbi capture */
431         struct saa7134_dmaqueue    video_q;
432         struct saa7134_dmaqueue    vbi_q;
433         unsigned int               video_fieldcount;
434         unsigned int               vbi_fieldcount;
435
436         /* various v4l controls */
437         struct saa7134_tvnorm      *tvnorm;              /* video */
438         struct saa7134_tvaudio     *tvaudio;
439         unsigned int               ctl_input;
440         int                        ctl_bright;
441         int                        ctl_contrast;
442         int                        ctl_hue;
443         int                        ctl_saturation;
444         int                        ctl_freq;
445         int                        ctl_mute;             /* audio */
446         int                        ctl_volume;
447         int                        ctl_invert;           /* private */
448         int                        ctl_mirror;
449         int                        ctl_y_odd;
450         int                        ctl_y_even;
451         int                        ctl_automute;
452
453         /* crop */
454         struct v4l2_rect           crop_bounds;
455         struct v4l2_rect           crop_defrect;
456         struct v4l2_rect           crop_current;
457
458         /* other global state info */
459         unsigned int               automute;
460         struct saa7134_thread      thread;
461         struct saa7134_input       *input;
462         struct saa7134_input       *hw_input;
463         unsigned int               hw_mute;
464         int                        last_carrier;
465         int                        nosignal;
466
467         /* SAA7134_MPEG_* */
468         struct saa7134_ts          ts;
469         struct saa7134_dmaqueue    ts_q;
470         struct saa7134_mpeg_ops    *mops;
471
472         /* SAA7134_MPEG_EMPRESS only */
473         struct video_device        *empress_dev;
474         struct videobuf_queue      empress_tsq;
475         unsigned int               empress_users;
476         struct work_struct         empress_workqueue;
477         int                        empress_started;
478
479         /* SAA7134_MPEG_DVB only */
480         struct videobuf_dvb        dvb;
481 };
482
483 /* ----------------------------------------------------------- */
484
485 #define saa_readl(reg)             readl(dev->lmmio + (reg))
486 #define saa_writel(reg,value)      writel((value), dev->lmmio + (reg));
487 #define saa_andorl(reg,mask,value) \
488   writel((readl(dev->lmmio+(reg)) & ~(mask)) |\
489   ((value) & (mask)), dev->lmmio+(reg))
490 #define saa_setl(reg,bit)          saa_andorl((reg),(bit),(bit))
491 #define saa_clearl(reg,bit)        saa_andorl((reg),(bit),0)
492
493 #define saa_readb(reg)             readb(dev->bmmio + (reg))
494 #define saa_writeb(reg,value)      writeb((value), dev->bmmio + (reg));
495 #define saa_andorb(reg,mask,value) \
496   writeb((readb(dev->bmmio+(reg)) & ~(mask)) |\
497   ((value) & (mask)), dev->bmmio+(reg))
498 #define saa_setb(reg,bit)          saa_andorb((reg),(bit),(bit))
499 #define saa_clearb(reg,bit)        saa_andorb((reg),(bit),0)
500
501 #define saa_wait(us) { udelay(us); }
502
503 /* ----------------------------------------------------------- */
504 /* saa7134-core.c                                              */
505
506 extern struct list_head  saa7134_devlist;
507
508 void saa7134_print_ioctl(char *name, unsigned int cmd);
509 void saa7134_track_gpio(struct saa7134_dev *dev, char *msg);
510
511 #define SAA7134_PGTABLE_SIZE 4096
512
513 int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt);
514 int  saa7134_pgtable_build(struct pci_dev *pci, struct saa7134_pgtable *pt,
515                            struct scatterlist *list, unsigned int length,
516                            unsigned int startpage);
517 void saa7134_pgtable_free(struct pci_dev *pci, struct saa7134_pgtable *pt);
518
519 int saa7134_buffer_count(unsigned int size, unsigned int count);
520 int saa7134_buffer_startpage(struct saa7134_buf *buf);
521 unsigned long saa7134_buffer_base(struct saa7134_buf *buf);
522
523 int saa7134_buffer_queue(struct saa7134_dev *dev, struct saa7134_dmaqueue *q,
524                          struct saa7134_buf *buf);
525 void saa7134_buffer_finish(struct saa7134_dev *dev, struct saa7134_dmaqueue *q,
526                            unsigned int state);
527 void saa7134_buffer_next(struct saa7134_dev *dev, struct saa7134_dmaqueue *q);
528 void saa7134_buffer_timeout(unsigned long data);
529 void saa7134_dma_free(struct saa7134_dev *dev,struct saa7134_buf *buf);
530
531 int saa7134_set_dmabits(struct saa7134_dev *dev);
532
533 /* ----------------------------------------------------------- */
534 /* saa7134-cards.c                                             */
535
536 extern struct saa7134_board saa7134_boards[];
537 extern const unsigned int saa7134_bcount;
538 extern struct pci_device_id __devinitdata saa7134_pci_tbl[];
539
540 extern int saa7134_board_init1(struct saa7134_dev *dev);
541 extern int saa7134_board_init2(struct saa7134_dev *dev);
542
543
544 /* ----------------------------------------------------------- */
545 /* saa7134-i2c.c                                               */
546
547 int saa7134_i2c_register(struct saa7134_dev *dev);
548 int saa7134_i2c_unregister(struct saa7134_dev *dev);
549 void saa7134_i2c_call_clients(struct saa7134_dev *dev,
550                               unsigned int cmd, void *arg);
551
552
553 /* ----------------------------------------------------------- */
554 /* saa7134-video.c                                             */
555
556 extern struct video_device saa7134_video_template;
557 extern struct video_device saa7134_radio_template;
558
559 int saa7134_common_ioctl(struct saa7134_dev *dev,
560                          unsigned int cmd, void *arg);
561
562 int saa7134_video_init1(struct saa7134_dev *dev);
563 int saa7134_video_init2(struct saa7134_dev *dev);
564 int saa7134_video_fini(struct saa7134_dev *dev);
565 void saa7134_irq_video_intl(struct saa7134_dev *dev);
566 void saa7134_irq_video_done(struct saa7134_dev *dev, unsigned long status);
567
568
569 /* ----------------------------------------------------------- */
570 /* saa7134-ts.c                                                */
571
572 #define TS_PACKET_SIZE 188 /* TS packets 188 bytes */
573
574 extern struct videobuf_queue_ops saa7134_ts_qops;
575
576 int saa7134_ts_init1(struct saa7134_dev *dev);
577 int saa7134_ts_fini(struct saa7134_dev *dev);
578 void saa7134_irq_ts_done(struct saa7134_dev *dev, unsigned long status);
579
580 int saa7134_ts_register(struct saa7134_mpeg_ops *ops);
581 void saa7134_ts_unregister(struct saa7134_mpeg_ops *ops);
582
583 /* ----------------------------------------------------------- */
584 /* saa7134-vbi.c                                               */
585
586 extern struct videobuf_queue_ops saa7134_vbi_qops;
587 extern struct video_device saa7134_vbi_template;
588
589 int saa7134_vbi_init1(struct saa7134_dev *dev);
590 int saa7134_vbi_fini(struct saa7134_dev *dev);
591 void saa7134_irq_vbi_done(struct saa7134_dev *dev, unsigned long status);
592
593
594 /* ----------------------------------------------------------- */
595 /* saa7134-tvaudio.c                                           */
596
597 int saa7134_tvaudio_rx2mode(u32 rx);
598
599 void saa7134_tvaudio_setmute(struct saa7134_dev *dev);
600 void saa7134_tvaudio_setinput(struct saa7134_dev *dev,
601                               struct saa7134_input *in);
602 void saa7134_tvaudio_setvolume(struct saa7134_dev *dev, int level);
603 int saa7134_tvaudio_getstereo(struct saa7134_dev *dev);
604
605 int saa7134_tvaudio_init2(struct saa7134_dev *dev);
606 int saa7134_tvaudio_fini(struct saa7134_dev *dev);
607 int saa7134_tvaudio_do_scan(struct saa7134_dev *dev);
608
609 int saa_dsp_writel(struct saa7134_dev *dev, int reg, u32 value);
610
611 /* ----------------------------------------------------------- */
612 /* saa7134-oss.c                                               */
613
614 extern struct file_operations saa7134_dsp_fops;
615 extern struct file_operations saa7134_mixer_fops;
616
617 int saa7134_oss_init1(struct saa7134_dev *dev);
618 int saa7134_oss_fini(struct saa7134_dev *dev);
619 void saa7134_irq_oss_done(struct saa7134_dev *dev, unsigned long status);
620
621 /* ----------------------------------------------------------- */
622 /* saa7134-input.c                                             */
623
624 int  saa7134_input_init1(struct saa7134_dev *dev);
625 void saa7134_input_fini(struct saa7134_dev *dev);
626 void saa7134_input_irq(struct saa7134_dev *dev);
627
628 /*
629  * Local variables:
630  * c-basic-offset: 8
631  * End:
632  */