Annotation of margi2/margi.h, revision 1.3
1.1 cvs 1: /*
2: margi.h
3:
4: Copyright (C) Marcus Metzler for convergence integrated media.
5:
6: This program is free software; you can redistribute it and/or modify
7: it under the terms of the GNU General Public License as published by
8: the Free Software Foundation; either version 2 of the License, or
9: (at your option) any later version.
10:
11: This program is distributed in the hope that it will be useful,
12: but WITHOUT ANY WARRANTY; without even the implied warranty of
13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: GNU General Public License for more details.
15:
16: You should have received a copy of the GNU General Public License
17: along with this program; if not, write to the Free Software
18: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19: */
20:
21:
22: #ifndef margi_cs_h
23: #define margi_cs_h
24:
25: #include "cardbase.h"
26: #include <linux/kernel.h>
27: #include <linux/init.h>
28: #include <linux/sched.h>
29: #include <linux/ptrace.h>
30: #include <linux/malloc.h>
31: #include <linux/string.h>
32: #include <linux/timer.h>
33: #include <linux/delay.h>
34: #include <asm/io.h>
35: #include <asm/system.h>
36:
37:
38: #define PBUFFER 100
39:
40: u_char read_indexed_register(struct cvdv_cards *card, int addr);
41: void write_indexed_register(struct cvdv_cards *card, int addr,
42: u_char data);
43: void WriteByte(struct cvdv_cards *card, int addr, u_char data);
44: u_char ReadByte(struct cvdv_cards *card, int addr);
45: void MaskByte(struct cvdv_cards *card, int addr, u_char mask, u_char bits);
46: int MargiFreeBuffers(struct cvdv_cards *card);
1.3 ! mocm 47: int MargiSetBuffers(struct cvdv_cards *card, uint32_t size);
1.1 cvs 48: int MargiFlush (struct cvdv_cards *card);
49: int MargiPush(struct cvdv_cards *card, int count, const char *data);
1.3 ! mocm 50: int MargiWriteDirect(struct cvdv_cards *card, uint32_t count,const char *data);
1.1 cvs 51: int DecoderStartChannel(struct cvdv_cards *card);
52: int DecoderStopChannel(struct cvdv_cards *card);
53: void DACSetFrequency(struct cvdv_cards *card, int khz, int multiple);
54: stream_type get_stream_type(struct cvdv_cards *card);
55: audio_type get_audio_type(struct cvdv_cards *card);
1.2 mocm 56:
57: #ifdef NOINT
58: void Timerfunction(unsigned long data);
59: #endif
1.1 cvs 60:
61:
62: #endif
LinuxTV legacy CVS <linuxtv.org/cvs>