123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275 |
- #ifndef BT_TARGET_H
- #define BT_TARGET_H
- #ifndef BUILDCFG
- #define BUILDCFG
- #endif
- #if !defined(HAS_BDROID_BUILDCFG) && !defined(HAS_NO_BDROID_BUILDCFG)
- #error \
- "An Android.mk file did not include bdroid_CFLAGS and possibly not bdroid_C_INCLUDES"
- #endif
- #ifdef HAS_BDROID_BUILDCFG
- #include "bdroid_buildcfg.h"
- #endif
- #include "bt_types.h"
- #ifndef L2CAP_EXTFEA_SUPPORTED_MASK
- #define L2CAP_EXTFEA_SUPPORTED_MASK \
- (L2CAP_EXTFEA_ENH_RETRANS | L2CAP_EXTFEA_STREAM_MODE | L2CAP_EXTFEA_NO_CRC | \
- L2CAP_EXTFEA_FIXED_CHNLS)
- #endif
- #ifndef BTUI_OPS_FORMATS
- #define BTUI_OPS_FORMATS (BTA_OP_VCARD21_MASK | BTA_OP_ANY_MASK)
- #endif
- #ifndef BTA_RFC_MTU_SIZE
- #define BTA_RFC_MTU_SIZE \
- (L2CAP_MTU_SIZE - L2CAP_MIN_OFFSET - RFCOMM_DATA_OVERHEAD)
- #endif
- #ifndef BTA_PAN_INCLUDED
- #define BTA_PAN_INCLUDED TRUE
- #endif
- #ifndef BTA_HD_INCLUDED
- #define BTA_HD_INCLUDED TRUE
- #endif
- #ifndef BTA_HH_INCLUDED
- #define BTA_HH_INCLUDED TRUE
- #endif
- #ifndef BTA_HH_ROLE
- #define BTA_HH_ROLE BTA_MASTER_ROLE_PREF
- #endif
- #ifndef BTA_HH_LE_INCLUDED
- #define BTA_HH_LE_INCLUDED TRUE
- #endif
- #ifndef BTA_AR_INCLUDED
- #define BTA_AR_INCLUDED TRUE
- #endif
- #ifndef BTA_AV_SINK_INCLUDED
- #define BTA_AV_SINK_INCLUDED FALSE
- #endif
- #ifndef BTA_DISABLE_DELAY
- #define BTA_DISABLE_DELAY 200
- #endif
- #ifndef AVDT_VERSION
- #define AVDT_VERSION 0x0103
- #endif
- #ifndef BTA_AG_AT_MAX_LEN
- #define BTA_AG_AT_MAX_LEN 512
- #endif
- #ifndef BTA_AG_SCO_PKT_TYPES
- #define BTA_AG_SCO_PKT_TYPES \
- (BTM_SCO_LINK_ONLY_MASK | ESCO_PKT_TYPES_MASK_EV3 | \
- ESCO_PKT_TYPES_MASK_NO_3_EV3 | ESCO_PKT_TYPES_MASK_NO_2_EV5 | \
- ESCO_PKT_TYPES_MASK_NO_3_EV5)
- #endif
- #ifndef BTA_AV_RET_TOUT
- #define BTA_AV_RET_TOUT 15
- #endif
- #ifndef BTA_AV_CO_CP_SCMS_T
- #define BTA_AV_CO_CP_SCMS_T FALSE
- #endif
- #ifndef BTA_DM_SDP_DB_SIZE
- #define BTA_DM_SDP_DB_SIZE 8000
- #endif
- #ifndef HL_INCLUDED
- #define HL_INCLUDED TRUE
- #endif
- #ifndef AG_VOICE_SETTINGS
- #define AG_VOICE_SETTINGS HCI_DEFAULT_VOICE_SETTINGS
- #endif
- #ifndef BTIF_DM_OOB_TEST
- #define BTIF_DM_OOB_TEST TRUE
- #endif
- #ifndef BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS
- #define BTA_FTS_OPS_IDLE_TO_SNIFF_DELAY_MS 7000
- #endif
- #ifndef BTA_FTC_IDLE_TO_SNIFF_DELAY_MS
- #define BTA_FTC_IDLE_TO_SNIFF_DELAY_MS 5000
- #endif
- #ifndef BT_DEFAULT_BUFFER_SIZE
- #define BT_DEFAULT_BUFFER_SIZE (4096 + 16)
- #endif
- #ifndef BT_SMALL_BUFFER_SIZE
- #define BT_SMALL_BUFFER_SIZE 660
- #endif
- #ifndef HCI_CMD_BUF_SIZE
- #define HCI_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
- #endif
- #ifndef SDP_DATA_BUF_SIZE
- #define SDP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef RFCOMM_CMD_BUF_SIZE
- #define RFCOMM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
- #endif
- #ifndef RFCOMM_DATA_BUF_SIZE
- #define RFCOMM_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef L2CAP_CMD_BUF_SIZE
- #define L2CAP_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
- #endif
- #ifndef L2CAP_USER_TX_BUF_SIZE
- #define L2CAP_USER_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef L2CAP_USER_RX_BUF_SIZE
- #define L2CAP_USER_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef L2CAP_FCR_TX_BUF_SIZE
- #define L2CAP_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef L2CAP_FCR_RX_BUF_SIZE
- #define L2CAP_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef L2CAP_FCR_ERTM_BUF_SIZE
- #define L2CAP_FCR_ERTM_BUF_SIZE (10240 + 24)
- #endif
- #ifndef L2C_DEF_NUM_BLE_BUF_SHARED
- #define L2C_DEF_NUM_BLE_BUF_SHARED 1
- #endif
- #ifndef BTM_CMD_BUF_SIZE
- #define BTM_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
- #endif
- #ifndef OBX_LRG_DATA_BUF_SIZE
- #define OBX_LRG_DATA_BUF_SIZE (8080 + 26)
- #endif
- #ifndef GAP_DATA_BUF_SIZE
- #define GAP_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef BNEP_BUF_SIZE
- #define BNEP_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef AVDT_CMD_BUF_SIZE
- #define AVDT_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
- #endif
- #ifndef PAN_BUF_SIZE
- #define PAN_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef PAN_BUF_MAX
- #define PAN_BUF_MAX 100
- #endif
- #ifndef AVCT_CMD_BUF_SIZE
- #define AVCT_CMD_BUF_SIZE 288
- #endif
- #ifndef AVRC_CMD_BUF_SIZE
- #define AVRC_CMD_BUF_SIZE 288
- #endif
- #ifndef AVRC_META_CMD_BUF_SIZE
- #define AVRC_META_CMD_BUF_SIZE BT_SMALL_BUFFER_SIZE
- #endif
- #ifndef BTA_HL_LRG_DATA_BUF_SIZE
- #define BTA_HL_LRG_DATA_BUF_SIZE (10240 + 24)
- #endif
- #ifndef GATT_DATA_BUF_SIZE
- #define GATT_DATA_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef BTM_NO_SSP_ON_INQUIRY
- #define BTM_NO_SSP_ON_INQUIRY FALSE
- #endif
- #ifndef DISABLE_WBS
- #define DISABLE_WBS FALSE
- #endif
- #ifndef BTM_DISC_DURING_RS
- #define BTM_DISC_DURING_RS TRUE
- #endif
- #ifndef BTM_SCO_DATA_SIZE_MAX
- #define BTM_SCO_DATA_SIZE_MAX 240
- #endif
- #ifndef BTM_INQ_DB_SIZE
- #define BTM_INQ_DB_SIZE 40
- #endif
- #ifndef BTM_DEFAULT_SCAN_TYPE
- #define BTM_DEFAULT_SCAN_TYPE BTM_SCAN_TYPE_INTERLACED
- #endif
- #ifndef BTM_ALLOW_CONN_IF_NONDISCOVER
- #define BTM_ALLOW_CONN_IF_NONDISCOVER TRUE
- #endif
- #ifndef BTM_DEFAULT_CONN_WINDOW
- #define BTM_DEFAULT_CONN_WINDOW 0x0012
- #endif
- #ifndef BTM_DEFAULT_CONN_INTERVAL
- #define BTM_DEFAULT_CONN_INTERVAL 0x0800
- #endif
- #ifndef BTM_DEFAULT_DISC_WINDOW
- #define BTM_DEFAULT_DISC_WINDOW 0x0012
- #endif
- #ifndef BTM_DEFAULT_DISC_INTERVAL
- #define BTM_DEFAULT_DISC_INTERVAL 0x0800
- #endif
- #ifndef BTA_DM_COD
- #define BTA_DM_COD \
- { 0x5A, 0x02, 0x0C }
- #endif
- #ifndef BTM_MAX_SCO_LINKS
- #define BTM_MAX_SCO_LINKS 6
- #endif
- #ifndef BTM_SEC_MAX_DEVICE_RECORDS
- #define BTM_SEC_MAX_DEVICE_RECORDS 100
- #endif
- #ifndef BTM_SEC_MAX_SERVICE_RECORDS
- #define BTM_SEC_MAX_SERVICE_RECORDS 32
- #endif
- #ifndef BTM_SEC_FORCE_RNR_FOR_DBOND
- #define BTM_SEC_FORCE_RNR_FOR_DBOND FALSE
- #endif
- #ifndef BTM_MAX_REM_BD_NAME_LEN
- #define BTM_MAX_REM_BD_NAME_LEN 248
- #endif
- #ifndef BTM_MAX_LOC_BD_NAME_LEN
- #define BTM_MAX_LOC_BD_NAME_LEN 248
- #endif
- #ifndef BTM_DEF_LOCAL_NAME
- #define BTM_DEF_LOCAL_NAME ""
- #endif
- #ifndef BTM_SEC_SERVICE_NAME_LEN
- #define BTM_SEC_SERVICE_NAME_LEN BT_MAX_SERVICE_NAME_LEN
- #endif
- #ifndef BT_MAX_SERVICE_NAME_LEN
- #define BT_MAX_SERVICE_NAME_LEN 21
- #endif
- #ifndef BTM_MAX_PM_RECORDS
- #define BTM_MAX_PM_RECORDS 2
- #endif
- #ifndef BTM_PM_DEBUG
- #define BTM_PM_DEBUG FALSE
- #endif
- #ifndef BTM_SEC_TIMEOUT_VALUE
- #define BTM_SEC_TIMEOUT_VALUE 35
- #endif
- #ifndef BTM_MAX_VSE_CALLBACKS
- #define BTM_MAX_VSE_CALLBACKS 3
- #endif
- #ifndef BTM_EIR_DEFAULT_FEC_REQUIRED
- #define BTM_EIR_DEFAULT_FEC_REQUIRED TRUE
- #endif
- #ifndef BTM_LOCAL_IO_CAPS
- #define BTM_LOCAL_IO_CAPS BTM_IO_CAP_IO
- #endif
- #ifndef BTM_LOCAL_IO_CAPS_BLE
- #define BTM_LOCAL_IO_CAPS_BLE BTM_IO_CAP_KBDISP
- #endif
- #ifndef BTM_DEFAULT_AUTH_REQ
- #define BTM_DEFAULT_AUTH_REQ BTM_AUTH_SP_NO
- #endif
- #ifndef BTM_DEFAULT_DD_AUTH_REQ
- #define BTM_DEFAULT_DD_AUTH_REQ BTM_AUTH_AP_YES
- #endif
- #ifndef BTM_SSR_INCLUDED
- #define BTM_SSR_INCLUDED TRUE
- #endif
- #ifndef SC_MODE_INCLUDED
- #define SC_MODE_INCLUDED TRUE
- #endif
- #ifndef BTM_BLE_CONFORMANCE_TESTING
- #define BTM_BLE_CONFORMANCE_TESTING FALSE
- #endif
- #ifndef MAX_ACL_CONNECTIONS
- #define MAX_L2CAP_LINKS 13
- #else
- #define MAX_L2CAP_LINKS MAX_ACL_CONNECTIONS
- #endif
- #ifndef MAX_L2CAP_CHANNELS
- #define MAX_L2CAP_CHANNELS 32
- #endif
- #ifndef MAX_L2CAP_CLIENTS
- #define MAX_L2CAP_CLIENTS 15
- #endif
- #ifndef L2CAP_LINK_INACTIVITY_TOUT
- #define L2CAP_LINK_INACTIVITY_TOUT 4
- #endif
- #ifndef L2CAP_BONDING_TIMEOUT
- #define L2CAP_BONDING_TIMEOUT 3
- #endif
- #ifndef L2CAP_LINK_STARTUP_TOUT
- #define L2CAP_LINK_STARTUP_TOUT 60
- #endif
- #ifndef L2CAP_MTU_SIZE
- #define L2CAP_MTU_SIZE 1691
- #endif
- #ifndef L2CAP_MPS_OVER_BR_EDR
- #define L2CAP_MPS_OVER_BR_EDR 1010
- #endif
- #ifndef L2CAP_HOST_FC_ACL_BUFS
- #define L2CAP_HOST_FC_ACL_BUFS 20
- #endif
- #ifndef L2CAP_WAKE_PARKED_LINK
- #define L2CAP_WAKE_PARKED_LINK TRUE
- #endif
- #ifndef L2CAP_DESIRED_LINK_ROLE
- #define L2CAP_DESIRED_LINK_ROLE HCI_ROLE_SLAVE
- #endif
- #ifndef L2CAP_NON_FLUSHABLE_PB_INCLUDED
- #define L2CAP_NON_FLUSHABLE_PB_INCLUDED TRUE
- #endif
- #ifndef L2CAP_HIGH_PRI_MIN_XMIT_QUOTA
- #define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA 5
- #endif
- #ifndef L2CAP_HCI_FLOW_CONTROL_DEBUG
- #define L2CAP_HCI_FLOW_CONTROL_DEBUG TRUE
- #endif
- #ifndef L2CAP_NUM_FIXED_CHNLS
- #define L2CAP_NUM_FIXED_CHNLS 32
- #endif
- #ifndef L2CAP_FIRST_FIXED_CHNL
- #define L2CAP_FIRST_FIXED_CHNL 4
- #endif
- #ifndef L2CAP_LAST_FIXED_CHNL
- #define L2CAP_LAST_FIXED_CHNL \
- (L2CAP_FIRST_FIXED_CHNL + L2CAP_NUM_FIXED_CHNLS - 1)
- #endif
- #ifndef L2CAP_ROUND_ROBIN_CHANNEL_SERVICE
- #define L2CAP_ROUND_ROBIN_CHANNEL_SERVICE TRUE
- #endif
- #ifndef L2CAP_ERTM_STATS
- #define L2CAP_ERTM_STATS FALSE
- #endif
- #ifndef L2CAP_CONFORMANCE_TESTING
- #define L2CAP_CONFORMANCE_TESTING FALSE
- #endif
- #ifndef L2CAP_MAX_RX_BUFFER
- #define L2CAP_MAX_RX_BUFFER 0x100000
- #endif
- #ifndef LOCAL_BLE_CONTROLLER_ID
- #define LOCAL_BLE_CONTROLLER_ID 1
- #endif
- #ifndef BLE_PRIVACY_SPT
- #define BLE_PRIVACY_SPT TRUE
- #endif
- #ifndef BLE_LOCAL_PRIVACY_ENABLED
- #define BLE_LOCAL_PRIVACY_ENABLED TRUE
- #endif
- #ifndef BLE_VND_INCLUDED
- #define BLE_VND_INCLUDED FALSE
- #endif
- #ifndef BLE_MAX_L2CAP_CLIENTS
- #define BLE_MAX_L2CAP_CLIENTS 15
- #endif
- #ifndef BLE_LLT_INCLUDED
- #define BLE_LLT_INCLUDED TRUE
- #endif
- #ifndef BLE_DELAY_REQUEST_ENC
- #define BLE_DELAY_REQUEST_ENC FALSE
- #endif
- #ifndef GATT_MAX_SR_PROFILES
- #define GATT_MAX_SR_PROFILES 32
- #endif
- #ifndef GATT_MAX_APPS
- #define GATT_MAX_APPS 32
- #endif
- #define CONN_MGR_ID_L2CAP (GATT_MAX_APPS + 10)
- #ifndef GATT_MAX_PHY_CHANNEL
- #define GATT_MAX_PHY_CHANNEL 7
- #endif
- #ifndef GATT_CONFORMANCE_TESTING
- #define GATT_CONFORMANCE_TESTING FALSE
- #endif
- #ifndef SMP_DEBUG
- #define SMP_DEBUG FALSE
- #endif
- #ifndef SMP_DEFAULT_AUTH_REQ
- #define SMP_DEFAULT_AUTH_REQ SMP_AUTH_NB_ENC_ONLY
- #endif
- #ifndef SMP_MAX_ENC_KEY_SIZE
- #define SMP_MAX_ENC_KEY_SIZE 16
- #endif
- #ifndef SMP_LINK_TOUT_MIN
- #if (L2CAP_LINK_INACTIVITY_TOUT > 0)
- #define SMP_LINK_TOUT_MIN L2CAP_LINK_INACTIVITY_TOUT
- #else
- #define SMP_LINK_TOUT_MIN 2
- #endif
- #endif
- #ifndef SDP_SERVER_ENABLED
- #define SDP_SERVER_ENABLED TRUE
- #endif
- #ifndef SDP_MAX_RECORDS
- #define SDP_MAX_RECORDS 30
- #endif
- #ifndef SDP_MAX_REC_ATTR
- #define SDP_MAX_REC_ATTR 25
- #endif
- #ifndef SDP_MAX_PAD_LEN
- #define SDP_MAX_PAD_LEN 600
- #endif
- #ifndef SDP_MAX_ATTR_LEN
- #define SDP_MAX_ATTR_LEN 400
- #endif
- #ifndef SDP_MAX_ATTR_FILTERS
- #define SDP_MAX_ATTR_FILTERS 15
- #endif
- #ifndef SDP_MAX_UUID_FILTERS
- #define SDP_MAX_UUID_FILTERS 3
- #endif
- #ifndef SDP_MAX_DISC_SERVER_RECS
- #define SDP_MAX_DISC_SERVER_RECS 21
- #endif
- #ifndef SDP_MAX_LIST_BYTE_COUNT
- #define SDP_MAX_LIST_BYTE_COUNT 4096
- #endif
- #ifndef SDP_MAX_PROTOCOL_PARAMS
- #define SDP_MAX_PROTOCOL_PARAMS 2
- #endif
- #ifndef SDP_MAX_CONNECTIONS
- #define SDP_MAX_CONNECTIONS 4
- #endif
- #ifndef SDP_MTU_SIZE
- #define SDP_MTU_SIZE 1024
- #endif
- #ifndef SDP_FLUSH_TO
- #define SDP_FLUSH_TO 0xFFFF
- #endif
- #ifndef SDP_SERVICE_NAME
- #define SDP_SERVICE_NAME "Service Discovery"
- #endif
- #ifndef SDP_SECURITY_LEVEL
- #define SDP_SECURITY_LEVEL BTM_SEC_NONE
- #endif
- #ifndef MAX_RFC_PORTS
- #define MAX_RFC_PORTS 30
- #endif
- #ifndef MAX_ACL_CONNECTIONS
- #define MAX_BD_CONNECTIONS 7
- #else
- #define MAX_BD_CONNECTIONS MAX_ACL_CONNECTIONS
- #endif
- #ifndef PORT_RX_LOW_WM
- #define PORT_RX_LOW_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_LOW_WM)
- #endif
- #ifndef PORT_RX_HIGH_WM
- #define PORT_RX_HIGH_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_HIGH_WM)
- #endif
- #ifndef PORT_RX_CRITICAL_WM
- #define PORT_RX_CRITICAL_WM (BTA_RFC_MTU_SIZE * PORT_RX_BUF_CRITICAL_WM)
- #endif
- #ifndef PORT_RX_BUF_LOW_WM
- #define PORT_RX_BUF_LOW_WM 4
- #endif
- #ifndef PORT_RX_BUF_HIGH_WM
- #define PORT_RX_BUF_HIGH_WM 10
- #endif
- #ifndef PORT_RX_BUF_CRITICAL_WM
- #define PORT_RX_BUF_CRITICAL_WM 15
- #endif
- #ifndef PORT_TX_HIGH_WM
- #define PORT_TX_HIGH_WM (BTA_RFC_MTU_SIZE * PORT_TX_BUF_HIGH_WM)
- #endif
- #ifndef PORT_TX_CRITICAL_WM
- #define PORT_TX_CRITICAL_WM (BTA_RFC_MTU_SIZE * PORT_TX_BUF_CRITICAL_WM)
- #endif
- #ifndef PORT_TX_BUF_HIGH_WM
- #define PORT_TX_BUF_HIGH_WM 10
- #endif
- #ifndef PORT_TX_BUF_CRITICAL_WM
- #define PORT_TX_BUF_CRITICAL_WM 15
- #endif
- #ifndef PORT_FC_DEFAULT
- #define PORT_FC_DEFAULT PORT_FC_CREDIT
- #endif
- #ifndef OBX_USER_RX_BUF_SIZE
- #define OBX_USER_RX_BUF_SIZE OBX_LRG_DATA_BUF_SIZE
- #endif
- #ifndef OBX_USER_TX_BUF_SIZE
- #define OBX_USER_TX_BUF_SIZE OBX_LRG_DATA_BUF_SIZE
- #endif
- #ifndef OBX_FCR_RX_BUF_SIZE
- #define OBX_FCR_RX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef OBX_FCR_TX_BUF_SIZE
- #define OBX_FCR_TX_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR
- #define OBX_FCR_OPT_TX_WINDOW_SIZE_BR_EDR 20
- #endif
- #ifndef OBX_FCR_OPT_MAX_TX_B4_DISCNT
- #define OBX_FCR_OPT_MAX_TX_B4_DISCNT 20
- #endif
- #ifndef OBX_FCR_OPT_RETX_TOUT
- #define OBX_FCR_OPT_RETX_TOUT 2000
- #endif
- #ifndef OBX_FCR_OPT_MONITOR_TOUT
- #define OBX_FCR_OPT_MONITOR_TOUT 12000
- #endif
- #ifndef OBX_FCR_OPT_MAX_PDU_SIZE
- #define OBX_FCR_OPT_MAX_PDU_SIZE L2CAP_MPS_OVER_BR_EDR
- #endif
- #ifndef BNEP_INCLUDED
- #define BNEP_INCLUDED TRUE
- #endif
- #ifndef BNEP_SUPPORTS_STATUS_API
- #define BNEP_SUPPORTS_STATUS_API TRUE
- #endif
- #ifndef BNEP_DO_AUTH_FOR_ROLE_SWITCH
- #define BNEP_DO_AUTH_FOR_ROLE_SWITCH TRUE
- #endif
- #ifndef BNEP_MAX_PROT_FILTERS
- #define BNEP_MAX_PROT_FILTERS 5
- #endif
- #ifndef BNEP_MAX_MULTI_FILTERS
- #define BNEP_MAX_MULTI_FILTERS 5
- #endif
- #ifndef BNEP_MIN_MTU_SIZE
- #define BNEP_MIN_MTU_SIZE L2CAP_MTU_SIZE
- #endif
- #ifndef BNEP_MTU_SIZE
- #define BNEP_MTU_SIZE BNEP_MIN_MTU_SIZE
- #endif
- #ifndef BNEP_MAX_XMITQ_DEPTH
- #define BNEP_MAX_XMITQ_DEPTH 20
- #endif
- #ifndef BNEP_MAX_CONNECTIONS
- #define BNEP_MAX_CONNECTIONS 7
- #endif
- #ifndef AVDT_NUM_LINKS
- #define AVDT_NUM_LINKS 6
- #endif
- #ifndef AVDT_NUM_SEPS
- #define AVDT_NUM_SEPS 6
- #endif
- #ifndef AVDT_NUM_TC_TBL
- #define AVDT_NUM_TC_TBL (AVDT_NUM_SEPS + AVDT_NUM_LINKS)
- #endif
- #ifndef AVDT_PROTECT_SIZE
- #define AVDT_PROTECT_SIZE 90
- #endif
- #ifndef PAN_INCLUDED
- #define PAN_INCLUDED TRUE
- #endif
- #ifndef PAN_NAP_DISABLED
- #define PAN_NAP_DISABLED FALSE
- #endif
- #ifndef PANU_DISABLED
- #define PANU_DISABLED FALSE
- #endif
- #ifndef PAN_SUPPORTS_ROLE_PANU
- #define PAN_SUPPORTS_ROLE_PANU TRUE
- #endif
- #ifndef PAN_SUPPORTS_ROLE_GN
- #define PAN_SUPPORTS_ROLE_GN TRUE
- #endif
- #ifndef PAN_SUPPORTS_ROLE_NAP
- #define PAN_SUPPORTS_ROLE_NAP TRUE
- #endif
- #ifndef PAN_SUPPORTS_DEBUG_DUMP
- #define PAN_SUPPORTS_DEBUG_DUMP TRUE
- #endif
- #ifndef MAX_PAN_CONNS
- #define MAX_PAN_CONNS 7
- #endif
- #ifndef PAN_NAP_DEFAULT_SERVICE_NAME
- #define PAN_NAP_DEFAULT_SERVICE_NAME "Network Access Point Service"
- #endif
- #ifndef PAN_GN_DEFAULT_SERVICE_NAME
- #define PAN_GN_DEFAULT_SERVICE_NAME "Group Network Service"
- #endif
- #ifndef PAN_PANU_DEFAULT_SERVICE_NAME
- #define PAN_PANU_DEFAULT_SERVICE_NAME "PAN User Service"
- #endif
- #ifndef PAN_NAP_DEFAULT_DESCRIPTION
- #define PAN_NAP_DEFAULT_DESCRIPTION "NAP"
- #endif
- #ifndef PAN_GN_DEFAULT_DESCRIPTION
- #define PAN_GN_DEFAULT_DESCRIPTION "GN"
- #endif
- #ifndef PAN_PANU_DEFAULT_DESCRIPTION
- #define PAN_PANU_DEFAULT_DESCRIPTION "PANU"
- #endif
- #ifndef PAN_PANU_SECURITY_LEVEL
- #define PAN_PANU_SECURITY_LEVEL 0
- #endif
- #ifndef PAN_GN_SECURITY_LEVEL
- #define PAN_GN_SECURITY_LEVEL 0
- #endif
- #ifndef PAN_NAP_SECURITY_LEVEL
- #define PAN_NAP_SECURITY_LEVEL 0
- #endif
- #ifndef GAP_INCLUDED
- #define GAP_INCLUDED TRUE
- #endif
- #ifndef GAP_MAX_CONNECTIONS
- #define GAP_MAX_CONNECTIONS 30
- #endif
- #ifndef SDP_RAW_DATA_INCLUDED
- #define SDP_RAW_DATA_INCLUDED TRUE
- #endif
- #ifndef SDP_DEBUG
- #define SDP_DEBUG TRUE
- #endif
- #ifndef HID_DEV_INCLUDED
- #define HID_DEV_INCLUDED TRUE
- #endif
- #ifndef HID_CONTROL_BUF_SIZE
- #define HID_CONTROL_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef HID_INTERRUPT_BUF_SIZE
- #define HID_INTERRUPT_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
- #endif
- #ifndef HID_DEV_MTU_SIZE
- #define HID_DEV_MTU_SIZE 64
- #endif
- #ifndef HID_DEV_FLUSH_TO
- #define HID_DEV_FLUSH_TO 0xffff
- #endif
- #ifndef HID_MAX_SVC_NAME_LEN
- #define HID_MAX_SVC_NAME_LEN 32
- #endif
- #ifndef HID_MAX_SVC_DESCR_LEN
- #define HID_MAX_SVC_DESCR_LEN 32
- #endif
- #ifndef HID_MAX_PROV_NAME_LEN
- #define HID_MAX_PROV_NAME_LEN 32
- #endif
- #ifndef HID_HOST_INCLUDED
- #define HID_HOST_INCLUDED TRUE
- #endif
- #ifndef HID_HOST_MAX_DEVICES
- #define HID_HOST_MAX_DEVICES 7
- #endif
- #ifndef HID_HOST_MTU
- #define HID_HOST_MTU 640
- #endif
- #ifndef HID_HOST_FLUSH_TO
- #define HID_HOST_FLUSH_TO 0xffff
- #endif
- #ifndef HID_HOST_MAX_CONN_RETRY
- #define HID_HOST_MAX_CONN_RETRY 1
- #endif
- #ifndef HID_HOST_REPAGE_WIN
- #define HID_HOST_REPAGE_WIN 2
- #endif
- #ifndef AVCT_NUM_LINKS
- #define AVCT_NUM_LINKS 6
- #endif
- #ifndef AVCT_NUM_CONN
- #define AVCT_NUM_CONN 14
- #endif
- #ifndef AVRC_ADV_CTRL_INCLUDED
- #define AVRC_ADV_CTRL_INCLUDED TRUE
- #endif
- #ifndef DUMP_PCM_DATA
- #define DUMP_PCM_DATA FALSE
- #endif
- #ifndef BTA_EIR_CANNED_UUID_LIST
- #define BTA_EIR_CANNED_UUID_LIST FALSE
- #endif
- #ifndef BTA_EIR_SERVER_NUM_CUSTOM_UUID
- #define BTA_EIR_SERVER_NUM_CUSTOM_UUID 8
- #endif
- #ifndef BTA_AG_CHLD_VAL_ECC
- #define BTA_AG_CHLD_VAL_ECC "(0,1,1x,2,2x,3)"
- #endif
- #ifndef BTA_AG_CHLD_VAL
- #define BTA_AG_CHLD_VAL "(0,1,2,3)"
- #endif
- #ifndef BTA_AG_CIND_INFO
- #define BTA_AG_CIND_INFO \
- "(\"call\",(0,1)),(\"callsetup\",(0-3)),(\"service\",(0-1)),(\"signal\",(0-" \
- "5)),(\"roam\",(0,1)),(\"battchg\",(0-5)),(\"callheld\",(0-2))"
- #endif
- #ifndef BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY
- #define BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY TRUE
- #endif
- #ifndef BTSNOOP_MEM
- #define BTSNOOP_MEM TRUE
- #endif
- #include "bt_trace.h"
- #endif
|