Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fmdrv_common.h File Reference

Go to the source code of this file.

Data Structures

struct  fm_reg_table
 
struct  fm_skb_cb
 
struct  fm_cmd_msg_hdr
 
struct  fm_event_msg_hdr
 

Macros

#define FM_ST_REG_TIMEOUT   msecs_to_jiffies(6000) /* 6 sec */
 
#define FM_PKT_LOGICAL_CHAN_NUMBER   0x08 /* Logical channel 8 */
 
#define REG_RD   0x1
 
#define REG_WR   0x0
 
#define STEREO_GET   0
 
#define RSSI_LVL_GET   1
 
#define IF_COUNT_GET   2
 
#define FLAG_GET   3
 
#define RDS_SYNC_GET   4
 
#define RDS_DATA_GET   5
 
#define FREQ_SET   10
 
#define AF_FREQ_SET   11
 
#define MOST_MODE_SET   12
 
#define MOST_BLEND_SET   13
 
#define DEMPH_MODE_SET   14
 
#define SEARCH_LVL_SET   15
 
#define BAND_SET   16
 
#define MUTE_STATUS_SET   17
 
#define RDS_PAUSE_LVL_SET   18
 
#define RDS_PAUSE_DUR_SET   19
 
#define RDS_MEM_SET   20
 
#define RDS_BLK_B_SET   21
 
#define RDS_MSK_B_SET   22
 
#define RDS_PI_MASK_SET   23
 
#define RDS_PI_SET   24
 
#define RDS_SYSTEM_SET   25
 
#define INT_MASK_SET   26
 
#define SEARCH_DIR_SET   27
 
#define VOLUME_SET   28
 
#define AUDIO_ENABLE_SET   29
 
#define PCM_MODE_SET   30
 
#define I2S_MODE_CONFIG_SET   31
 
#define POWER_SET   32
 
#define INTX_CONFIG_SET   33
 
#define PULL_EN_SET   34
 
#define HILO_SET   35
 
#define SWITCH2FREF   36
 
#define FREQ_DRIFT_REPORT   37
 
#define PCE_GET   40
 
#define FIRM_VER_GET   41
 
#define ASIC_VER_GET   42
 
#define ASIC_ID_GET   43
 
#define MAN_ID_GET   44
 
#define TUNER_MODE_SET   45
 
#define STOP_SEARCH   46
 
#define RDS_CNTRL_SET   47
 
#define WRITE_HARDWARE_REG   100
 
#define CODE_DOWNLOAD   101
 
#define RESET   102
 
#define FM_POWER_MODE   254
 
#define FM_INTERRUPT   255
 
#define CHANL_SET   55
 
#define CHANL_BW_SET   56
 
#define REF_SET   57
 
#define POWER_ENB_SET   90
 
#define POWER_ATT_SET   58
 
#define POWER_LEV_SET   59
 
#define AUDIO_DEV_SET   60
 
#define PILOT_DEV_SET   61
 
#define RDS_DEV_SET   62
 
#define TX_BAND_SET   65
 
#define PUPD_SET   91
 
#define AUDIO_IO_SET   63
 
#define PREMPH_SET   64
 
#define MONO_SET   66
 
#define MUTE   92
 
#define MPX_LMT_ENABLE   67
 
#define PI_SET   93
 
#define ECC_SET   69
 
#define PTY   70
 
#define AF   71
 
#define DISPLAY_MODE   74
 
#define RDS_REP_SET   77
 
#define RDS_CONFIG_DATA_SET   98
 
#define RDS_DATA_SET   99
 
#define RDS_DATA_ENB   94
 
#define TA_SET   78
 
#define TP_SET   79
 
#define DI_SET   80
 
#define MS_SET   81
 
#define PS_SCROLL_SPEED   82
 
#define TX_AUDIO_LEVEL_TEST   96
 
#define TX_AUDIO_LEVEL_TEST_THRESHOLD   73
 
#define TX_AUDIO_INPUT_LEVEL_RANGE_SET   54
 
#define RX_ANTENNA_SELECT   87
 
#define I2C_DEV_ADDR_SET   86
 
#define REF_ERR_CALIB_PARAM_SET   88
 
#define REF_ERR_CALIB_PERIODICITY_SET   89
 
#define SOC_INT_TRIGGER   52
 
#define SOC_AUDIO_PATH_SET   83
 
#define SOC_PCMI_OVERRIDE   84
 
#define SOC_I2S_OVERRIDE   85
 
#define RSSI_BLOCK_SCAN_FREQ_SET   95
 
#define RSSI_BLOCK_SCAN_START   97
 
#define RSSI_BLOCK_SCAN_DATA_GET   5
 
#define READ_FMANT_TUNE_VALUE   104
 
#define fm_cb(skb)   ((struct fm_skb_cb *)(skb->cb))
 
#define FM_CMD_MSG_HDR_SIZE   5 /* sizeof(struct fm_cmd_msg_hdr) */
 
#define FM_EVT_MSG_HDR_SIZE   7 /* sizeof(struct fm_event_msg_hdr) */
 
#define FM_FW_FILE_HEADER_MAGIC   0x42535442
 
#define FM_ENABLE   1
 
#define FM_DISABLE   0
 
#define FM_FR_EVENT   (1 << 0)
 
#define FM_BL_EVENT   (1 << 1)
 
#define FM_RDS_EVENT   (1 << 2)
 
#define FM_BBLK_EVENT   (1 << 3)
 
#define FM_LSYNC_EVENT   (1 << 4)
 
#define FM_LEV_EVENT   (1 << 5)
 
#define FM_IFFR_EVENT   (1 << 6)
 
#define FM_PI_EVENT   (1 << 7)
 
#define FM_PD_EVENT   (1 << 8)
 
#define FM_STIC_EVENT   (1 << 9)
 
#define FM_MAL_EVENT   (1 << 10)
 
#define FM_POW_ENB_EVENT   (1 << 11)
 
#define FM_FMC_FW_FILE_START   ("fmc_ch8")
 
#define FM_RX_FW_FILE_START   ("fm_rx_ch8")
 
#define FM_TX_FW_FILE_START   ("fm_tx_ch8")
 
#define FM_UNDEFINED_FREQ   0xFFFFFFFF
 
#define FM_BAND_EUROPE_US   0
 
#define FM_BAND_JAPAN   1
 
#define FM_SEARCH_DIRECTION_DOWN   0
 
#define FM_SEARCH_DIRECTION_UP   1
 
#define FM_TUNER_STOP_SEARCH_MODE   0
 
#define FM_TUNER_PRESET_MODE   1
 
#define FM_TUNER_AUTONOMOUS_SEARCH_MODE   2
 
#define FM_TUNER_AF_JUMP_MODE   3
 
#define FM_RX_VOLUME_MIN   0
 
#define FM_RX_VOLUME_MAX   70
 
#define FM_RX_VOLUME_GAIN_STEP   0x370
 
#define FM_MUTE_ON   0
 
#define FM_MUTE_OFF   1
 
#define FM_MUTE_ATTENUATE   2
 
#define FM_RX_UNMUTE_MODE   0x00
 
#define FM_RX_RF_DEP_MODE   0x01
 
#define FM_RX_AC_MUTE_MODE   0x02
 
#define FM_RX_HARD_MUTE_LEFT_MODE   0x04
 
#define FM_RX_HARD_MUTE_RIGHT_MODE   0x08
 
#define FM_RX_SOFT_MUTE_FORCE_MODE   0x10
 
#define FM_RX_RF_DEPENDENT_MUTE_ON   1
 
#define FM_RX_RF_DEPENDENT_MUTE_OFF   0
 
#define FM_RX_RSSI_THRESHOLD_MIN   -128
 
#define FM_RX_RSSI_THRESHOLD_MAX   127
 
#define FM_STEREO_MODE   0
 
#define FM_MONO_MODE   1
 
#define FM_STEREO_SOFT_BLEND   1
 
#define FM_RX_EMPHASIS_FILTER_50_USEC   0
 
#define FM_RX_EMPHASIS_FILTER_75_USEC   1
 
#define FM_RDS_DISABLE   0
 
#define FM_RDS_ENABLE   1
 
#define FM_NO_PI_CODE   0
 
#define FM_RX_PWR_SET_FM_ON_RDS_OFF   0x1
 
#define FM_RX_PWR_SET_FM_AND_RDS_BLK_ON   0x3
 
#define FM_RX_PWR_SET_FM_AND_RDS_BLK_OFF   0x0
 
#define FM_RX_RDS_FLUSH_FIFO   0x1
 
#define FM_RX_RDS_FIFO_THRESHOLD   64 /* tuples */
 
#define FM_RDS_BLK_SIZE   3 /* 3 bytes */
 
#define FM_RDS_BLOCK_A   0
 
#define FM_RDS_BLOCK_B   1
 
#define FM_RDS_BLOCK_C   2
 
#define FM_RDS_BLOCK_Ctag   3
 
#define FM_RDS_BLOCK_D   4
 
#define FM_RDS_BLOCK_E   5
 
#define FM_RDS_BLK_IDX_A   0
 
#define FM_RDS_BLK_IDX_B   1
 
#define FM_RDS_BLK_IDX_C   2
 
#define FM_RDS_BLK_IDX_D   3
 
#define FM_RDS_BLK_IDX_UNKNOWN   0xF0
 
#define FM_RDS_STATUS_ERR_MASK   0x18
 
#define FM_RDS_GROUP_TYPE_MASK_0A   ((unsigned long)1<<0)
 
#define FM_RDS_GROUP_TYPE_MASK_0B   ((unsigned long)1<<1)
 
#define FM_RDS_GROUP_TYPE_MASK_1A   ((unsigned long)1<<2)
 
#define FM_RDS_GROUP_TYPE_MASK_1B   ((unsigned long)1<<3)
 
#define FM_RDS_GROUP_TYPE_MASK_2A   ((unsigned long)1<<4)
 
#define FM_RDS_GROUP_TYPE_MASK_2B   ((unsigned long)1<<5)
 
#define FM_RDS_GROUP_TYPE_MASK_3A   ((unsigned long)1<<6)
 
#define FM_RDS_GROUP_TYPE_MASK_3B   ((unsigned long)1<<7)
 
#define FM_RDS_GROUP_TYPE_MASK_4A   ((unsigned long)1<<8)
 
#define FM_RDS_GROUP_TYPE_MASK_4B   ((unsigned long)1<<9)
 
