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