diff options
author | Michael Hunold <devnull@localhost> | 2002-12-17 16:10:20 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2002-12-17 16:10:20 +0000 |
commit | 648fb619790cc40a8f4eec94e585a653bd680122 (patch) | |
tree | b5e939164837c82f4f5ad81082f3281d1a9127eb /linux/drivers/media/video/tea6415c.h | |
parent | 7b024f3ee0340a819eb279c71367d2b2af44bbbc (diff) | |
download | mediapointer-dvb-s2-648fb619790cc40a8f4eec94e585a653bd680122.tar.gz mediapointer-dvb-s2-648fb619790cc40a8f4eec94e585a653bd680122.tar.bz2 |
Add the video4linux driver for the "Multimedia eXtension Board",
an analogue tv card based on the saa7146.
Warning: Makefile and Kconfig will most likely be changed by
Gerd Knorr as well, so be sure to change these accordingly.
Warning2: "saa7111" is already available in the kernel, but needs
to be modified, as well as "video_decoder" in include/linux
Diffstat (limited to 'linux/drivers/media/video/tea6415c.h')
-rw-r--r-- | linux/drivers/media/video/tea6415c.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tea6415c.h b/linux/drivers/media/video/tea6415c.h new file mode 100644 index 000000000..775fb6fe8 --- /dev/null +++ b/linux/drivers/media/video/tea6415c.h @@ -0,0 +1,68 @@ + /* + tea6415c.h - definitions for the i2c-driver + for the tea6415c by SGS Thomson + + Copyright (C) 1998,1999,2000 Michael Hunold <michael@mihu.de> + + The tea6415c is a bus controlled video-matrix-switch + with 8 inputs and 6 outputs. + It is cascadable, i.e. it can be found at the addresses + 0x86 and 0x06 on the i2c-bus. + + For detailed informations download the specifications directly + from SGS Thomson at http://www.st.com + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License vs published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mvss Ave, Cambridge, MA 02139, USA. + */ + +#ifndef __INCLUDED_TEA6415C__ +#define __INCLUDED_TEA6415C__ + +/* possible i2c-addresses */ +#define I2C_TEA6415C_1 0x03 +#define I2C_TEA6415C_2 0x43 + +/* the tea6415c's design is quite brain-dead. although there are + 8 inputs and 6 outputs, these aren't enumerated in any way. because + I don't want to say "connect input pin 20 to output pin 17", I define + a "virtual" pin-order. */ + +/* input pins */ +#define TEA6415C_OUTPUT1 18 +#define TEA6415C_OUTPUT2 14 +#define TEA6415C_OUTPUT3 16 +#define TEA6415C_OUTPUT4 17 +#define TEA6415C_OUTPUT5 13 +#define TEA6415C_OUTPUT6 15 + +/* output pins */ +#define TEA6415C_INPUT1 5 +#define TEA6415C_INPUT2 8 +#define TEA6415C_INPUT3 3 +#define TEA6415C_INPUT4 20 +#define TEA6415C_INPUT5 6 +#define TEA6415C_INPUT6 10 +#define TEA6415C_INPUT7 1 +#define TEA6415C_INPUT8 11 + +struct tea6415c_video_multiplex +{ + int in; /* input-pin */ + int out; /* output-pin */ +}; + +#define TEA6415C_SWITCH _IOW('t',1,struct tea6415c_video_multiplex) + +#endif |