/**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef __UAPI_RADIO_IRIS_H #define __UAPI_RADIO_IRIS_H #include #include /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_TX_TONE_VAL 0x00 #define MAX_TX_TONE_VAL 0x07 #define MIN_HARD_MUTE_VAL 0x00 #define MAX_HARD_MUTE_VAL 0x03 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_SRCH_MODE 0x00 #define MAX_SRCH_MODE 0x09 #define MIN_SCAN_DWELL 0x00 #define MAX_SCAN_DWELL 0x0F /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_SIG_TH 0x00 #define MAX_SIG_TH 0x03 #define MIN_PTY 0X00 #define MAX_PTY 0x1F /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_PI 0x0000 #define MAX_PI 0xFFFF #define MIN_SRCH_STATIONS_CNT 0x00 #define MAX_SRCH_STATIONS_CNT 0x14 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_CHAN_SPACING 0x00 #define MAX_CHAN_SPACING 0x02 #define MIN_EMPHASIS 0x00 #define MAX_EMPHASIS 0x01 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_RDS_STD 0x00 #define MAX_RDS_STD 0x02 #define MIN_ANTENNA_VAL 0x00 #define MAX_ANTENNA_VAL 0x01 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_TX_PS_REPEAT_CNT 0x01 #define MAX_TX_PS_REPEAT_CNT 0x0F #define MIN_SOFT_MUTE 0x00 #define MAX_SOFT_MUTE 0x01 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_PEEK_ACCESS_LEN 0x01 #define MAX_PEEK_ACCESS_LEN 0xF9 #define MIN_RESET_CNTR 0x00 #define MAX_RESET_CNTR 0x01 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_HLSI 0x00 #define MAX_HLSI 0x02 #define MIN_NOTCH_FILTER 0x00 #define MAX_NOTCH_FILTER 0x02 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_INTF_DET_OUT_LW_TH 0x00 #define MAX_INTF_DET_OUT_LW_TH 0xFF #define MIN_INTF_DET_OUT_HG_TH 0x00 #define MAX_INTF_DET_OUT_HG_TH 0xFF /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_SINR_TH - 128 #define MAX_SINR_TH 127 #define MIN_SINR_SAMPLES 0x01 #define MAX_SINR_SAMPLES 0xFF /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MIN_BLEND_HI - 128 #define MAX_BLEND_HI 127 #define RADIO_HCI_COMMAND_HDR_SIZE sizeof(struct radio_hci_command_hdr) #define RADIO_HCI_EVENT_HDR_SIZE sizeof(struct radio_hci_event_hdr) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RADIO_HCI_COMMAND_PKT 0x11 #define RADIO_HCI_EVENT_PKT 0x14 #define MAX_RIVA_PEEK_RSP_SIZE 251 #define DEFAULT_DATA_OFFSET 2 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define DEFAULT_DATA_SIZE 249 #define FM_TX_PWR_LVL_STEP_SIZE 36 #define FM_TX_PWR_LVL_0 0 #define FM_TX_PWR_LVL_MAX 7 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define FM_TX_PHY_CFG_MODE 0x3c #define FM_TX_PHY_CFG_LEN 0x10 #define FM_TX_PWR_GAIN_OFFSET 14 #define FM_RDS_CNFG_MODE 0x0f /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define FM_RDS_CNFG_LEN 0x10 #define AF_RMSSI_TH_LSB_OFFSET 10 #define AF_RMSSI_TH_MSB_OFFSET 11 #define AF_RMSSI_SAMPLES_OFFSET 15 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define FM_RX_CONFG_MODE 0x15 #define FM_RX_CNFG_LEN 0x20 #define GD_CH_RMSSI_TH_OFFSET 12 #define MAX_GD_CH_RMSSI_TH 127 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SRCH_ALGO_TYPE_OFFSET 25 #define SINRFIRSTSTAGE_OFFSET 26 #define RMSSIFIRSTSTAGE_OFFSET 27 #define CF0TH12_BYTE1_OFFSET 8 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define CF0TH12_BYTE2_OFFSET 9 #define CF0TH12_BYTE3_OFFSET 10 #define CF0TH12_BYTE4_OFFSET 11 #define MAX_SINR_FIRSTSTAGE 127 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MAX_RMSSI_FIRSTSTAGE 127 #define RDS_PS0_XFR_MODE 0x01 #define RDS_PS0_LEN 6 #define RX_REPEATE_BYTE_OFFSET 5 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define FM_SPUR_TBL_SIZE 240 #define SPUR_DATA_LEN 16 #define ENTRIES_EACH_CMD 15 #define SPUR_DATA_INDEX 2 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define FM_AF_LIST_MAX_SIZE 200 #define AF_LIST_MAX (FM_AF_LIST_MAX_SIZE / 4) #define MAX_BLEND_INDEX 49 #define TUNE_PARAM 16 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define FM_RDS_3A_GRP (0x40) struct radio_hci_command_hdr { __le16 opcode; __u8 plen; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct radio_hci_event_hdr { __u8 evt; __u8 plen; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; #define HCI_OCF_FM_ENABLE_RECV_REQ 0x0001 #define HCI_OCF_FM_DISABLE_RECV_REQ 0x0002 #define HCI_OCF_FM_GET_RECV_CONF_REQ 0x0003 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_SET_RECV_CONF_REQ 0x0004 #define HCI_OCF_FM_SET_MUTE_MODE_REQ 0x0005 #define HCI_OCF_FM_SET_STEREO_MODE_REQ 0x0006 #define HCI_OCF_FM_SET_ANTENNA 0x0007 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_SET_SIGNAL_THRESHOLD 0x0008 #define HCI_OCF_FM_GET_SIGNAL_THRESHOLD 0x0009 #define HCI_OCF_FM_GET_STATION_PARAM_REQ 0x000A #define HCI_OCF_FM_GET_PROGRAM_SERVICE_REQ 0x000B /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_GET_RADIO_TEXT_REQ 0x000C #define HCI_OCF_FM_GET_AF_LIST_REQ 0x000D #define HCI_OCF_FM_SEARCH_STATIONS 0x000E #define HCI_OCF_FM_SEARCH_RDS_STATIONS 0x000F /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_SEARCH_STATIONS_LIST 0x0010 #define HCI_OCF_FM_CANCEL_SEARCH 0x0011 #define HCI_OCF_FM_RDS_GRP 0x0012 #define HCI_OCF_FM_RDS_GRP_PROCESS 0x0013 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_EN_WAN_AVD_CTRL 0x0014 #define HCI_OCF_FM_EN_NOTCH_CTRL 0x0015 #define HCI_OCF_FM_SET_EVENT_MASK 0x0016 #define HCI_OCF_FM_SET_CH_DET_THRESHOLD 0x0017 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_GET_CH_DET_THRESHOLD 0x0018 #define HCI_OCF_FM_SET_BLND_TBL 0x001B #define HCI_OCF_FM_GET_BLND_TBL 0x001C #define HCI_OCF_FM_ENABLE_TRANS_REQ 0x0001 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_DISABLE_TRANS_REQ 0x0002 #define HCI_OCF_FM_GET_TRANS_CONF_REQ 0x0003 #define HCI_OCF_FM_SET_TRANS_CONF_REQ 0x0004 #define HCI_OCF_FM_RDS_RT_REQ 0x0008 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_RDS_PS_REQ 0x0009 #define HCI_OCF_FM_TUNE_STATION_REQ 0x0001 #define HCI_OCF_FM_DEFAULT_DATA_READ 0x0002 #define HCI_OCF_FM_DEFAULT_DATA_WRITE 0x0003 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_RESET 0x0004 #define HCI_OCF_FM_GET_FEATURE_LIST 0x0005 #define HCI_OCF_FM_DO_CALIBRATION 0x0006 #define HCI_OCF_FM_SET_CALIBRATION 0x0007 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_SET_SPUR_TABLE 0x0008 #define HCI_OCF_FM_GET_SPUR_TABLE 0x0009 #define HCI_OCF_FM_READ_GRP_COUNTERS 0x0001 #define HCI_OCF_FM_PEEK_DATA 0x0002 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OCF_FM_POKE_DATA 0x0003 #define HCI_OCF_FM_SSBI_PEEK_REG 0x0004 #define HCI_OCF_FM_SSBI_POKE_REG 0x0005 #define HCI_OCF_FM_STATION_DBG_PARAM 0x0007 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_FM_SET_INTERNAL_TONE_GENRATOR 0x0008 #define HCI_OGF_FM_RECV_CTRL_CMD_REQ 0x0013 #define HCI_OGF_FM_TRANS_CTRL_CMD_REQ 0x0014 #define HCI_OGF_FM_COMMON_CTRL_CMD_REQ 0x0015 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_OGF_FM_STATUS_PARAMETERS_CMD_REQ 0x0016 #define HCI_OGF_FM_TEST_CMD_REQ 0x0017 #define HCI_OGF_FM_DIAGNOSTIC_CMD_REQ 0x003F #define hci_opcode_pack(ogf,ocf) ((__u16) ((ocf & 0x03ff) | (ogf << 10))) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define hci_opcode_ogf(op) (op >> 10) #define hci_opcode_ocf(op) (op & 0x03ff) #define hci_recv_ctrl_cmd_op_pack(ocf) ((__u16) hci_opcode_pack(HCI_OGF_FM_RECV_CTRL_CMD_REQ, ocf)) #define hci_trans_ctrl_cmd_op_pack(ocf) ((__u16) hci_opcode_pack(HCI_OGF_FM_TRANS_CTRL_CMD_REQ, ocf)) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define hci_common_cmd_op_pack(ocf) ((__u16) hci_opcode_pack(HCI_OGF_FM_COMMON_CTRL_CMD_REQ, ocf)) #define hci_status_param_op_pack(ocf) ((__u16) hci_opcode_pack(HCI_OGF_FM_STATUS_PARAMETERS_CMD_REQ, ocf)) #define hci_diagnostic_cmd_op_pack(ocf) ((__u16) hci_opcode_pack(HCI_OGF_FM_DIAGNOSTIC_CMD_REQ, ocf)) #define HCI_FM_ENABLE_RECV_CMD 1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_FM_DISABLE_RECV_CMD 2 #define HCI_FM_GET_RECV_CONF_CMD 3 #define HCI_FM_GET_STATION_PARAM_CMD 4 #define HCI_FM_GET_SIGNAL_TH_CMD 5 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_FM_GET_PROGRAM_SERVICE_CMD 6 #define HCI_FM_GET_RADIO_TEXT_CMD 7 #define HCI_FM_GET_AF_LIST_CMD 8 #define HCI_FM_CANCEL_SEARCH_CMD 9 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_FM_RESET_CMD 10 #define HCI_FM_GET_FEATURES_CMD 11 #define HCI_FM_STATION_DBG_PARAM_CMD 12 #define HCI_FM_ENABLE_TRANS_CMD 13 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_FM_DISABLE_TRANS_CMD 14 #define HCI_FM_GET_TX_CONFIG 15 #define HCI_FM_GET_DET_CH_TH_CMD 16 #define HCI_FM_GET_BLND_TBL_CMD 17 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define TX_PS_DATA_LENGTH 108 #define TX_RT_DATA_LENGTH 64 #define PS_STRING_LEN 9 struct hci_fm_recv_conf_req { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 emphasis; __u8 ch_spacing; __u8 rds_std; __u8 hlsi; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u32 band_low_limit; __u32 band_high_limit; } __packed; struct hci_fm_trans_conf_req_struct { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 emphasis; __u8 rds_std; __u32 band_low_limit; __u32 band_high_limit; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_tx_ps { __u8 ps_control; __u16 pi; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 pty; __u8 ps_repeatcount; __u8 ps_num; __u8 ps_data[TX_PS_DATA_LENGTH]; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_tx_rt { __u8 rt_control; __u16 pi; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 pty; __u8 rt_len; __u8 rt_data[TX_RT_DATA_LENGTH]; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_fm_mute_mode_req { __u8 hard_mute; __u8 soft_mute; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_fm_stereo_mode_req { __u8 stereo_mode; __u8 sig_blend; __u8 intf_blend; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 most_switch; } __packed; struct hci_fm_search_station_req { __u8 srch_mode; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 scan_time; __u8 srch_dir; } __packed; struct hci_fm_search_rds_station_req { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_fm_search_station_req srch_station; __u8 srch_pty; __u16 srch_pi; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_fm_search_station_list_req { __u8 srch_list_mode; __u8 srch_list_dir; __u32 srch_list_max; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 srch_pty; } __packed; struct hci_fm_rds_grp_req { __u32 rds_grp_enable_mask; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u32 rds_buf_size; __u8 en_rds_change_filter; } __packed; struct hci_fm_en_avd_ctrl_req { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 no_freqs; __u8 freq_index; __u8 lo_shft; __u16 freq_min; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u16 freq_max; } __packed; struct hci_fm_def_data_rd_req { __u8 mode; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 length; __u8 param_len; __u8 param; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_fm_def_data_wr_req { __u8 mode; __u8 length; __u8 data[DEFAULT_DATA_SIZE]; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_riva_data { __u8 subopcode; __u32 start_addr; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 length; } __packed; struct hci_fm_riva_poke { struct hci_fm_riva_data cmd_params; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 data[MAX_RIVA_PEEK_RSP_SIZE]; } __packed; struct hci_fm_ssbi_req { __u16 start_addr; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 data; } __packed; struct hci_fm_ssbi_peek { __u16 start_address; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_ch_det_threshold { char sinr; __u8 sinr_samples; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 low_th; __u8 high_th; } __packed; struct hci_fm_blend_table { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 ucBlendType; __u8 ucBlendRampRateUp; __u8 ucBlendDebounceNumSampleUp; __u8 ucBlendDebounceIdxUp; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 ucBlendSinrIdxSkipStep; __u8 scBlendSinrHi; __u8 scBlendRmssiHi; __u8 ucBlendIndexHi; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 ucBlendIndex[MAX_BLEND_INDEX]; } __packed; #define HCI_EV_TUNE_STATUS 0x01 #define HCI_EV_RDS_LOCK_STATUS 0x02 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_EV_STEREO_STATUS 0x03 #define HCI_EV_SERVICE_AVAILABLE 0x04 #define HCI_EV_SEARCH_PROGRESS 0x05 #define HCI_EV_SEARCH_RDS_PROGRESS 0x06 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_EV_SEARCH_LIST_PROGRESS 0x07 #define HCI_EV_RDS_RX_DATA 0x08 #define HCI_EV_PROGRAM_SERVICE 0x09 #define HCI_EV_RADIO_TEXT 0x0A /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_EV_FM_AF_LIST 0x0B #define HCI_EV_TX_RDS_GRP_AVBLE 0x0C #define HCI_EV_TX_RDS_GRP_COMPL 0x0D #define HCI_EV_TX_RDS_CONT_GRP_COMPL 0x0E /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_EV_CMD_COMPLETE 0x0F #define HCI_EV_CMD_STATUS 0x10 #define HCI_EV_TUNE_COMPLETE 0x11 #define HCI_EV_SEARCH_COMPLETE 0x12 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_EV_SEARCH_RDS_COMPLETE 0x13 #define HCI_EV_SEARCH_LIST_COMPLETE 0x14 #define HCI_REQ_DONE 0 #define HCI_REQ_PEND 1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HCI_REQ_CANCELED 2 #define HCI_REQ_STATUS 3 #define MAX_RAW_RDS_GRPS 21 #define RDSGRP_DATA_OFFSET 0x1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define DUMMY_CLASS 0 #define RT_PLUS_LEN_1_TAG 3 #define RT_ERT_FLAG_BIT 5 #define TAG1_MSB_OFFSET 3 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define TAG1_MSB_MASK 7 #define TAG1_LSB_OFFSET 5 #define TAG1_POS_MSB_MASK 31 #define TAG1_POS_MSB_OFFSET 1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define TAG1_POS_LSB_OFFSET 7 #define TAG1_LEN_OFFSET 1 #define TAG1_LEN_MASK 63 #define TAG2_MSB_OFFSET 5 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define TAG2_MSB_MASK 1 #define TAG2_LSB_OFFSET 3 #define TAG2_POS_MSB_MASK 7 #define TAG2_POS_MSB_OFFSET 3 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define TAG2_POS_LSB_OFFSET 5 #define TAG2_LEN_MASK 31 #define AGT_MASK 31 #define AGT(x) (x & AGT_MASK) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define AID(lsb,msb) ((msb << 8) | (lsb)) #define GTC(blk2msb) (blk2msb >> 3) #define GRP_3A 0x6 #define RT_PLUS_AID 0x4bd7 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ERT_AID 0x6552 #define CARRIAGE_RETURN 0x000D #define MAX_ERT_SEGMENT 31 #define ERT_FORMAT_DIR_BIT 1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define EXTRACT_BIT(data,bit_pos) ((data & (1 << bit_pos)) >> bit_pos) struct hci_ev_tune_status { __u8 sub_event; __le32 station_freq; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 serv_avble; char rssi; __u8 stereo_prg; __u8 rds_sync_status; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 mute_mode; char sinr; __u8 intf_det_th; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct rds_blk_data { __u8 rdsMsb; __u8 rdsLsb; __u8 blockStatus; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct rds_grp_data { struct rds_blk_data rdsBlk[4]; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_ev_rds_rx_data { __u8 num_rds_grps; struct rds_grp_data rds_grp_data[MAX_RAW_RDS_GRPS]; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_ev_prg_service { __le16 pi_prg_id; __u8 pty_prg_type; __u8 ta_prg_code_type; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 ta_ann_code_flag; __u8 ms_switch_code_flag; __u8 dec_id_ctrl_code_flag; __u8 ps_num; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 prg_service_name[119]; } __packed; struct hci_ev_radio_text { __le16 pi_prg_id; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 pty_prg_type; __u8 ta_prg_code_type; __u8 txt_ab_flag; __u8 radio_txt[64]; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_ev_af_list { __le32 tune_freq; __le16 pi_code; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 af_size; __u8 af_list[FM_AF_LIST_MAX_SIZE]; } __packed; struct hci_ev_cmd_complete { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 num_hci_cmd_pkts; __le16 cmd_opcode; } __packed; struct hci_ev_cmd_status { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 status; __u8 num_hci_cmd_pkts; __le16 status_opcode; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_ev_srch_st { __le32 station_freq; __u8 rds_cap; __u8 pty; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __le16 status_opcode; } __packed; struct hci_ev_rel_freq { __u8 rel_freq_msb; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 rel_freq_lsb; } __packed; struct hci_ev_srch_list_compl { __u8 num_stations_found; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_ev_rel_freq rel_freq[20]; } __packed; struct hci_fm_conf_rsp { __u8 status; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_fm_recv_conf_req recv_conf_rsp; } __packed; struct hci_fm_get_trans_conf_rsp { __u8 status; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct hci_fm_trans_conf_req_struct trans_conf_rsp; } __packed; struct hci_fm_sig_threshold_rsp { __u8 status; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 sig_threshold; } __packed; struct hci_fm_station_rsp { struct hci_ev_tune_status station_rsp; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_prgm_srv_rsp { __u8 status; struct hci_ev_prg_service prg_srv; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_radio_txt_rsp { __u8 status; struct hci_ev_radio_text rd_txt; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_af_list_rsp { __u8 status; struct hci_ev_af_list rd_txt; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } __packed; struct hci_fm_data_rd_rsp { __u8 status; __u8 ret_data_len; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 data[DEFAULT_DATA_SIZE]; } __packed; struct hci_fm_feature_list_rsp { __u8 status; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 feature_mask; } __packed; struct hci_fm_dbg_param_rsp { __u8 status; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 blend; __u8 soft_mute; __u8 inf_blend; __u8 inf_soft_mute; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 pilot_pil; __u8 io_verc; __u8 in_det_out; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define CLKSPURID_INDEX0 0 #define CLKSPURID_INDEX1 5 #define CLKSPURID_INDEX2 10 #define CLKSPURID_INDEX3 15 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define CLKSPURID_INDEX4 20 #define CLKSPURID_INDEX5 25 #define MAX_SPUR_FREQ_LIMIT 30 #define CKK_SPUR 0x3B /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SPUR_DATA_SIZE 0x4 #define SPUR_ENTRIES_PER_ID 0x5 #define COMPUTE_SPUR(val) ((((val) - (76000)) / (50))) #define GET_FREQ(val,bit) ((bit == 1) ? ((val) >> 8) : ((val) & 0xFF)) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define GET_SPUR_ENTRY_LEVEL(val) ((val) / (5)) struct hci_fm_spur_data { __u32 freq[MAX_SPUR_FREQ_LIMIT]; __s8 rmssi[MAX_SPUR_FREQ_LIMIT]; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 enable[MAX_SPUR_FREQ_LIMIT]; } __packed; #define RADIO_HCI_DEV_REG 1 #define RADIO_HCI_DEV_WRITE 2 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RDS_PTYPE 2 #define RDS_PID_LOWER 1 #define RDS_PID_HIGHER 0 #define RDS_OFFSET 5 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RDS_PS_LENGTH_OFFSET 7 #define RDS_STRING 8 #define RDS_PS_DATA_OFFSET 8 #define RDS_CONFIG_OFFSET 3 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RDS_AF_JUMP_OFFSET 4 #define PI_CODE_OFFSET 4 #define AF_SIZE_OFFSET 6 #define AF_LIST_OFFSET 7 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RT_A_B_FLAG_OFFSET 4 enum radio_state_t { FM_OFF, FM_RECV, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ FM_TRANS, FM_RESET, FM_CALIB, FM_TURNING_OFF, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ FM_RECV_TURNING_ON, FM_TRANS_TURNING_ON, FM_MAX_NO_STATES, }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ enum emphasis_type { FM_RX_EMP75 = 0x0, FM_RX_EMP50 = 0x1 }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ enum channel_space_type { FM_RX_SPACE_200KHZ = 0x0, FM_RX_SPACE_100KHZ = 0x1, FM_RX_SPACE_50KHZ = 0x2 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; enum high_low_injection { AUTO_HI_LO_INJECTION = 0x0, LOW_SIDE_INJECTION = 0x1, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ HIGH_SIDE_INJECTION = 0x2 }; enum fm_rds_type { FM_RX_RDBS_SYSTEM = 0x0, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ FM_RX_RDS_SYSTEM = 0x1 }; enum iris_region_t { IRIS_REGION_US, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ IRIS_REGION_EU, IRIS_REGION_JAPAN, IRIS_REGION_JAPAN_WIDE, IRIS_REGION_OTHER /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; #define STD_BUF_SIZE (256) enum iris_buf_t { IRIS_BUF_SRCH_LIST, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ IRIS_BUF_EVENTS, IRIS_BUF_RT_RDS, IRIS_BUF_PS_RDS, IRIS_BUF_RAW_RDS, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ IRIS_BUF_AF_LIST, IRIS_BUF_PEEK, IRIS_BUF_SSBI_PEEK, IRIS_BUF_RDS_CNTRS, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ IRIS_BUF_RD_DEFAULT, IRIS_BUF_CAL_DATA, IRIS_BUF_RT_PLUS, IRIS_BUF_ERT, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ IRIS_BUF_SPUR, IRIS_BUF_MAX, }; enum iris_xfr_t { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ IRIS_XFR_SYNC, IRIS_XFR_ERROR, IRIS_XFR_SRCH_LIST, IRIS_XFR_RT_RDS, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ IRIS_XFR_PS_RDS, IRIS_XFR_AF_LIST, IRIS_XFR_MAX }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ enum search_t { SEEK, SCAN, SCAN_FOR_STRONG, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ SCAN_FOR_WEAK, RDS_SEEK_PTY, RDS_SCAN_PTY, RDS_SEEK_PI, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ RDS_AF_JUMP, }; enum spur_entry_levels { ENTRY_0, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ ENTRY_1, ENTRY_2, ENTRY_3, ENTRY_4, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ ENTRY_5, }; #define REGION_US_EU_BAND_LOW 87500 #define REGION_US_EU_BAND_HIGH 108000 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define REGION_JAPAN_STANDARD_BAND_LOW 76000 #define REGION_JAPAN_STANDARD_BAND_HIGH 90000 #define REGION_JAPAN_WIDE_BAND_LOW 90000 #define REGION_JAPAN_WIDE_BAND_HIGH 108000 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SRCH_MODE 0x07 #define SRCH_DIR 0x08 #define SCAN_DWELL 0x70 #define SRCH_ON 0x80 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define IOC_HRD_MUTE 0x03 #define IOC_SFT_MUTE 0x01 #define IOC_MON_STR 0x01 #define IOC_SIG_BLND 0x01 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define IOC_INTF_BLND 0x01 #define IOC_ANTENNA 0x01 #define RDS_ON 0x01 #define RDS_BUF_SZ 100 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RDS_BLOCKS_NUM (4) #define BYTES_PER_BLOCK (3) #define MAX_PS_LENGTH (108) #define MAX_RT_LENGTH (64) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RDS_GRP_CNTR_LEN (36) #define RX_RT_DATA_LENGTH (63) #define SRCH_DIR_UP (0) #define SRCH_DIR_DOWN (1) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SEARCH_RDS_STNS_MODE_OFFSET 4 #define PARAMS_PER_STATION 0x08 #define STN_NUM_OFFSET 0x01 #define STN_FREQ_OFFSET 0x02 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define KHZ_TO_MHZ 1000 #define GET_MSB(x) ((x >> 8) & 0xFF) #define GET_LSB(x) ((x) & 0xFF) #define CTRL_ON (1) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define CTRL_OFF (0) #define RIVA_PEEK_OPCODE 0x0D #define RIVA_POKE_OPCODE 0x0C #define PEEK_DATA_OFSET 0x1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RIVA_PEEK_PARAM 0x6 #define RIVA_PEEK_LEN_OFSET 0x6 #define SSBI_PEEK_LEN 0x01 #define PROCS_CALIB_MODE 1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define PROCS_CALIB_SIZE 23 #define DC_CALIB_MODE 2 #define DC_CALIB_SIZE 48 #define RSB_CALIB_MODE 3 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define RSB_CALIB_SIZE 4 #define CALIB_DATA_OFSET 2 #define CALIB_MODE_OFSET 1 #define MAX_CALIB_SIZE 75 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define INVALID_CHANNEL (0) #define VALID_CHANNEL (1) struct hci_fm_set_cal_req_proc { __u8 mode; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 data[PROCS_CALIB_SIZE]; } __packed; struct hci_fm_set_cal_req_dc { __u8 mode; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 data[DC_CALIB_SIZE]; } __packed; struct hci_cc_do_calibration_rsp { __u8 status; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 mode; __u8 data[MAX_CALIB_SIZE]; } __packed; struct hci_fm_set_spur_table_req { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __u8 mode; __u8 no_of_freqs_entries; __u8 spur_data[FM_SPUR_TBL_SIZE]; } __packed; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SIG_LEVEL_INTR (1 << 0) #define RDS_SYNC_INTR (1 << 1) #define AUDIO_CTRL_INTR (1 << 2) #define AF_JUMP_ENABLE (1 << 4) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif