Home | History | Annotate | Download | only in include
      1 /*
      2  * Copyright 2012 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef BT_VENDOR_QCOM_H
     18 #define BT_VENDOR_QCOM_H
     19 
     20 #include "bt_vendor_lib.h"
     21 #include "vnd_buildcfg.h"
     22 #include "userial_vendor.h"
     23 #include "utils.h"
     24 
     25 #ifndef FALSE
     26 #define FALSE  0
     27 #endif
     28 
     29 #ifndef TRUE
     30 #define TRUE   (!FALSE)
     31 #endif
     32 
     33 // File discriptor using Transport
     34 extern int fd;
     35 
     36 extern bt_hci_transport_device_type bt_hci_transport_device;
     37 
     38 extern bt_vendor_callbacks_t *bt_vendor_cbacks;
     39 /* HW_NEED_END_WITH_HCI_RESET
     40 
     41     code implementation of sending a HCI_RESET command during the epilog
     42     process. It calls back to the callers after command complete of HCI_RESET
     43     is received.
     44 
     45     Default TRUE .
     46 */
     47 #ifndef HW_NEED_END_WITH_HCI_RESET
     48 #define HW_NEED_END_WITH_HCI_RESET TRUE
     49 #endif
     50 
     51 #define HCI_RESET  0x0C03
     52 #define HCI_CMD_PREAMBLE_SIZE 3
     53 #define HCI_EVT_CMD_CMPL_STATUS_RET_BYTE   5
     54 #define HCI_EVT_CMD_CMPL_OPCODE        3
     55 
     56 #endif /* BT_VENDOR_BRCM_H */
     57 
     58