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

Go to the source code of this file.

Data Structures

struct  hci_s
 

Macros

#define HCI_HEADER_SIZE   4
 
#define HCI_VALUE_OFFS   (HCI_HEADER_SIZE)
 
#define HCI_MAX_PACKET   2048
 
#define HCI_MAX_PARAM   (HCI_MAX_PACKET-HCI_HEADER_SIZE)
 
#define HCI_MAX_TLV   32
 
#define WIMAX_RESET   0x0000
 
#define WIMAX_SET_INFO   0x0001
 
#define WIMAX_GET_INFO   0x0002
 
#define WIMAX_GET_INFO_RESULT   0x8003
 
#define WIMAX_RADIO_OFF   0x0004
 
#define WIMAX_RADIO_ON   0x0006
 
#define WIMAX_WIMAX_RESET   0x0007 /* Is this still here */
 
#define WIMAX_NET_ENTRY   0x0100
 
#define WIMAX_NET_DISCONN   0x0102
 
#define WIMAX_ENTER_SLEEP   0x0103
 
#define WIMAX_EXIT_SLEEP   0x0104
 
#define WIMAX_ENTER_IDLE   0x0105
 
#define WIMAX_EXIT_IDLE   0x0106
 
#define WIMAX_MODE_CHANGE   0x8108
 
#define WIMAX_HANDOVER   0x8109 /* obsolete */
 
#define WIMAX_SCAN   0x010d
 
#define WIMAX_SCAN_COMPLETE   0x810e
 
#define WIMAX_SCAN_RESULT   0x810f
 
#define WIMAX_CONNECT   0x0110
 
#define WIMAX_CONNECT_START   0x8111
 
#define WIMAX_CONNECT_COMPLETE   0x8112
 
#define WIMAX_ASSOC_START   0x8113
 
#define WIMAX_ASSOC_COMPLETE   0x8114
 
#define WIMAX_DISCONN_IND   0x8115
 
#define WIMAX_ENTRY_IND   0x8116
 
#define WIMAX_HO_START   0x8117
 
#define WIMAX_HO_COMPLETE   0x8118
 
#define WIMAX_RADIO_STATE_IND   0x8119
 
#define WIMAX_IP_RENEW_IND   0x811a
 
#define WIMAX_DISCOVER_NSP   0x011d
 
#define WIMAX_DISCOVER_NSP_RESULT   0x811e
 
#define WIMAX_SDU_TX_FLOW   0x8125
 
#define WIMAX_TX_EAP   0x0200
 
#define WIMAX_RX_EAP   0x8201
 
#define WIMAX_TX_SDU   0x0202
 
#define WIMAX_RX_SDU   0x8203
 
#define WIMAX_RX_SDU_AGGR   0x8204
 
#define WIMAX_TX_SDU_AGGR   0x0205
 
#define WIMAX_DM_CMD   0x030a
 
#define WIMAX_DM_RSP   0x830b
 
#define WIMAX_CLI_CMD   0x030c
 
#define WIMAX_CLI_RSP   0x830d
 
#define WIMAX_DL_IMAGE   0x0310
 
#define WIMAX_DL_IMAGE_STATUS   0x8311
 
#define WIMAX_UL_IMAGE   0x0312
 
#define WIMAX_UL_IMAGE_RESULT   0x8313
 
#define WIMAX_UL_IMAGE_STATUS   0x0314
 
#define WIMAX_EVT_MODEM_REPORT   0x8325
 
#define WIMAX_FSM_UPDATE   0x8F01
 
#define WIMAX_IF_UPDOWN   0x8F02
 
#define WIMAX_IF_UP   1
 
#define WIMAX_IF_DOWN   2
 
#define W_NULL   0
 
#define W_STANDBY   1
 
#define W_OOZ   2
 
#define W_AWAKE   3
 
#define W_IDLE   4
 
#define W_SLEEP   5
 
#define W_WAIT   6
 
#define W_NET_ENTRY_RNG   0x80
 
#define W_NET_ENTRY_SBC   0x81
 
#define W_NET_ENTRY_PKM   0x82
 
#define W_NET_ENTRY_REG   0x83
 
#define W_NET_ENTRY_DSX   0x84
 
#define W_NET_ENTRY_RNG_FAIL   0x1100100
 
#define W_NET_ENTRY_SBC_FAIL   0x1100200
 
#define W_NET_ENTRY_PKM_FAIL   0x1102000
 
#define W_NET_ENTRY_REG_FAIL   0x1103000
 
#define W_NET_ENTRY_DSX_FAIL   0x1104000
 
#define W_SCAN_ALL_CHANNEL   0
 
#define W_SCAN_ALL_SUBSCRIPTION   1
 
#define W_SCAN_SPECIFIED_SUBSCRIPTION   2
 
#define TLV_L(x)   (((x) >> 16) & 0xff)
 
#define TLV_T(x)   ((x) & 0xff)
 
#define TLV_COMPOSITE(x)   ((x) >> 31)
 
#define T_MAC_ADDRESS   (0x00 | (6 << 16))
 
#define T_BSID   (0x01 | (6 << 16))
 
#define T_MSK   (0x02 | (64 << 16))
 
#define T_RSSI_THRSHLD   (0x03 | (1 << 16))
 
#define T_FREQUENCY   (0x04 | (4 << 16))
 
#define T_CONN_CS_TYPE   (0x05 | (1 << 16))
 
#define T_HOST_IP_VER   (0x06 | (1 << 16))
 
#define T_STBY_SCAN_INTERVAL   (0x07 | (4 << 16))
 
#define T_OOZ_SCAN_INTERVAL   (0x08 | (4 << 16))
 
#define T_IMEI   (0x09 | (8 << 16))
 
#define T_PID   (0x0a | (12 << 16))
 
#define T_CAPABILITY   (0x1a | (4 << 16))
 
#define T_RELEASE_NUMBER   (0x1b | (4 << 16))
 
#define T_DRIVER_REVISION   (0x1c | (4 << 16))
 
#define T_FW_REVISION   (0x1d | (4 << 16))
 
#define T_MAC_HW_REVISION   (0x1e | (4 << 16))
 
#define T_PHY_HW_REVISION   (0x1f | (4 << 16))
 
#define T_SCAN_INTERVAL   (0x20 | (1 << 16))
 
#define T_RSC_RETAIN_TIME   (0x2f | (2 << 16))
 
#define T_TYPE1_ISW   (0x40 | (1 << 16))
 
#define T_SLP_START_TO   (0x4a | (2 << 16))
 
#define T_IDLE_MODE_TO   (0x50 | (2 << 16))
 
#define T_IDLE_START_TO   (0x54 | (2 << 16))
 
#define T_RSSI   (0x60 | (1 << 16))
 
#define T_CINR   (0x61 | (1 << 16))
 
#define T_TX_POWER   (0x6a | (1 << 16))
 
#define T_CUR_FREQ   (0x7f | (4 << 16))
 
#define T_MAX_SUBSCRIPTION   (0xa1 | (1 << 16))
 
#define T_MAX_SF   (0xa2 | (1 << 16))
 
#define T_PHY_TYPE   (0xa3 | (1 << 16))
 
#define T_PKM   (0xa4 | (1 << 16))
 
#define T_AUTH_POLICY   (0xa5 | (1 << 16))
 
#define T_CS_TYPE   (0xa6 | (2 << 16))
 
#define T_VENDOR_NAME   (0xa7 | (0 << 16))
 
#define T_MOD_NAME   (0xa8 | (0 << 16))
 
#define T_PACKET_FILTER   (0xa9 | (1 << 16))
 
#define T_NSP_CHANGE_COUNT   (0xaa | (4 << 16))
 
#define T_RADIO_STATE   (0xab | (1 << 16))
 
#define T_URI_CONTACT_TYPE   (0xac | (1 << 16))
 
#define T_URI_TEXT   (0xad | (0 << 16))
 
#define T_URI   (0xae | (0 << 16))
 
#define T_ENABLE_AUTH   (0xaf | (1 << 16))
 
#define T_TIMEOUT   (0xb0 | (2 << 16))
 
#define T_RUN_MODE   (0xb1 | (1 << 16))
 
#define T_OMADMT_VER   (0xb2 | (4 << 16))
 
#define T_RTC_TIME   (0xb3 | (4 << 16))
 
#define T_CERT_STATUS   (0xb4 | (4 << 16))
 
#define T_CERT_MASK   (0xb5 | (4 << 16))
 
#define T_EMSK   (0xb6 | (64 << 16))
 
#define T_SUBSCRIPTION_LIST   (0xd1 | (0 << 16) | (1 << 31))
 
#define T_H_NSPID   (0xd2 | (3 << 16))
 
#define T_NSP_NAME   (0xd3 | (0 << 16))
 
#define T_SUBSCRIPTION_NAME   (0xd4 | (0 << 16))
 
#define T_SUBSCRIPTION_FLAG   (0xd5 | (2 << 16))
 
#define T_V_NSPID   (0xd6 | (3 << 16))
 
#define T_NAP_ID   (0xd7 | (3 << 16))
 
#define T_PREAMBLES   (0xd8 | (15 << 16))
 
#define T_BW   (0xd9 | (4 << 16))
 
#define T_FFTSIZE   (0xda | (4 << 16))
 
#define T_DUPLEX_MODE   (0xdb | (4 << 16))
 

Variables

struct hci_s __packed
 

Macro Definition Documentation

#define HCI_HEADER_SIZE   4

Definition at line 17 of file hci.h.

#define HCI_MAX_PACKET   2048

Definition at line 19 of file hci.h.

#define HCI_MAX_PARAM   (HCI_MAX_PACKET-HCI_HEADER_SIZE)

Definition at line 20 of file hci.h.

#define HCI_MAX_TLV   32

Definition at line 21 of file hci.h.

#define HCI_VALUE_OFFS   (HCI_HEADER_SIZE)

Definition at line 18 of file hci.h.

#define T_AUTH_POLICY   (0xa5 | (1 << 16))

Definition at line 179 of file hci.h.

#define T_BSID   (0x01 | (6 << 16))

Definition at line 134 of file hci.h.

#define T_BW   (0xd9 | (4 << 16))

Definition at line 208 of file hci.h.

#define T_CAPABILITY   (0x1a | (4 << 16))

Definition at line 145 of file hci.h.

#define T_CERT_MASK   (0xb5 | (4 << 16))

Definition at line 196 of file hci.h.

#define T_CERT_STATUS   (0xb4 | (4 << 16))

Definition at line 195 of file hci.h.

#define T_CINR   (0x61 | (1 << 16))

Definition at line 169 of file hci.h.

#define T_CONN_CS_TYPE   (0x05 | (1 << 16))

Definition at line 138 of file hci.h.

#define T_CS_TYPE   (0xa6 | (2 << 16))

Definition at line 180 of file hci.h.

#define T_CUR_FREQ   (0x7f | (4 << 16))

Definition at line 171 of file hci.h.

#define T_DRIVER_REVISION   (0x1c | (4 << 16))

Definition at line 147 of file hci.h.

#define T_DUPLEX_MODE   (0xdb | (4 << 16))

Definition at line 210 of file hci.h.

#define T_EMSK   (0xb6 | (64 << 16))

Definition at line 197 of file hci.h.

#define T_ENABLE_AUTH   (0xaf | (1 << 16))

Definition at line 189 of file hci.h.

#define T_FFTSIZE   (0xda | (4 << 16))

Definition at line 209 of file hci.h.

#define T_FREQUENCY   (0x04 | (4 << 16))

Definition at line 137 of file hci.h.

#define T_FW_REVISION   (0x1d | (4 << 16))

Definition at line 148 of file hci.h.

#define T_H_NSPID   (0xd2 | (3 << 16))

Definition at line 201 of file hci.h.

#define T_HOST_IP_VER   (0x06 | (1 << 16))

Definition at line 139 of file hci.h.

#define T_IDLE_MODE_TO   (0x50 | (2 << 16))

Definition at line 163 of file hci.h.

#define T_IDLE_START_TO   (0x54 | (2 << 16))

Definition at line 165 of file hci.h.

#define T_IMEI   (0x09 | (8 << 16))

Definition at line 142 of file hci.h.

#define T_MAC_ADDRESS   (0x00 | (6 << 16))

Definition at line 133 of file hci.h.

#define T_MAC_HW_REVISION   (0x1e | (4 << 16))

Definition at line 149 of file hci.h.

#define T_MAX_SF   (0xa2 | (1 << 16))

Definition at line 176 of file hci.h.

#define T_MAX_SUBSCRIPTION   (0xa1 | (1 << 16))

Definition at line 175 of file hci.h.

#define T_MOD_NAME   (0xa8 | (0 << 16))

Definition at line 182 of file hci.h.

#define T_MSK   (0x02 | (64 << 16))

Definition at line 135 of file hci.h.

#define T_NAP_ID   (0xd7 | (3 << 16))

Definition at line 206 of file hci.h.

#define T_NSP_CHANGE_COUNT   (0xaa | (4 << 16))

Definition at line 184 of file hci.h.

#define T_NSP_NAME   (0xd3 | (0 << 16))

Definition at line 202 of file hci.h.

#define T_OMADMT_VER   (0xb2 | (4 << 16))

Definition at line 192 of file hci.h.

#define T_OOZ_SCAN_INTERVAL   (0x08 | (4 << 16))

Definition at line 141 of file hci.h.

#define T_PACKET_FILTER   (0xa9 | (1 << 16))

Definition at line 183 of file hci.h.

#define T_PHY_HW_REVISION   (0x1f | (4 << 16))

Definition at line 150 of file hci.h.

#define T_PHY_TYPE   (0xa3 | (1 << 16))

Definition at line 177 of file hci.h.

#define T_PID   (0x0a | (12 << 16))

Definition at line 143 of file hci.h.

#define T_PKM   (0xa4 | (1 << 16))

Definition at line 178 of file hci.h.

#define T_PREAMBLES   (0xd8 | (15 << 16))

Definition at line 207 of file hci.h.

#define T_RADIO_STATE   (0xab | (1 << 16))

Definition at line 185 of file hci.h.

#define T_RELEASE_NUMBER   (0x1b | (4 << 16))

Definition at line 146 of file hci.h.

#define T_RSC_RETAIN_TIME   (0x2f | (2 << 16))

Definition at line 155 of file hci.h.

#define T_RSSI   (0x60 | (1 << 16))

Definition at line 168 of file hci.h.

#define T_RSSI_THRSHLD   (0x03 | (1 << 16))

Definition at line 136 of file hci.h.

#define T_RTC_TIME   (0xb3 | (4 << 16))

Definition at line 194 of file hci.h.

#define T_RUN_MODE   (0xb1 | (1 << 16))

Definition at line 191 of file hci.h.

#define T_SCAN_INTERVAL   (0x20 | (1 << 16))

Definition at line 153 of file hci.h.

#define T_SLP_START_TO   (0x4a | (2 << 16))

Definition at line 160 of file hci.h.

#define T_STBY_SCAN_INTERVAL   (0x07 | (4 << 16))

Definition at line 140 of file hci.h.

#define T_SUBSCRIPTION_FLAG   (0xd5 | (2 << 16))

Definition at line 204 of file hci.h.

#define T_SUBSCRIPTION_LIST   (0xd1 | (0 << 16) | (1 << 31))

Definition at line 200 of file hci.h.

#define T_SUBSCRIPTION_NAME   (0xd4 | (0 << 16))

Definition at line 203 of file hci.h.

#define T_TIMEOUT   (0xb0 | (2 << 16))

Definition at line 190 of file hci.h.

#define T_TX_POWER   (0x6a | (1 << 16))

Definition at line 170 of file hci.h.

#define T_TYPE1_ISW   (0x40 | (1 << 16))

Definition at line 158 of file hci.h.

#define T_URI   (0xae | (0 << 16))

Definition at line 188 of file hci.h.

#define T_URI_CONTACT_TYPE   (0xac | (1 << 16))

Definition at line 186 of file hci.h.

#define T_URI_TEXT   (0xad | (0 << 16))

Definition at line 187 of file hci.h.

#define T_V_NSPID   (0xd6 | (3 << 16))

Definition at line 205 of file hci.h.

#define T_VENDOR_NAME   (0xa7 | (0 << 16))

Definition at line 181 of file hci.h.

#define TLV_COMPOSITE (   x)    ((x) >> 31)

Definition at line 130 of file hci.h.

#define TLV_L (   x)    (((x) >> 16) & 0xff)

Definition at line 128 of file hci.h.

#define TLV_T (   x)    ((x) & 0xff)

Definition at line 129 of file hci.h.

#define W_AWAKE   3

Definition at line 98 of file hci.h.

#define W_IDLE   4

Definition at line 99 of file hci.h.

#define W_NET_ENTRY_DSX   0x84

Definition at line 107 of file hci.h.

#define W_NET_ENTRY_DSX_FAIL   0x1104000

Definition at line 113 of file hci.h.

#define W_NET_ENTRY_PKM   0x82

Definition at line 105 of file hci.h.

#define W_NET_ENTRY_PKM_FAIL   0x1102000

Definition at line 111 of file hci.h.

#define W_NET_ENTRY_REG   0x83

Definition at line 106 of file hci.h.

#define W_NET_ENTRY_REG_FAIL   0x1103000

Definition at line 112 of file hci.h.

#define W_NET_ENTRY_RNG   0x80

Definition at line 103 of file hci.h.

#define W_NET_ENTRY_RNG_FAIL   0x1100100

Definition at line 109 of file hci.h.

#define W_NET_ENTRY_SBC   0x81

Definition at line 104 of file hci.h.

#define W_NET_ENTRY_SBC_FAIL   0x1100200

Definition at line 110 of file hci.h.

#define W_NULL   0

Definition at line 95 of file hci.h.

#define W_OOZ   2

Definition at line 97 of file hci.h.

#define W_SCAN_ALL_CHANNEL   0

Definition at line 116 of file hci.h.

#define W_SCAN_ALL_SUBSCRIPTION   1

Definition at line 117 of file hci.h.

#define W_SCAN_SPECIFIED_SUBSCRIPTION   2

Definition at line 118 of file hci.h.

#define W_SLEEP   5

Definition at line 100 of file hci.h.

#define W_STANDBY   1

Definition at line 96 of file hci.h.

#define W_WAIT   6

Definition at line 101 of file hci.h.

#define WIMAX_ASSOC_COMPLETE   0x8114

Definition at line 52 of file hci.h.

#define WIMAX_ASSOC_START   0x8113

Definition at line 51 of file hci.h.

#define WIMAX_CLI_CMD   0x030c

Definition at line 77 of file hci.h.

#define WIMAX_CLI_RSP   0x830d

Definition at line 78 of file hci.h.

#define WIMAX_CONNECT   0x0110

Definition at line 48 of file hci.h.

#define WIMAX_CONNECT_COMPLETE   0x8112

Definition at line 50 of file hci.h.

#define WIMAX_CONNECT_START   0x8111

Definition at line 49 of file hci.h.

#define WIMAX_DISCONN_IND   0x8115

Definition at line 53 of file hci.h.

#define WIMAX_DISCOVER_NSP   0x011d

Definition at line 60 of file hci.h.

#define WIMAX_DISCOVER_NSP_RESULT   0x811e

Definition at line 61 of file hci.h.

#define WIMAX_DL_IMAGE   0x0310

Definition at line 80 of file hci.h.

#define WIMAX_DL_IMAGE_STATUS   0x8311

Definition at line 81 of file hci.h.

#define WIMAX_DM_CMD   0x030a

Definition at line 74 of file hci.h.

#define WIMAX_DM_RSP   0x830b

Definition at line 75 of file hci.h.

#define WIMAX_ENTER_IDLE   0x0105

Definition at line 39 of file hci.h.

#define WIMAX_ENTER_SLEEP   0x0103

Definition at line 37 of file hci.h.

#define WIMAX_ENTRY_IND   0x8116

Definition at line 54 of file hci.h.

#define WIMAX_EVT_MODEM_REPORT   0x8325

Definition at line 86 of file hci.h.

#define WIMAX_EXIT_IDLE   0x0106

Definition at line 40 of file hci.h.

#define WIMAX_EXIT_SLEEP   0x0104

Definition at line 38 of file hci.h.

#define WIMAX_FSM_UPDATE   0x8F01

Definition at line 89 of file hci.h.

#define WIMAX_GET_INFO   0x0002

Definition at line 28 of file hci.h.

#define WIMAX_GET_INFO_RESULT   0x8003

Definition at line 29 of file hci.h.

#define WIMAX_HANDOVER   0x8109 /* obsolete */

Definition at line 42 of file hci.h.

#define WIMAX_HO_COMPLETE   0x8118

Definition at line 56 of file hci.h.

#define WIMAX_HO_START   0x8117

Definition at line 55 of file hci.h.

#define WIMAX_IF_DOWN   2

Definition at line 92 of file hci.h.

#define WIMAX_IF_UP   1

Definition at line 91 of file hci.h.

#define WIMAX_IF_UPDOWN   0x8F02

Definition at line 90 of file hci.h.

#define WIMAX_IP_RENEW_IND   0x811a

Definition at line 58 of file hci.h.

#define WIMAX_MODE_CHANGE   0x8108

Definition at line 41 of file hci.h.

#define WIMAX_NET_DISCONN   0x0102

Definition at line 36 of file hci.h.

#define WIMAX_NET_ENTRY   0x0100

Definition at line 35 of file hci.h.

#define WIMAX_RADIO_OFF   0x0004

Definition at line 30 of file hci.h.

#define WIMAX_RADIO_ON   0x0006

Definition at line 31 of file hci.h.

#define WIMAX_RADIO_STATE_IND   0x8119

Definition at line 57 of file hci.h.

#define WIMAX_RESET   0x0000

Definition at line 26 of file hci.h.

#define WIMAX_RX_EAP   0x8201

Definition at line 67 of file hci.h.

#define WIMAX_RX_SDU   0x8203

Definition at line 69 of file hci.h.

#define WIMAX_RX_SDU_AGGR   0x8204

Definition at line 70 of file hci.h.

#define WIMAX_SCAN   0x010d

Definition at line 44 of file hci.h.

#define WIMAX_SCAN_COMPLETE   0x810e

Definition at line 45 of file hci.h.

#define WIMAX_SCAN_RESULT   0x810f

Definition at line 46 of file hci.h.

#define WIMAX_SDU_TX_FLOW   0x8125

Definition at line 63 of file hci.h.

#define WIMAX_SET_INFO   0x0001

Definition at line 27 of file hci.h.

#define WIMAX_TX_EAP   0x0200

Definition at line 66 of file hci.h.

#define WIMAX_TX_SDU   0x0202

Definition at line 68 of file hci.h.

#define WIMAX_TX_SDU_AGGR   0x0205

Definition at line 71 of file hci.h.

#define WIMAX_UL_IMAGE   0x0312

Definition at line 82 of file hci.h.

#define WIMAX_UL_IMAGE_RESULT   0x8313

Definition at line 83 of file hci.h.

#define WIMAX_UL_IMAGE_STATUS   0x0314

Definition at line 84 of file hci.h.

#define WIMAX_WIMAX_RESET   0x0007 /* Is this still here */

Definition at line 32 of file hci.h.

Variable Documentation