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 /****************************************************************************** 18 * 19 * Filename: userial_vendor.h 20 * 21 * Description: Contains vendor-specific definitions used in serial port 22 * controls 23 * 24 ******************************************************************************/ 25 26 #ifndef USERIAL_VENDOR_H 27 #define USERIAL_VENDOR_H 28 29 /* Variables to identify the platform */ 30 /*BT HS UART TTY DEVICE */ 31 #define BT_HS_UART_DEVICE "/dev/ttyHS0" 32 /*BT RIVA-SMD CHANNELS */ 33 #define APPS_RIVA_BT_ACL_CH "/dev/smd2" 34 #define APPS_RIVA_BT_CMD_CH "/dev/smd3" 35 36 typedef enum 37 { 38 BT_HCI_UART, 39 BT_HCI_SMD, 40 BT_HCI_NONE = 0xFF 41 } bt_hci_transport_enum_type; 42 43 typedef struct 44 { 45 /*transport type can be SMD/UART*/ 46 bt_hci_transport_enum_type type; 47 48 /*hci cmd/event packet is required to carry the Packet indicator for UART interfaces only 49 and not required for smd */ 50 int pkt_ind; 51 52 /*transport device can be UART/SMD*/ 53 char *name; 54 55 } bt_hci_transport_device_type; 56 57 bt_hci_transport_device_type bt_hci_set_transport(); 58 59 int bt_hci_init_transport ( int *pFd ); 60 61 int bt_hci_deinit_transport(int *pFd); 62 63 #endif /* USERIAL_VENDOR_H */ 64 65