From 6ef101187774e30ddba6b46bbedef549a42196ad Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Tue, 18 Sep 2012 01:35:44 -0700 Subject: Initual Bluetooth open source release First release under Apache source license with updated header files and whitespace cleanups. Also fixed file permission to remove executable bit from source files. Change-Id: I7155903edfc2f491c1cbbd0db108f207852caaa0 --- include/gki_target.h | 54 +++++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'include/gki_target.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 -- cgit v1.1