![]() |
|
|||
0001 /* 0002 * include/linux/platform_data/media/si4713.h 0003 * 0004 * Board related data definitions for Si4713 i2c device driver. 0005 * 0006 * Copyright (c) 2009 Nokia Corporation 0007 * Contact: Eduardo Valentin <eduardo.valentin@nokia.com> 0008 * 0009 * This file is licensed under the terms of the GNU General Public License 0010 * version 2. This program is licensed "as is" without any warranty of any 0011 * kind, whether express or implied. 0012 * 0013 */ 0014 0015 #ifndef SI4713_H 0016 #define SI4713_H 0017 0018 /* The SI4713 I2C sensor chip has a fixed slave address of 0xc6 or 0x22. */ 0019 #define SI4713_I2C_ADDR_BUSEN_HIGH 0x63 0020 #define SI4713_I2C_ADDR_BUSEN_LOW 0x11 0021 0022 /* 0023 * Platform dependent definition 0024 */ 0025 struct si4713_platform_data { 0026 bool is_platform_device; 0027 }; 0028 0029 /* 0030 * Structure to query for Received Noise Level (RNL). 0031 */ 0032 struct si4713_rnl { 0033 __u32 index; /* modulator index */ 0034 __u32 frequency; /* frequency to perform rnl measurement */ 0035 __s32 rnl; /* result of measurement in dBuV */ 0036 __u32 reserved[4]; /* drivers and apps must init this to 0 */ 0037 }; 0038 0039 /* 0040 * This is the ioctl number to query for rnl. Users must pass a 0041 * struct si4713_rnl pointer specifying desired frequency in 'frequency' field 0042 * following driver capabilities (i.e V4L2_TUNER_CAP_LOW). 0043 * Driver must return measured value in the same structure, filling 'rnl' field. 0044 */ 0045 #define SI4713_IOC_MEASURE_RNL _IOWR('V', BASE_VIDIOC_PRIVATE + 0, \ 0046 struct si4713_rnl) 0047 0048 #endif /* ifndef SI4713_H*/
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |