Annotation of margi2/margi.h, revision 1.4
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.4 ! mocm 47: int MargiSetABuffers(struct cvdv_cards *card, uint32_t size);
! 48: int MargiSetBBuffers(struct cvdv_cards *card, uint32_t size);
1.1 cvs 49: int MargiFlush (struct cvdv_cards *card);
1.4 ! mocm 50: int MargiPushA(struct cvdv_cards *card, int count, const char *data);
! 51: int MargiPushB(struct cvdv_cards *card, int count, const char *data);
1.1 cvs 52: int DecoderStartChannel(struct cvdv_cards *card);
53: int DecoderStopChannel(struct cvdv_cards *card);
54: void DACSetFrequency(struct cvdv_cards *card, int khz, int multiple);
55: stream_type get_stream_type(struct cvdv_cards *card);
56: audio_type get_audio_type(struct cvdv_cards *card);
1.2 mocm 57:
58: #ifdef NOINT
59: void Timerfunction(unsigned long data);
60: #endif
1.1 cvs 61:
62:
63: #endif
LinuxTV legacy CVS <linuxtv.org/cvs>