#define FM_RDS_GROUP_TYPE_MASK_5A   ((unsigned long)1<<10)
 
#define FM_RDS_GROUP_TYPE_MASK_5B   ((unsigned long)1<<11)
 
#define FM_RDS_GROUP_TYPE_MASK_6A   ((unsigned long)1<<12)
 
#define FM_RDS_GROUP_TYPE_MASK_6B   ((unsigned long)1<<13)
 
#define FM_RDS_GROUP_TYPE_MASK_7A   ((unsigned long)1<<14)
 
#define FM_RDS_GROUP_TYPE_MASK_7B   ((unsigned long)1<<15)
 
#define FM_RDS_GROUP_TYPE_MASK_8A   ((unsigned long)1<<16)
 
#define FM_RDS_GROUP_TYPE_MASK_8B   ((unsigned long)1<<17)
 
#define FM_RDS_GROUP_TYPE_MASK_9A   ((unsigned long)1<<18)
 
#define FM_RDS_GROUP_TYPE_MASK_9B   ((unsigned long)1<<19)
 
#define FM_RDS_GROUP_TYPE_MASK_10A   ((unsigned long)1<<20)
 
#define FM_RDS_GROUP_TYPE_MASK_10B   ((unsigned long)1<<21)
 
#define FM_RDS_GROUP_TYPE_MASK_11A   ((unsigned long)1<<22)
 
#define FM_RDS_GROUP_TYPE_MASK_11B   ((unsigned long)1<<23)
 
#define FM_RDS_GROUP_TYPE_MASK_12A   ((unsigned long)1<<24)
 
#define FM_RDS_GROUP_TYPE_MASK_12B   ((unsigned long)1<<25)
 
#define FM_RDS_GROUP_TYPE_MASK_13A   ((unsigned long)1<<26)
 
#define FM_RDS_GROUP_TYPE_MASK_13B   ((unsigned long)1<<27)
 
#define FM_RDS_GROUP_TYPE_MASK_14A   ((unsigned long)1<<28)
 
#define FM_RDS_GROUP_TYPE_MASK_14B   ((unsigned long)1<<29)
 
#define FM_RDS_GROUP_TYPE_MASK_15A   ((unsigned long)1<<30)
 
#define FM_RDS_GROUP_TYPE_MASK_15B   ((unsigned long)1<<31)
 
#define FM_RDS_MIN_AF   1
 
#define FM_RDS_MAX_AF   204
 
#define FM_RDS_MAX_AF_JAPAN   140
 
#define FM_RDS_1_AF_FOLLOWS   225
 
#define FM_RDS_25_AF_FOLLOWS   249
 
#define FM_RDS_SYSTEM_RDS   0
 
#define FM_RDS_SYSTEM_RBDS   1
 
#define FM_RX_RDS_AF_SWITCH_MODE_ON   1
 
#define FM_RX_RDS_AF_SWITCH_MODE_OFF   0
 
#define FM_IRQ_TIMEOUT_RETRY_MAX   5 /* 5 times */
 
#define FM_RX_AUDIO_ENABLE_I2S   0x01
 
#define FM_RX_AUDIO_ENABLE_ANALOG   0x02
 
#define FM_RX_AUDIO_ENABLE_I2S_AND_ANALOG   0x03
 
#define FM_RX_AUDIO_ENABLE_DISABLE   0x00
 
#define FM_RX_IFFREQ_TO_HI_SIDE   0x0
 
#define FM_RX_IFFREQ_TO_LO_SIDE   0x1
 
#define FM_RX_IFFREQ_HILO_AUTOMATIC   0x2
 
#define FM_DEFAULT_RX_VOLUME   10
 
#define FM_DEFAULT_RSSI_THRESHOLD   3
 
#define FM_PWR_LVL_LOW   91
 
#define FM_PWR_LVL_HIGH   122
 
#define FM_PWR_LVL_DEF   4
 
#define FM_TX_PREEMPH_OFF   1
 
#define FM_TX_PREEMPH_50US   0
 
#define FM_TX_PREEMPH_75US   2
 
#define FM_TX_ANT_IMP_50   0
 
#define FM_TX_ANT_IMP_200   1
 
#define FM_TX_ANT_IMP_500   2
 
#define FM_CHANNEL_SPACING_50KHZ   1
 
#define FM_CHANNEL_SPACING_100KHZ   2
 
#define FM_CHANNEL_SPACING_200KHZ   4
 
#define FM_FREQ_MUL   50
 

Functions

struct fm_cmd_msg_hdr __attribute__ ((packed))
 
int fmc_prepare (struct fmdev *)
 
int fmc_release (struct fmdev *)
 
void fmc_update_region_info (struct fmdev *, u8)
 
int fmc_send_cmd (struct fmdev *, u8, u16, void *, unsigned int, void *, int *)
 
int fmc_is_rds_data_available (struct fmdev *, struct file *, struct poll_table_struct *)
 
int fmc_transfer_rds_from_internal_buff (struct fmdev *, struct file *, u8 __user *, size_t)
 
int fmc_set_freq (struct fmdev *, u32)
 
int fmc_set_mode (struct fmdev *, u8)
 
int fmc_set_region (struct fmdev *, u8)
 
int fmc_set_mute_mode (struct fmdev *, u8)
 
int fmc_set_stereo_mono (struct fmdev *, u16)
 
int fmc_set_rds_mode (struct fmdev *, u8)
 
int fmc_get_freq (struct fmdev *, u32 *)
 
int fmc_get_region (struct fmdev *, u8 *)
 
int fmc_get_mode (struct fmdev *, u8 *)
 

Variables

__u8 hdr
 
__u8 len
 
__u8 op
 
__u8 rd_wr
 
__u8 dlen
 
__u8 header
 
__u8 status
 
__u8 num_fm_hci_cmds
 

Macro Definition Documentation

#define AF   71

Definition at line 109 of file fmdrv_common.h.

#define AF_FREQ_SET   11

Definition at line 44 of file fmdrv_common.h.

#define ASIC_ID_GET   43

Definition at line 75 of file fmdrv_common.h.

#define ASIC_VER_GET   42

Definition at line 74 of file fmdrv_common.h.

#define AUDIO_DEV_SET   60

Definition at line 96 of file fmdrv_common.h.

#define AUDIO_ENABLE_SET   29

Definition at line 62 of file fmdrv_common.h.

#define AUDIO_IO_SET   63

Definition at line 101 of file fmdrv_common.h.

#define BAND_SET   16

Definition at line 49 of file fmdrv_common.h.

#define CHANL_BW_SET   56

Definition at line 91 of file fmdrv_common.h.

#define CHANL_SET   55

Definition at line 90 of file fmdrv_common.h.

#define CODE_DOWNLOAD   101

Definition at line 82 of file fmdrv_common.h.

#define DEMPH_MODE_SET   14

Definition at line 47 of file fmdrv_common.h.

#define DI_SET   80

Definition at line 117 of file fmdrv_common.h.

#define DISPLAY_MODE   74

Definition at line 110 of file fmdrv_common.h.

#define ECC_SET   69

Definition at line 107 of file fmdrv_common.h.

#define FIRM_VER_GET   41

Definition at line 73 of file fmdrv_common.h.

#define FLAG_GET   3

Definition at line 40 of file fmdrv_common.h.

#define FM_BAND_EUROPE_US   0

Definition at line 199 of file fmdrv_common.h.

#define FM_BAND_JAPAN   1

Definition at line 200 of file fmdrv_common.h.

#define FM_BBLK_EVENT   (1 << 3)

Definition at line 178 of file fmdrv_common.h.

#define FM_BL_EVENT   (1 << 1)

Definition at line 176 of file fmdrv_common.h.

#define fm_cb (   skb)    ((struct fm_skb_cb *)(skb->cb))

Definition at line 142 of file fmdrv_common.h.

#define FM_CHANNEL_SPACING_100KHZ   2

Definition at line 397 of file fmdrv_common.h.

#define FM_CHANNEL_SPACING_200KHZ   4

Definition at line 398 of file fmdrv_common.h.

#define FM_CHANNEL_SPACING_50KHZ   1

Definition at line 396 of file fmdrv_common.h.

#define FM_CMD_MSG_HDR_SIZE   5 /* sizeof(struct fm_cmd_msg_hdr) */

Definition at line 153 of file fmdrv_common.h.

#define FM_DEFAULT_RSSI_THRESHOLD   3

Definition at line 351 of file fmdrv_common.h.

#define FM_DEFAULT_RX_VOLUME   10

Definition at line 350 of file fmdrv_common.h.

#define FM_DISABLE   0

Definition at line 172 of file fmdrv_common.h.

#define FM_ENABLE   1

Definition at line 171 of file fmdrv_common.h.

#define FM_EVT_MSG_HDR_SIZE   7 /* sizeof(struct fm_event_msg_hdr) */

Definition at line 166 of file fmdrv_common.h.

#define FM_FMC_FW_FILE_START   ("fmc_ch8")

Definition at line 192 of file fmdrv_common.h.

#define FM_FR_EVENT   (1 << 0)

Definition at line 175 of file fmdrv_common.h.

#define FM_FREQ_MUL   50

Definition at line 399 of file fmdrv_common.h.

#define FM_FW_FILE_HEADER_MAGIC   0x42535442

Definition at line 169 of file fmdrv_common.h.

#define FM_IFFR_EVENT   (1 << 6)

Definition at line 181 of file fmdrv_common.h.

#define FM_INTERRUPT   255

Definition at line 86 of file fmdrv_common.h.

#define FM_IRQ_TIMEOUT_RETRY_MAX   5 /* 5 times */

Definition at line 333 of file fmdrv_common.h.

#define FM_LEV_EVENT   (1 << 5)

Definition at line 180 of file fmdrv_common.h.

#define FM_LSYNC_EVENT   (1 << 4)

Definition at line 179 of file fmdrv_common.h.

#define FM_MAL_EVENT   (1 << 10)

Definition at line 185 of file fmdrv_common.h.

#define FM_MONO_MODE   1

Definition at line 241 of file fmdrv_common.h.

#define FM_MUTE_ATTENUATE   2

Definition at line 222 of file fmdrv_common.h.

#define FM_MUTE_OFF   1

Definition at line 221 of file fmdrv_common.h.

#define FM_MUTE_ON   0

Definition at line 220 of file fmdrv_common.h.

