summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--[-rwxr-xr-x]include/bt_target.h109
-rw-r--r--include/bt_trace.h37
-rw-r--r--include/bte.h33
-rw-r--r--include/bte_appl.h32
-rw-r--r--include/gki_target.h54
5 files changed, 154 insertions, 111 deletions
diff --git a/include/bt_target.h b/include/bt_target.h
index 766e3b2..b9b88e3 100755..100644
--- a/include/bt_target.h
+++ b/include/bt_target.h
@@ -1,19 +1,20 @@
-/****************************************************************************
-**
-** Name: bt_target.h
-**
-** Function this file contains definitions that will probably
-** change for each Bluetooth target system. This includes
-** such things as buffer pool sizes, number of tasks,
-** little endian/big endian conversions, etc...
-**
-** NOTE This file should always be included first.
-**
-**
-** Copyright (c) 1999-2010, Broadcom Corp., All Rights Reserved.
-** Broadcom Bluetooth Core. Proprietary and confidential.
-**
-*****************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 1999-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
#ifndef BT_TARGET_H
#define BT_TARGET_H
@@ -680,7 +681,7 @@
/* AVRCP pool size for protocol messages */
#ifndef AVRC_CMD_POOL_SIZE
-#define AVRC_CMD_POOL_SIZE GKI_BUF1_SIZE
+#define AVRC_CMD_POOL_SIZE GKI_BUF1_SIZE
#endif
/* AVRCP Metadata pool for protocol messages */
@@ -690,13 +691,13 @@
/* AVRCP Metadata pool size for protocol messages */
#ifndef AVRC_META_CMD_POOL_SIZE
-#define AVRC_META_CMD_POOL_SIZE GKI_BUF2_SIZE
+#define AVRC_META_CMD_POOL_SIZE GKI_BUF2_SIZE
#endif
/* AVRCP buffer size for browsing channel messages */
#ifndef AVRC_BROWSE_POOL_SIZE
-#define AVRC_BROWSE_POOL_SIZE GKI_MAX_BUF_SIZE
+#define AVRC_BROWSE_POOL_SIZE GKI_MAX_BUF_SIZE
#endif
/* HDP buffer size for the Pulse Oximeter */
@@ -828,8 +829,8 @@ BT_API extern void bte_main_lpm_allow_bt_device_sleep(void);
** BTM
**
******************************************************************************/
-/* if set to TRUE, stack will automatically send an HCI reset at start-up. To be
-set to FALSE for advanced start-up / shut-down procedures using USER_HW_ENABLE_API
+/* if set to TRUE, stack will automatically send an HCI reset at start-up. To be
+set to FALSE for advanced start-up / shut-down procedures using USER_HW_ENABLE_API
and USER_HW_DISABLE_API macros */
#ifndef BTM_AUTOMATIC_HCI_RESET
#define BTM_AUTOMATIC_HCI_RESET FALSE
@@ -888,7 +889,7 @@ and USER_HW_DISABLE_API macros */
#endif
/**************************
-** Initial SCO TX credit
+** Initial SCO TX credit
*************************/
/* max TX SCO data packet size */
#ifndef BTM_SCO_DATA_SIZE_MAX
@@ -1441,7 +1442,7 @@ and USER_HW_DISABLE_API macros */
#define GATT_MAX_SR_PROFILES 32 /* max is 32 */
#endif
-#ifndef GATT_MAX_APPS
+#ifndef GATT_MAX_APPS
#define GATT_MAX_APPS 10 /* note: 2 apps used internally GATT and GAP */
#endif
@@ -1477,7 +1478,7 @@ and USER_HW_DISABLE_API macros */
#define SMP_DEBUG FALSE
#endif
-#ifndef SMP_DEFAULT_AUTH_REQ
+#ifndef SMP_DEFAULT_AUTH_REQ
#define SMP_DEFAULT_AUTH_REQ SMP_AUTH_NB_ENC_ONLY
#endif
@@ -1737,7 +1738,7 @@ and USER_HW_DISABLE_API macros */
#define TCS_MAX_WUG_MEMBERS 7
#endif
-/* Widcomm specific acknowledgement message to ensure fast and robust operation of WUG FIMA procedure. */
+/* Broadcom specific acknowledgement message to ensure fast and robust operation of WUG FIMA procedure. */
#ifndef TCS_WUG_LISTEN_ACPT_ACK_INCLUDED
#define TCS_WUG_LISTEN_ACPT_ACK_INCLUDED TRUE
#endif
@@ -1835,7 +1836,7 @@ and USER_HW_DISABLE_API macros */
#define OBX_MAX_SR_SESSION 4
#endif
-/* The maximum number of sessions for all registered servers.
+/* The maximum number of sessions for all registered servers.
* (must be equal or bigger than OBX_NUM_SERVERS) */
#ifndef OBX_NUM_SR_SESSIONS
#define OBX_NUM_SR_SESSIONS 26
@@ -1896,11 +1897,11 @@ GKI Buffer Pool ID used to hold MPS segments during SDU reassembly
#endif
/* This option is application when OBX_14_INCLUDED=TRUE
-GKI Buffer Pool ID used to hold MPS segments used in (re)transmissions.
-L2CAP_DEFAULT_ERM_POOL_ID is specified to use the HCI ACL data pool.
+GKI Buffer Pool ID used to hold MPS segments used in (re)transmissions.
+L2CAP_DEFAULT_ERM_POOL_ID is specified to use the HCI ACL data pool.
Note: This pool needs to have enough buffers to hold two times the window size negotiated
- in the L2CA_SetFCROptions (2 * tx_win_size) to allow for retransmissions.
- The size of each buffer must be able to hold the maximum MPS segment size passed in
+ in the L2CA_SetFCROptions (2 * tx_win_size) to allow for retransmissions.
+ The size of each buffer must be able to hold the maximum MPS segment size passed in
L2CA_SetFCROptions plus BT_HDR (8) + HCI preamble (4) + L2CAP_MIN_OFFSET (11 - as of BT 2.1 + EDR Spec).
*/
#ifndef OBX_FCR_TX_POOL_ID
@@ -2051,7 +2052,7 @@ Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF.
#ifndef AVDT_NUM_SEPS
#define AVDT_NUM_SEPS 3
#endif
-
+
/* Number of transport channels setup per media stream(audio or video) */
#ifndef AVDT_NUM_CHANNELS
@@ -2064,8 +2065,8 @@ Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF.
#endif
#endif
-
-/* Number of transport channels setup by AVDT for all media streams
+
+/* Number of transport channels setup by AVDT for all media streams
* AVDT_NUM_CHANNELS * Number of simultaneous streams.
*/
#ifndef AVDT_NUM_TC_TBL
@@ -2604,7 +2605,7 @@ Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF.
/* SCO packet type(s) to use (bitmask: see spec), 0 - device default (recommended) */
#ifndef HSP2_SCO_PKT_TYPES
-#define HSP2_SCO_PKT_TYPES ((UINT16)0x0000)
+#define HSP2_SCO_PKT_TYPES ((UINT16)0x0000)
#endif
/* The default settings of the SCO voice link. */
@@ -2617,7 +2618,7 @@ Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF.
#endif
#ifndef HSP2_MAX_AT_VAL_LENGTH
-#if (defined(HFP_INCLUDED) && HFP_INCLUDED == TRUE)
+#if (defined(HFP_INCLUDED) && HFP_INCLUDED == TRUE)
#define HSP2_MAX_AT_VAL_LENGTH 310
#else
#define HSP2_MAX_AT_VAL_LENGTH 5
@@ -2808,15 +2809,15 @@ Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF.
#endif
#ifndef HID_CONTROL_POOL_ID
-#define HID_CONTROL_POOL_ID 2
+#define HID_CONTROL_POOL_ID 2
#endif
#ifndef HID_INTERRUPT_POOL_ID
-#define HID_INTERRUPT_POOL_ID 2
+#define HID_INTERRUPT_POOL_ID 2
#endif
/*************************************************************************
-** Definitions for Both HID-Host & Device
+** Definitions for Both HID-Host & Device
*/
#ifndef HID_MAX_SVC_NAME_LEN
#define HID_MAX_SVC_NAME_LEN 32
@@ -3163,30 +3164,30 @@ Range: Minimum 12000 (12 secs) on BR/EDR when supporting PBF.
/* TRUE to show the received XML object in trace for conformance tests */
#ifndef BIP_TRACE_XML
-#define BIP_TRACE_XML TRUE
+#define BIP_TRACE_XML TRUE
#endif
/* in case that the received XML object is not complete, the XML parser state machine needs
* to keep a copy of the data from the last '<'
- * This macro specifies the maximun amount of data for this purpose */
+ * This macro specifies the maximun amount of data for this purpose */
#ifndef BIP_XML_CARRY_OVER_LEN
-#define BIP_XML_CARRY_OVER_LEN 100
+#define BIP_XML_CARRY_OVER_LEN 100
#endif
/* minimum 4, maximum is 255. The value should be set to the maximum size of encoding string + 1. JPEG2000.
* If vendor specific format is supported, it might be bigger than 9 */
#ifndef BIP_IMG_ENCODE_SIZE
-#define BIP_IMG_ENCODE_SIZE 9
+#define BIP_IMG_ENCODE_SIZE 9
#endif
/* MIME type: text/plain */
#ifndef BIP_TYPE_SIZE
-#define BIP_TYPE_SIZE 20
+#define BIP_TYPE_SIZE 20
#endif
/* example: iso-8895-1 */
#ifndef BIP_CHARSET_SIZE
-#define BIP_CHARSET_SIZE 10
+#define BIP_CHARSET_SIZE 10
#endif
/* friendly name */
@@ -3433,11 +3434,11 @@ GKI Buffer Pool ID used to hold MPS segments during SDU reassembly
#endif
/*
-GKI Buffer Pool ID used to hold MPS segments used in (re)transmissions.
-L2CAP_DEFAULT_ERM_POOL_ID is specified to use the HCI ACL data pool.
+GKI Buffer Pool ID used to hold MPS segments used in (re)transmissions.
+L2CAP_DEFAULT_ERM_POOL_ID is specified to use the HCI ACL data pool.
Note: This pool needs to have enough buffers to hold two times the window size negotiated
- in the tL2CAP_FCR_OPTIONS (2 * tx_win_size) to allow for retransmissions.
- The size of each buffer must be able to hold the maximum MPS segment size passed in
+ in the tL2CAP_FCR_OPTIONS (2 * tx_win_size) to allow for retransmissions.
+ The size of each buffer must be able to hold the maximum MPS segment size passed in
tL2CAP_FCR_OPTIONS plus BT_HDR (8) + HCI preamble (4) + L2CAP_MIN_OFFSET (11 - as of BT 2.1 + EDR Spec).
*/
#ifndef AVCT_BR_FCR_TX_POOL_ID
@@ -3549,11 +3550,11 @@ GKI Buffer Pool ID used to hold MPS segments during SDU reassembly
#endif
/*
-GKI Buffer Pool ID used to hold MPS segments used in (re)transmissions.
-L2CAP_DEFAULT_ERM_POOL_ID is specified to use the HCI ACL data pool.
+GKI Buffer Pool ID used to hold MPS segments used in (re)transmissions.
+L2CAP_DEFAULT_ERM_POOL_ID is specified to use the HCI ACL data pool.
Note: This pool needs to have enough buffers to hold two times the window size negotiated
- in the tL2CAP_FCR_OPTIONS (2 * tx_win_size) to allow for retransmissions.
- The size of each buffer must be able to hold the maximum MPS segment size passed in
+ in the tL2CAP_FCR_OPTIONS (2 * tx_win_size) to allow for retransmissions.
+ The size of each buffer must be able to hold the maximum MPS segment size passed in
tL2CAP_FCR_OPTIONS plus BT_HDR (8) + HCI preamble (4) + L2CAP_MIN_OFFSET (11 - as of BT 2.1 + EDR Spec).
*/
#ifndef MCA_FCR_TX_POOL_ID
@@ -3561,7 +3562,7 @@ Note: This pool needs to have enough buffers to hold two times the window size
#endif
/* MCAP control channel FCR Option:
-Size of the transmission window when using enhanced retransmission mode.
+Size of the transmission window when using enhanced retransmission mode.
1 is defined by HDP specification for control channel.
*/
#ifndef MCA_FCR_OPT_TX_WINDOW_SIZE
@@ -3782,7 +3783,7 @@ The maximum number of payload octets that the local device can receive in a sing
#define BTE_PLATFORM_IDLE
#endif
-#ifndef BTE_IDLE_TASK_INCLUDED
+#ifndef BTE_IDLE_TASK_INCLUDED
#define BTE_IDLE_TASK_INCLUDED FALSE
#endif
diff --git a/include/bt_trace.h b/include/bt_trace.h
index 6ad87c8..6c3e7b1 100644
--- a/include/bt_trace.h
+++ b/include/bt_trace.h
@@ -1,15 +1,28 @@
-/****************************************************************************/
-/* */
-/* Name: bt_trace.h */
-/* */
-/* Function this file contains definitions for implementing the */
-/* diagnostic trace message service. */
-/* */
-/* */
-/* Copyright (c) 1999-2011, Broadcom Corp., All Rights Reserved. */
-/* WIDCOMM Bluetooth Core. Proprietary and confidential. */
-/* */
-/****************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 1999-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
+
+/******************************************************************************
+ *
+ * This file contains definitions for implementing the
+ * diagnostic trace message service.
+ *
+ ******************************************************************************/
+
#ifndef BT_TRACE_H
#define BT_TRACE_H
diff --git a/include/bte.h b/include/bte.h
index afc6386..103b660 100644
--- a/include/bte.h
+++ b/include/bte.h
@@ -1,13 +1,26 @@
-/*****************************************************************************
-**
-** Name: bte.h
-**
-** Description: this file contains constants and definitions for the bte project
-**
-**
-** Copyright (c) 2001-2004, WIDCOMM Inc., All Rights Reserved.
-** WIDCOMM Bluetooth Core. Proprietary and confidential.
-******************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 2001-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
+
+/******************************************************************************
+ *
+ * this file contains constants and definitions for the bte project
+ *
+ ******************************************************************************/
#ifndef BTE_H
#define BTE_H
diff --git a/include/bte_appl.h b/include/bte_appl.h
index 45f6771..63689da 100644
--- a/include/bte_appl.h
+++ b/include/bte_appl.h
@@ -1,12 +1,26 @@
-/*****************************************************************************
-** *
-** Name: bte_appl.h *
-** *
-** Description: This is the interface file for the bte application task *
-** *
-** Copyright (c) 2002-2009 Broadcom Corp., All Rights Reserved. *
-** WIDCOMM Bluetooth Core. Proprietary and confidential. *
-******************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 2002-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
+
+/******************************************************************************
+ *
+ * This is the interface file for the bte application task
+ *
+ ******************************************************************************/
#ifndef BTE_APPL_H
#define BTE_APPL_H
diff --git a/include/gki_target.h b/include/gki_target.h
index c2c2b6b..d2a4c48 100644
--- a/include/gki_target.h
+++ b/include/gki_target.h
@@ -1,18 +1,20 @@
-/****************************************************************************
-**
-** Name: gki_target.h
-**
-** Function this file contains platform-specific GKI defintions
-** to be included by bt_target.h, nfc_target.h, and other
-** target header files.
-**
-** NOTE This file should always be included first.
-**
-**
-** Copyright (c) 1999-2011, Broadcom Corp., All Rights Reserved.
-** Broadcom Bluetooth Core. Proprietary and confidential.
-**
-*****************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 1999-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
#ifndef GKI_TARGET_H
#define GKI_TARGET_H
@@ -45,7 +47,7 @@
#if defined (GKI_DEBUG) && (GKI_DEBUG == TRUE)
#define GKI_TRACE(fmt, ...) ALOGI ("%s: " fmt, __FUNCTION__, ## __VA_ARGS__)
#else
-#define GKI_TRACE(fmt, ...)
+#define GKI_TRACE(fmt, ...)
#endif
/******************************************************************************
@@ -242,8 +244,8 @@ Devices with small amount of RAM should limit the number of active obex objects.
#endif
/* The number of fixed GKI buffer pools.
-eL2CAP requires Pool ID 5
-If BTM_SCO_HCI_INCLUDED is FALSE, Pool ID 6 is unnecessary, otherwise set to 7
+eL2CAP requires Pool ID 5
+If BTM_SCO_HCI_INCLUDED is FALSE, Pool ID 6 is unnecessary, otherwise set to 7
If BTA_HL_INCLUDED is FALSE then Pool ID 7 is uncessary and set the following to 7, otherwise set to 8
If BLE_INCLUDED is FALSE then Pool ID 8 is uncessary and set the following to 8, otherwise set to 9
POOL_ID 9 is a public pool meant for large buffer needs such as SDP_DB
@@ -327,7 +329,7 @@ over HCI data and intentionally kept out of order */
#define GKI_POOL_ID_6 6
#endif
-/* The size of the buffers in pool 6,
+/* The size of the buffers in pool 6,
BUF_SIZE = max SCO data 255 + sizeof(BT_HDR) = 8 + SCO packet header 3 + padding 2 = 268 */
#ifndef GKI_BUF6_SIZE
#define GKI_BUF6_SIZE 268
@@ -339,10 +341,10 @@ over HCI data and intentionally kept out of order */
#endif
-/* The following pool is a dedicated pool for HDP
- If a shared pool is more desirable then
+/* The following pool is a dedicated pool for HDP
+ If a shared pool is more desirable then
1. set BTA_HL_LRG_DATA_POOL_ID to the desired Gki Pool ID
- 2. make sure that the shared pool size is larger than 9472
+ 2. make sure that the shared pool size is larger than 9472
3. adjust GKI_NUM_FIXED_BUF_POOLS accordingly since
POOL ID 7 is not needed
*/
@@ -362,10 +364,10 @@ over HCI data and intentionally kept out of order */
#define GKI_BUF7_MAX 2
#endif
-/* The following pool is a dedicated pool for GATT
- If a shared pool is more desirable then
+/* The following pool is a dedicated pool for GATT
+ If a shared pool is more desirable then
1. set GATT_DB_POOL_ID to the desired Gki Pool ID
- 2. make sure that the shared pool size fit a common GATT database needs
+ 2. make sure that the shared pool size fit a common GATT database needs
3. adjust GKI_NUM_FIXED_BUF_POOLS accordingly since
POOL ID 8 is not needed
*/
@@ -418,7 +420,7 @@ over HCI data and intentionally kept out of order */
#define GKI_TRACE_ERROR_6(m,p1,p2,p3,p4,p5,p6) LogMsg(TRACE_CTRL_GENERAL | TRACE_LAYER_GKI | TRACE_ORG_GKI | TRACE_TYPE_ERROR,m,p1,p2,p3,p4,p5,p6)
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif