Home | History | Annotate | Download | only in co
      1 /******************************************************************************
      2  *
      3  *  Copyright (C) 2009-2012 Broadcom Corporation
      4  *
      5  *  Licensed under the Apache License, Version 2.0 (the "License");
      6  *  you may not use this file except in compliance with the License.
      7  *  You may obtain a copy of the License at:
      8  *
      9  *  http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  *  Unless required by applicable law or agreed to in writing, software
     12  *  distributed under the License is distributed on an "AS IS" BASIS,
     13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  *  See the License for the specific language governing permissions and
     15  *  limitations under the License.
     16  *
     17  ******************************************************************************/
     18 #include "bta_sys.h"
     19 #include "bta_sys_ci.h"
     20 
     21 /*******************************************************************************
     22 **
     23 ** Function         bta_sys_hw_co_enable
     24 **
     25 ** Description      This function is called by the stack to power up the HW
     26 **
     27 ** Returns          void
     28 **
     29 *******************************************************************************/
     30 void bta_sys_hw_co_enable( tBTA_SYS_HW_MODULE module )
     31 {
     32     /* platform specific implementation to power-up the HW */
     33 
     34 
     35     /* if no client/server asynchronous system like linux-based OS, directly call the ci here */
     36     bta_sys_hw_ci_enabled( module );
     37 }
     38 
     39 
     40 /*******************************************************************************
     41 **
     42 ** Function         bta_sys_hw_co_disable
     43 **
     44 ** Description     This function is called by the stack to power down the HW
     45 **
     46 ** Returns          void
     47 **
     48 *******************************************************************************/
     49 void bta_sys_hw_co_disable( tBTA_SYS_HW_MODULE module )
     50 {
     51     /* platform specific implementation to power-down the HW */
     52 
     53 
     54     /* if no client/server asynchronous system like linux-based OS, directly call the ci here */
     55     bta_sys_hw_ci_disabled( module );
     56 
     57 }
     58