#define FM_NO_PI_CODE   0

Definition at line 252 of file fmdrv_common.h.

#define FM_PD_EVENT   (1 << 8)

Definition at line 183 of file fmdrv_common.h.

#define FM_PI_EVENT   (1 << 7)

Definition at line 182 of file fmdrv_common.h.

#define FM_PKT_LOGICAL_CHAN_NUMBER   0x08 /* Logical channel 8 */

Definition at line 26 of file fmdrv_common.h.

#define FM_POW_ENB_EVENT   (1 << 11)

Definition at line 186 of file fmdrv_common.h.

#define FM_POWER_MODE   254

Definition at line 85 of file fmdrv_common.h.

#define FM_PWR_LVL_DEF   4

Definition at line 358 of file fmdrv_common.h.

#define FM_PWR_LVL_HIGH   122

Definition at line 355 of file fmdrv_common.h.

#define FM_PWR_LVL_LOW   91

Definition at line 354 of file fmdrv_common.h.

#define FM_RDS_1_AF_FOLLOWS   225

Definition at line 321 of file fmdrv_common.h.

#define FM_RDS_25_AF_FOLLOWS   249

Definition at line 322 of file fmdrv_common.h.

#define FM_RDS_BLK_IDX_A   0

Definition at line 272 of file fmdrv_common.h.

#define FM_RDS_BLK_IDX_B   1

Definition at line 273 of file fmdrv_common.h.

#define FM_RDS_BLK_IDX_C   2

Definition at line 274 of file fmdrv_common.h.

#define FM_RDS_BLK_IDX_D   3

Definition at line 275 of file fmdrv_common.h.

#define FM_RDS_BLK_IDX_UNKNOWN   0xF0

Definition at line 276 of file fmdrv_common.h.

#define FM_RDS_BLK_SIZE   3 /* 3 bytes */

Definition at line 262 of file fmdrv_common.h.

#define FM_RDS_BLOCK_A   0

Definition at line 265 of file fmdrv_common.h.

#define FM_RDS_BLOCK_B   1

Definition at line 266 of file fmdrv_common.h.

#define FM_RDS_BLOCK_C   2

Definition at line 267 of file fmdrv_common.h.

#define FM_RDS_BLOCK_Ctag   3

Definition at line 268 of file fmdrv_common.h.

#define FM_RDS_BLOCK_D   4

Definition at line 269 of file fmdrv_common.h.

#define FM_RDS_BLOCK_E   5

Definition at line 270 of file fmdrv_common.h.

#define FM_RDS_DISABLE   0

Definition at line 249 of file fmdrv_common.h.

#define FM_RDS_ENABLE   1

Definition at line 250 of file fmdrv_common.h.

#define FM_RDS_EVENT   (1 << 2)

Definition at line 177 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_0A   ((unsigned long)1<<0)

Definition at line 284 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_0B   ((unsigned long)1<<1)

Definition at line 285 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_10A   ((unsigned long)1<<20)

Definition at line 304 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_10B   ((unsigned long)1<<21)

Definition at line 305 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_11A   ((unsigned long)1<<22)

Definition at line 306 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_11B   ((unsigned long)1<<23)

Definition at line 307 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_12A   ((unsigned long)1<<24)

Definition at line 308 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_12B   ((unsigned long)1<<25)

Definition at line 309 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_13A   ((unsigned long)1<<26)

Definition at line 310 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_13B   ((unsigned long)1<<27)

Definition at line 311 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_14A   ((unsigned long)1<<28)

Definition at line 312 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_14B   ((unsigned long)1<<29)

Definition at line 313 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_15A   ((unsigned long)1<<30)

Definition at line 314 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_15B   ((unsigned long)1<<31)

Definition at line 315 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_1A   ((unsigned long)1<<2)

Definition at line 286 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_1B   ((unsigned long)1<<3)

Definition at line 287 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_2A   ((unsigned long)1<<4)

Definition at line 288 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_2B   ((unsigned long)1<<5)

Definition at line 289 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_3A   ((unsigned long)1<<6)

Definition at line 290 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_3B   ((unsigned long)1<<7)

Definition at line 291 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_4A   ((unsigned long)1<<8)

Definition at line 292 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_4B   ((unsigned long)1<<9)

Definition at line 293 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_5A   ((unsigned long)1<<10)

Definition at line 294 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_5B   ((unsigned long)1<<11)

Definition at line 295 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_6A   ((unsigned long)1<<12)

Definition at line 296 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_6B   ((unsigned long)1<<13)

Definition at line 297 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_7A   ((unsigned long)1<<14)

Definition at line 298 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_7B   ((unsigned long)1<<15)

Definition at line 299 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_8A   ((unsigned long)1<<16)

Definition at line 300 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_8B   ((unsigned long)1<<17)

Definition at line 301 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_9A   ((unsigned long)1<<18)

Definition at line 302 of file fmdrv_common.h.

#define FM_RDS_GROUP_TYPE_MASK_9B   ((unsigned long)1<<19)

Definition at line 303 of file fmdrv_common.h.

#define FM_RDS_MAX_AF   204

Definition at line 319 of file fmdrv_common.h.

#define FM_RDS_MAX_AF_JAPAN   140

Definition at line 320 of file fmdrv_common.h.

