diff options
Diffstat (limited to 'stack/avct/avct_lcb.c')
-rw-r--r-- | stack/avct/avct_lcb.c | 58 |
1 files changed, 35 insertions, 23 deletions
diff --git a/stack/avct/avct_lcb.c b/stack/avct/avct_lcb.c index f7127a3..bb3f447 100644 --- a/stack/avct/avct_lcb.c +++ b/stack/avct/avct_lcb.c @@ -1,15 +1,27 @@ -/***************************************************************************** -** -** Name: avct_lcb.c -** -** Description: This module contains the link control state -** machine and functions which operate on the link -** control block. -** -** Copyright (c) 2003-2008, WIDCOMM Inc., All Rights Reserved. -** WIDCOMM Bluetooth Core. Proprietary and confidential. -** -*****************************************************************************/ +/****************************************************************************** + * + * Copyright (C) 2003-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 module contains the link control state machine and functions which + * operate on the link control block. + * + ******************************************************************************/ #include <string.h> #include "data_types.h" @@ -173,7 +185,7 @@ const tAVCT_LCB_ST_TBL avct_lcb_st_tbl[] = { ** Function avct_lcb_event ** ** Description State machine event handling function for lcb -** +** ** ** Returns Nothing. ** @@ -215,7 +227,7 @@ void avct_lcb_event(tAVCT_LCB *p_lcb, UINT8 event, tAVCT_LCB_EVT *p_data) ** Function avct_bcb_event ** ** Description State machine event handling function for lcb -** +** ** ** Returns Nothing. ** @@ -259,7 +271,7 @@ void avct_bcb_event(tAVCT_BCB *p_bcb, UINT8 event, tAVCT_LCB_EVT *p_data) ** Function avct_lcb_by_bd ** ** Description This lookup function finds the lcb for a BD address. -** +** ** ** Returns pointer to the lcb, or NULL if none found. ** @@ -277,7 +289,7 @@ tAVCT_LCB *avct_lcb_by_bd(BD_ADDR bd_addr) break; } } - + if (i == AVCT_NUM_LINKS) { /* if no lcb found */ @@ -294,7 +306,7 @@ tAVCT_LCB *avct_lcb_by_bd(BD_ADDR bd_addr) ** Function avct_lcb_alloc ** ** Description Allocate a link control block. -** +** ** ** Returns pointer to the lcb, or NULL if none could be allocated. ** @@ -314,7 +326,7 @@ tAVCT_LCB *avct_lcb_alloc(BD_ADDR bd_addr) break; } } - + if (i == AVCT_NUM_LINKS) { /* out of lcbs */ @@ -329,7 +341,7 @@ tAVCT_LCB *avct_lcb_alloc(BD_ADDR bd_addr) ** Function avct_lcb_dealloc ** ** Description Deallocate a link control block. -** +** ** ** Returns void. ** @@ -374,7 +386,7 @@ void avct_lcb_dealloc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data) ** Function avct_lcb_by_lcid ** ** Description Find the LCB associated with the L2CAP LCID -** +** ** ** Returns pointer to the lcb, or NULL if none found. ** @@ -391,7 +403,7 @@ tAVCT_LCB *avct_lcb_by_lcid(UINT16 lcid) break; } } - + if (i == AVCT_NUM_LINKS) { /* out of lcbs */ @@ -407,7 +419,7 @@ tAVCT_LCB *avct_lcb_by_lcid(UINT16 lcid) ** Function avct_lcb_has_pid ** ** Description See if any ccbs on this lcb have a particular pid. -** +** ** ** Returns Pointer to CCB if PID found, NULL otherwise. ** @@ -432,7 +444,7 @@ tAVCT_CCB *avct_lcb_has_pid(tAVCT_LCB *p_lcb, UINT16 pid) ** Function avct_lcb_last_ccb ** ** Description See if given ccb is only one on the lcb. -** +** ** ** Returns TRUE if ccb is last, FALSE otherwise. ** |