Venkateshwarlu Domakonda | ac31b78 | 2013-04-05 15:12:32 +0530 | [diff] [blame] | 1 | #ifndef __RADIO_IRIS_COMMANDS_H |
| 2 | #define __RADIO_IRIS_COMMANDS_H |
| 3 | |
| 4 | #include <linux/skbuff.h> |
| 5 | #include <linux/interrupt.h> |
| 6 | #include <linux/mutex.h> |
| 7 | #include <linux/atomic.h> |
| 8 | |
| 9 | enum v4l2_cid_private_iris_t { |
| 10 | V4L2_CID_PRIVATE_IRIS_SRCHMODE = (0x08000000 + 1), |
| 11 | V4L2_CID_PRIVATE_IRIS_SCANDWELL, |
| 12 | V4L2_CID_PRIVATE_IRIS_SRCHON, |
| 13 | V4L2_CID_PRIVATE_IRIS_STATE, |
| 14 | V4L2_CID_PRIVATE_IRIS_TRANSMIT_MODE, |
| 15 | V4L2_CID_PRIVATE_IRIS_RDSGROUP_MASK, |
| 16 | V4L2_CID_PRIVATE_IRIS_REGION, |
| 17 | V4L2_CID_PRIVATE_IRIS_SIGNAL_TH, |
| 18 | V4L2_CID_PRIVATE_IRIS_SRCH_PTY, |
| 19 | V4L2_CID_PRIVATE_IRIS_SRCH_PI, |
| 20 | V4L2_CID_PRIVATE_IRIS_SRCH_CNT, |
| 21 | V4L2_CID_PRIVATE_IRIS_EMPHASIS, |
| 22 | V4L2_CID_PRIVATE_IRIS_RDS_STD, |
| 23 | V4L2_CID_PRIVATE_IRIS_SPACING, |
| 24 | V4L2_CID_PRIVATE_IRIS_RDSON, |
| 25 | V4L2_CID_PRIVATE_IRIS_RDSGROUP_PROC, |
| 26 | V4L2_CID_PRIVATE_IRIS_LP_MODE, |
| 27 | V4L2_CID_PRIVATE_IRIS_ANTENNA, |
| 28 | V4L2_CID_PRIVATE_IRIS_RDSD_BUF, |
| 29 | V4L2_CID_PRIVATE_IRIS_PSALL, /*0x8000014*/ |
| 30 | |
| 31 | /*v4l2 Tx controls*/ |
| 32 | V4L2_CID_PRIVATE_IRIS_TX_SETPSREPEATCOUNT, |
| 33 | V4L2_CID_PRIVATE_IRIS_STOP_RDS_TX_PS_NAME, |
| 34 | V4L2_CID_PRIVATE_IRIS_STOP_RDS_TX_RT, |
| 35 | V4L2_CID_PRIVATE_IRIS_IOVERC, |
| 36 | V4L2_CID_PRIVATE_IRIS_INTDET, |
| 37 | V4L2_CID_PRIVATE_IRIS_MPX_DCC, |
| 38 | V4L2_CID_PRIVATE_IRIS_AF_JUMP, |
| 39 | V4L2_CID_PRIVATE_IRIS_RSSI_DELTA, |
| 40 | V4L2_CID_PRIVATE_IRIS_HLSI, /*0x800001d*/ |
| 41 | |
| 42 | /*Diagnostic commands*/ |
| 43 | V4L2_CID_PRIVATE_IRIS_SOFT_MUTE, |
| 44 | V4L2_CID_PRIVATE_IRIS_RIVA_ACCS_ADDR, |
| 45 | V4L2_CID_PRIVATE_IRIS_RIVA_ACCS_LEN, |
| 46 | V4L2_CID_PRIVATE_IRIS_RIVA_PEEK, |
| 47 | V4L2_CID_PRIVATE_IRIS_RIVA_POKE, |
| 48 | V4L2_CID_PRIVATE_IRIS_SSBI_ACCS_ADDR, |
| 49 | V4L2_CID_PRIVATE_IRIS_SSBI_PEEK, |
| 50 | V4L2_CID_PRIVATE_IRIS_SSBI_POKE, |
| 51 | V4L2_CID_PRIVATE_IRIS_TX_TONE, |
| 52 | V4L2_CID_PRIVATE_IRIS_RDS_GRP_COUNTERS, |
| 53 | V4L2_CID_PRIVATE_IRIS_SET_NOTCH_FILTER, /* 0x8000028 */ |
| 54 | V4L2_CID_PRIVATE_IRIS_SET_AUDIO_PATH, /* TAVARUA specific command */ |
| 55 | V4L2_CID_PRIVATE_IRIS_DO_CALIBRATION, |
| 56 | V4L2_CID_PRIVATE_IRIS_SRCH_ALGORITHM, /* TAVARUA specific command */ |
| 57 | V4L2_CID_PRIVATE_IRIS_GET_SINR, |
| 58 | V4L2_CID_PRIVATE_INTF_LOW_THRESHOLD, |
| 59 | V4L2_CID_PRIVATE_INTF_HIGH_THRESHOLD, |
| 60 | V4L2_CID_PRIVATE_SINR_THRESHOLD, |
| 61 | V4L2_CID_PRIVATE_SINR_SAMPLES, |
| 62 | V4L2_CID_PRIVATE_SPUR_FREQ, |
| 63 | V4L2_CID_PRIVATE_SPUR_FREQ_RMSSI, |
| 64 | V4L2_CID_PRIVATE_SPUR_SELECTION, |
| 65 | V4L2_CID_PRIVATE_UPDATE_SPUR_TABLE, |
| 66 | V4L2_CID_PRIVATE_VALID_CHANNEL, |
| 67 | V4L2_CID_PRIVATE_AF_RMSSI_TH, |
| 68 | V4L2_CID_PRIVATE_AF_RMSSI_SAMPLES, |
| 69 | V4L2_CID_PRIVATE_GOOD_CH_RMSSI_TH, |
| 70 | V4L2_CID_PRIVATE_SRCHALGOTYPE, |
| 71 | V4L2_CID_PRIVATE_CF0TH12, |
| 72 | V4L2_CID_PRIVATE_SINRFIRSTSTAGE, |
| 73 | V4L2_CID_PRIVATE_RMSSIFIRSTSTAGE, |
| 74 | |
| 75 | /*using private CIDs under userclass*/ |
| 76 | V4L2_CID_PRIVATE_IRIS_READ_DEFAULT = 0x00980928, |
| 77 | V4L2_CID_PRIVATE_IRIS_WRITE_DEFAULT, |
| 78 | V4L2_CID_PRIVATE_IRIS_SET_CALIBRATION, |
| 79 | }; |
| 80 | |
| 81 | enum iris_evt_t { |
| 82 | IRIS_EVT_RADIO_READY, |
| 83 | IRIS_EVT_TUNE_SUCC, |
| 84 | IRIS_EVT_SEEK_COMPLETE, |
| 85 | IRIS_EVT_SCAN_NEXT, |
| 86 | IRIS_EVT_NEW_RAW_RDS, |
| 87 | IRIS_EVT_NEW_RT_RDS, |
| 88 | IRIS_EVT_NEW_PS_RDS, |
| 89 | IRIS_EVT_ERROR, |
| 90 | IRIS_EVT_BELOW_TH, |
| 91 | IRIS_EVT_ABOVE_TH, |
| 92 | IRIS_EVT_STEREO, |
| 93 | IRIS_EVT_MONO, |
| 94 | IRIS_EVT_RDS_AVAIL, |
| 95 | IRIS_EVT_RDS_NOT_AVAIL, |
| 96 | IRIS_EVT_NEW_SRCH_LIST, |
| 97 | IRIS_EVT_NEW_AF_LIST, |
| 98 | IRIS_EVT_TXRDSDAT, |
| 99 | IRIS_EVT_TXRDSDONE, |
| 100 | IRIS_EVT_RADIO_DISABLED, |
| 101 | IRIS_EVT_NEW_ODA, |
| 102 | IRIS_EVT_NEW_RT_PLUS, |
| 103 | IRIS_EVT_NEW_ERT, |
| 104 | }; |
| 105 | #endif /* __RADIO_IRIS_COMMANDS_H */ |