#define FM_RDS_MIN_AF   1

Definition at line 318 of file fmdrv_common.h.

#define FM_RDS_STATUS_ERR_MASK   0x18

Definition at line 278 of file fmdrv_common.h.

#define FM_RDS_SYSTEM_RBDS   1

Definition at line 326 of file fmdrv_common.h.

#define FM_RDS_SYSTEM_RDS   0

Definition at line 325 of file fmdrv_common.h.

#define FM_RX_AC_MUTE_MODE   0x02

Definition at line 226 of file fmdrv_common.h.

#define FM_RX_AUDIO_ENABLE_ANALOG   0x02

Definition at line 337 of file fmdrv_common.h.

#define FM_RX_AUDIO_ENABLE_DISABLE   0x00

Definition at line 339 of file fmdrv_common.h.

#define FM_RX_AUDIO_ENABLE_I2S   0x01

Definition at line 336 of file fmdrv_common.h.

#define FM_RX_AUDIO_ENABLE_I2S_AND_ANALOG   0x03

Definition at line 338 of file fmdrv_common.h.

#define FM_RX_EMPHASIS_FILTER_50_USEC   0

Definition at line 245 of file fmdrv_common.h.

#define FM_RX_EMPHASIS_FILTER_75_USEC   1

Definition at line 246 of file fmdrv_common.h.

#define FM_RX_FW_FILE_START   ("fm_rx_ch8")

Definition at line 193 of file fmdrv_common.h.

#define FM_RX_HARD_MUTE_LEFT_MODE   0x04

Definition at line 227 of file fmdrv_common.h.

#define FM_RX_HARD_MUTE_RIGHT_MODE   0x08

Definition at line 228 of file fmdrv_common.h.

#define FM_RX_IFFREQ_HILO_AUTOMATIC   0x2

Definition at line 344 of file fmdrv_common.h.

#define FM_RX_IFFREQ_TO_HI_SIDE   0x0

Definition at line 342 of file fmdrv_common.h.

#define FM_RX_IFFREQ_TO_LO_SIDE   0x1

Definition at line 343 of file fmdrv_common.h.

#define FM_RX_PWR_SET_FM_AND_RDS_BLK_OFF   0x0

Definition at line 257 of file fmdrv_common.h.

#define FM_RX_PWR_SET_FM_AND_RDS_BLK_ON   0x3

Definition at line 256 of file fmdrv_common.h.

#define FM_RX_PWR_SET_FM_ON_RDS_OFF   0x1

Definition at line 255 of file fmdrv_common.h.

#define FM_RX_RDS_AF_SWITCH_MODE_OFF   0

Definition at line 330 of file fmdrv_common.h.

#define FM_RX_RDS_AF_SWITCH_MODE_ON   1

Definition at line 329 of file fmdrv_common.h.

#define FM_RX_RDS_FIFO_THRESHOLD   64 /* tuples */

Definition at line 261 of file fmdrv_common.h.

#define FM_RX_RDS_FLUSH_FIFO   0x1

Definition at line 260 of file fmdrv_common.h.

#define FM_RX_RF_DEP_MODE   0x01

Definition at line 225 of file fmdrv_common.h.

#define FM_RX_RF_DEPENDENT_MUTE_OFF   0

Definition at line 233 of file fmdrv_common.h.

#define FM_RX_RF_DEPENDENT_MUTE_ON   1

Definition at line 232 of file fmdrv_common.h.

#define FM_RX_RSSI_THRESHOLD_MAX   127

Definition at line 237 of file fmdrv_common.h.

#define FM_RX_RSSI_THRESHOLD_MIN   -128

Definition at line 236 of file fmdrv_common.h.

#define FM_RX_SOFT_MUTE_FORCE_MODE   0x10

Definition at line 229 of file fmdrv_common.h.

#define FM_RX_UNMUTE_MODE   0x00

Definition at line 224 of file fmdrv_common.h.

#define FM_RX_VOLUME_GAIN_STEP   0x370

Definition at line 217 of file fmdrv_common.h.

#define FM_RX_VOLUME_MAX   70

Definition at line 214 of file fmdrv_common.h.

#define FM_RX_VOLUME_MIN   0

Definition at line 213 of file fmdrv_common.h.

#define FM_SEARCH_DIRECTION_DOWN   0

Definition at line 203 of file fmdrv_common.h.

#define FM_SEARCH_DIRECTION_UP   1

Definition at line 204 of file fmdrv_common.h.

#define FM_ST_REG_TIMEOUT   msecs_to_jiffies(6000) /* 6 sec */

Definition at line 25 of file fmdrv_common.h.

#define FM_STEREO_MODE   0

Definition at line 240 of file fmdrv_common.h.

#define FM_STEREO_SOFT_BLEND   1

Definition at line 242 of file fmdrv_common.h.

#define FM_STIC_EVENT   (1 << 9)

Definition at line 184 of file fmdrv_common.h.

#define FM_TUNER_AF_JUMP_MODE   3

Definition at line 210 of file fmdrv_common.h.

#define FM_TUNER_AUTONOMOUS_SEARCH_MODE   2

Definition at line 209 of file fmdrv_common.h.

#define FM_TUNER_PRESET_MODE   1

Definition at line 208 of file fmdrv_common.h.

#define FM_TUNER_STOP_SEARCH_MODE   0

Definition at line 207 of file fmdrv_common.h.

#define FM_TX_ANT_IMP_200   1

Definition at line 367 of file fmdrv_common.h.

#define FM_TX_ANT_IMP_50   0

Definition at line 366 of file fmdrv_common.h.

#define FM_TX_ANT_IMP_500   2

Definition at line 368 of file fmdrv_common.h.

#define FM_TX_FW_FILE_START   ("fm_tx_ch8")

Definition at line 194 of file fmdrv_common.h.

#define FM_TX_PREEMPH_50US   0

Definition at line 362 of file fmdrv_common.h.

#define FM_TX_PREEMPH_75US   2

Definition at line 363 of file fmdrv_common.h.

#define FM_TX_PREEMPH_OFF   1

Definition at line 361 of file fmdrv_common.h.

#define FM_UNDEFINED_FREQ   0xFFFFFFFF

Definition at line 196 of file fmdrv_common.h.

#define FREQ_DRIFT_REPORT   37

Definition at line 70 of file fmdrv_common.h.

#define FREQ_SET   10

Definition at line 43 of file fmdrv_common.h.

#define HILO_SET   35

Definition at line 68 of file fmdrv_common.h.

#define I2C_DEV_ADDR_SET   86

Definition at line 124 of file fmdrv_common.h.

#define I2S_MODE_CONFIG_SET   31

Definition at line 64 of file fmdrv_common.h.

#define IF_COUNT_GET   2

Definition at line 39 of file fmdrv_common.h.

#define INT_MASK_SET   26

Definition at line 59 of file fmdrv_common.h.

#define INTX_CONFIG_SET   33

Definition at line 66 of file fmdrv_common.h.

#define MAN_ID_GET   44

Definition at line 76 of file fmdrv_common.h.

#define MONO_SET   66

Definition at line 103 of file fmdrv_common.h.

#define MOST_BLEND_SET   13

Definition at line 46 of file fmdrv_common.h.

#define MOST_MODE_SET   12

Definition at line 45 of file fmdrv_common.h.

#define MPX_LMT_ENABLE   67

Definition at line 105 of file fmdrv_common.h.

#define MS_SET   81

Definition at line 118 of file fmdrv_common.h.

#define MUTE   92

Definition at line 104 of file fmdrv_common.h.

#define MUTE_STATUS_SET   17

Definition at line 50 of file fmdrv_common.h.

#define PCE_GET   40

Definition at line 72 of file fmdrv_common.h.

#define PCM_MODE_SET   30

Definition at line 63 of file fmdrv_common.h.

#define PI_SET   93

Definition at line 106 of file fmdrv_common.h.

#define PILOT_DEV_SET   61

Definition at line 97 of file fmdrv_common.h.

#define POWER_ATT_SET   58

Definition at line 94 of file fmdrv_common.h.

#define POWER_ENB_SET   90

Definition at line 93 of file fmdrv_common.h.

#define POWER_LEV_SET   59

Definition at line 95 of file fmdrv_common.h.

#define POWER_SET   32

Definition at line 65 of file fmdrv_common.h.

#define PREMPH_SET   64

Definition at line 102 of file fmdrv_common.h.

#define PS_SCROLL_SPEED   82

Definition at line 119 of file fmdrv_common.h.

#define PTY   70

Definition at line 108 of file fmdrv_common.h.

#define PULL_EN_SET   34

Definition at line 67 of file fmdrv_common.h.

#define PUPD_SET   91

Definition at line 100 of file fmdrv_common.h.

#define RDS_BLK_B_SET   21

Definition at line 54 of file fmdrv_common.h.

#define RDS_CNTRL_SET   47

Definition at line 79 of file fmdrv_common.h.

#define RDS_CONFIG_DATA_SET   98

Definition at line 112 of file fmdrv_common.h.

#define RDS_DATA_ENB   94

Definition at line 114 of file fmdrv_common.h.

#define RDS_DATA_GET   5

Definition at line 42 of file fmdrv_common.h.

#define RDS_DATA_SET   99

Definition at line 113 of file fmdrv_common.h.

#define RDS_DEV_SET   62

Definition at line 98 of file fmdrv_common.h.

#define RDS_MEM_SET   20

Definition at line 53 of file fmdrv_common.h.

#define RDS_MSK_B_SET   22

Definition at line 55 of file fmdrv_common.h.

#define RDS_PAUSE_DUR_SET   19

Definition at line 52 of file fmdrv_common.h.

#define RDS_PAUSE_LVL_SET   18

Definition at line 51 of file fmdrv_common.h.

#define RDS_PI_MASK_SET   23

Definition at line 56 of file fmdrv_common.h.

#define RDS_PI_SET   24

Definition at line 57 of file fmdrv_common.h.

#define RDS_REP_SET   77

Definition at line 111 of file fmdrv_common.h.

#define RDS_SYNC_GET   4

Definition at line 41 of file fmdrv_common.h.

#define RDS_SYSTEM_SET   25

Definition at line 58 of file fmdrv_common.h.

#define READ_FMANT_TUNE_VALUE   104

Definition at line 134 of file fmdrv_common.h.

#define REF_ERR_CALIB_PARAM_SET   88

Definition at line 125 of file fmdrv_common.h.

#define REF_ERR_CALIB_PERIODICITY_SET   89

Definition at line 126 of file fmdrv_common.h.

#define REF_SET   57

Definition at line 92 of file fmdrv_common.h.

#define REG_RD   0x1

Definition at line 28 of file fmdrv_common.h.

#define REG_WR   0x0

Definition at line 29 of file fmdrv_common.h.

#define RESET   102

Definition at line 83 of file fmdrv_common.h.

#define RSSI_BLOCK_SCAN_DATA_GET   5

Definition at line 133 of file fmdrv_common.h.

#define RSSI_BLOCK_SCAN_FREQ_SET   95

Definition at line 131 of file fmdrv_common.h.

#define RSSI_BLOCK_SCAN_START   97

Definition at line 132 of file fmdrv_common.h.

#define RSSI_LVL_GET   1

Definition at line 38 of file fmdrv_common.h.

#define RX_ANTENNA_SELECT   87

Definition at line 123 of file fmdrv_common.h.

#define SEARCH_DIR_SET   27

Definition at line 60 of file fmdrv_common.h.

#define SEARCH_LVL_SET   15

Definition at line 48 of file fmdrv_common.h.

#define SOC_AUDIO_PATH_SET   83

Definition at line 128 of file fmdrv_common.h.

#define SOC_I2S_OVERRIDE   85

Definition at line 130 of file fmdrv_common.h.

#define SOC_INT_TRIGGER   52

Definition at line 127 of file fmdrv_common.h.

#define SOC_PCMI_OVERRIDE   84

Definition at line 129 of file fmdrv_common.h.

#define STEREO_GET   0

Definition at line 37 of file fmdrv_common.h.

#define STOP_SEARCH   46

Definition at line 78 of file fmdrv_common.h.

#define SWITCH2FREF   36

Definition at line 69 of file fmdrv_common.h.

#define TA_SET   78

Definition at line 115 of file fmdrv_common.h.

#define TP_SET   79

Definition at line 116 of file fmdrv_common.h.

#define TUNER_MODE_SET   45

Definition at line 77 of file fmdrv_common.h.

#define TX_AUDIO_INPUT_LEVEL_RANGE_SET   54

Definition at line 122 of file fmdrv_common.h.

#define TX_AUDIO_LEVEL_TEST   96

Definition at line 120 of file fmdrv_common.h.

#define TX_AUDIO_LEVEL_TEST_THRESHOLD   73

Definition at line 121 of file fmdrv_common.h.

#define TX_BAND_SET   65

Definition at line 99 of file fmdrv_common.h.

#define VOLUME_SET   28

Definition at line 61 of file fmdrv_common.h.

#define WRITE_HARDWARE_REG   100

Definition at line 81 of file fmdrv_common.h.

Function Documentation

struct fm_cmd_msg_hdr __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

int fmc_get_freq ( struct fmdev ,
u32  
)

Definition at line 1130 of file fmdrv_common.c.

int fmc_get_mode ( struct fmdev ,
u8  
)

Definition at line 1430 of file fmdrv_common.c.

int fmc_get_region ( struct fmdev ,
u8  
)
int fmc_is_rds_data_available ( struct fmdev ,
struct file ,
struct poll_table_struct  
)

Definition at line 1061 of file fmdrv_common.c.

int fmc_prepare ( struct fmdev )

Definition at line 1486 of file fmdrv_common.c.

int fmc_release ( struct fmdev )

Definition at line 1590 of file fmdrv_common.c.

int fmc_send_cmd ( struct fmdev ,
u8  ,
u16  ,
void ,
unsigned  int,
void ,
int  
)

Definition at line 459 of file fmdrv_common.c.

int fmc_set_freq ( struct fmdev ,
u32   
)

Definition at line 1116 of file fmdrv_common.c.

int fmc_set_mode ( struct fmdev ,
u8   
)

Definition at line 1377 of file fmdrv_common.c.

int fmc_set_mute_mode ( struct fmdev ,
u8   
)

Definition at line 1170 of file fmdrv_common.c.

int fmc_set_rds_mode ( struct fmdev ,
u8   
)

Definition at line 1198 of file fmdrv_common.c.

int fmc_set_region ( struct fmdev ,
u8   
)

Definition at line 1156 of file fmdrv_common.c.

int fmc_set_stereo_mono ( struct fmdev ,
u16   
)

Definition at line 1184 of file fmdrv_common.c.

int fmc_transfer_rds_from_internal_buff ( struct fmdev ,
struct file ,
u8 __user ,
size_t   
)

Definition at line 1072 of file fmdrv_common.c.

void fmc_update_region_info ( struct fmdev ,
u8   
)

Definition at line 251 of file fmdrv_common.c.

Variable Documentation

__u8 dlen

Definition at line 156 of file fmdrv_common.h.

Definition at line 152 of file fmdrv_common.h.

Definition at line 165 of file fmdrv_common.h.

__u8 len

Definition at line 153 of file fmdrv_common.h.

__u8 num_fm_hci_cmds

Definition at line 168 of file fmdrv_common.h.

Definition at line 154 of file fmdrv_common.h.

__u8 rd_wr

Definition at line 155 of file fmdrv_common.h.

Definition at line 167 of file fmdrv_common.h.