diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-26 18:28:55 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-26 18:28:55 -0300 |
commit | b98fedbf223090872b1b4b7ec8e89994b55fb9bb (patch) | |
tree | ed2c0aa6bd8697123815b41844f993c01cb85ba4 /linux/include/media | |
parent | 1af587a5d42154a22a337a6e0d478835d12ac302 (diff) | |
download | mediapointer-dvb-s2-b98fedbf223090872b1b4b7ec8e89994b55fb9bb.tar.gz mediapointer-dvb-s2-b98fedbf223090872b1b4b7ec8e89994b55fb9bb.tar.bz2 |
Fix a merge trouble
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Unfortunately, mailimport added the new files at the wrong place. Fix it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/include/media')
-rw-r--r-- | linux/include/media/radio-si4713.h | 30 | ||||
-rw-r--r-- | linux/include/media/si4713.h | 49 |
2 files changed, 79 insertions, 0 deletions
diff --git a/linux/include/media/radio-si4713.h b/linux/include/media/radio-si4713.h new file mode 100644 index 000000000..f6aae29c7 --- /dev/null +++ b/linux/include/media/radio-si4713.h @@ -0,0 +1,30 @@ +/* + * include/media/radio-si4713.h + * + * Board related data definitions for Si4713 radio transmitter chip. + * + * Copyright (c) 2009 Nokia Corporation + * Contact: Eduardo Valentin <eduardo.valentin@nokia.com> + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + * + */ + +#ifndef RADIO_SI4713_H +#define RADIO_SI4713_H + +#include <linux/i2c.h> + +#define SI4713_NAME "radio-si4713" + +/* + * Platform dependent definition + */ +struct radio_si4713_platform_data { + int i2c_bus; + struct i2c_board_info *subdev_board_info; +}; + +#endif /* ifndef RADIO_SI4713_H*/ diff --git a/linux/include/media/si4713.h b/linux/include/media/si4713.h new file mode 100644 index 000000000..99850a54e --- /dev/null +++ b/linux/include/media/si4713.h @@ -0,0 +1,49 @@ +/* + * include/media/si4713.h + * + * Board related data definitions for Si4713 i2c device driver. + * + * Copyright (c) 2009 Nokia Corporation + * Contact: Eduardo Valentin <eduardo.valentin@nokia.com> + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + * + */ + +#ifndef SI4713_H +#define SI4713_H + +/* The SI4713 I2C sensor chip has a fixed slave address of 0xc6 or 0x22. */ +#define SI4713_I2C_ADDR_BUSEN_HIGH 0x63 +#define SI4713_I2C_ADDR_BUSEN_LOW 0x11 + +/* + * Platform dependent definition + */ +struct si4713_platform_data { + /* Set power state, zero is off, non-zero is on. */ + int (*set_power)(int power); +}; + +/* + * Structure to query for Received Noise Level (RNL). + */ +struct si4713_rnl { + __u32 index; /* modulator index */ + __u32 frequency; /* frequency to peform rnl measurement */ + __s32 rnl; /* result of measurement in dBuV */ + __u32 reserved[4]; /* drivers and apps must init this to 0 */ +}; + +/* + * This is the ioctl number to query for rnl. Users must pass a + * struct si4713_rnl pointer specifying desired frequency in 'frequency' field + * following driver capabilities (i.e V4L2_TUNER_CAP_LOW). + * Driver must return measured value in the same struture, filling 'rnl' field. + */ +#define SI4713_IOC_MEASURE_RNL _IOWR('V', BASE_VIDIOC_PRIVATE + 0, \ + struct si4713_rnl) + +#endif /* ifndef SI4713_H*/ |