/*1* include/media/si4713.h2*3* Board related data definitions for Si4713 i2c device driver.4*5* Copyright (c) 2009 Nokia Corporation6* Contact: Eduardo Valentin <[email protected]>7*8* This file is licensed under the terms of the GNU General Public License9* version 2. This program is licensed "as is" without any warranty of any10* kind, whether express or implied.11*12*/1314#ifndef SI4713_H15#define SI4713_H1617/* The SI4713 I2C sensor chip has a fixed slave address of 0xc6 or 0x22. */18#define SI4713_I2C_ADDR_BUSEN_HIGH 0x6319#define SI4713_I2C_ADDR_BUSEN_LOW 0x112021/*22* Platform dependent definition23*/24struct si4713_platform_data {25int gpio_reset; /* < 0 if not used */26};2728/*29* Structure to query for Received Noise Level (RNL).30*/31struct si4713_rnl {32__u32 index; /* modulator index */33__u32 frequency; /* frequency to peform rnl measurement */34__s32 rnl; /* result of measurement in dBuV */35__u32 reserved[4]; /* drivers and apps must init this to 0 */36};3738/*39* This is the ioctl number to query for rnl. Users must pass a40* struct si4713_rnl pointer specifying desired frequency in 'frequency' field41* following driver capabilities (i.e V4L2_TUNER_CAP_LOW).42* Driver must return measured value in the same struture, filling 'rnl' field.43*/44#define SI4713_IOC_MEASURE_RNL _IOWR('V', BASE_VIDIOC_PRIVATE + 0, \45struct si4713_rnl)4647#endif /* ifndef SI4713_H*/484950