1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * 3*4882a593Smuzhiyun * BlueZ - Bluetooth protocol stack for Linux 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2003-2009 Marcel Holtmann <marcel@holtmann.org> 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 9*4882a593Smuzhiyun * it under the terms of the GNU General Public License as published by 10*4882a593Smuzhiyun * the Free Software Foundation; either version 2 of the License, or 11*4882a593Smuzhiyun * (at your option) any later version. 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * This program is distributed in the hope that it will be useful, 14*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*4882a593Smuzhiyun * GNU General Public License for more details. 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 19*4882a593Smuzhiyun * along with this program; if not, write to the Free Software 20*4882a593Smuzhiyun * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21*4882a593Smuzhiyun * 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #include <termios.h> 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #ifndef N_HCI 27*4882a593Smuzhiyun #define N_HCI 15 28*4882a593Smuzhiyun #endif 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun #define HCIUARTSETPROTO _IOW('U', 200, int) 31*4882a593Smuzhiyun #define HCIUARTGETPROTO _IOR('U', 201, int) 32*4882a593Smuzhiyun #define HCIUARTGETDEVICE _IOR('U', 202, int) 33*4882a593Smuzhiyun #define HCIUARTSETFLAGS _IOW('U', 203, int) 34*4882a593Smuzhiyun #define HCIUARTGETFLAGS _IOR('U', 204, int) 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun #define HCI_UART_H4 0 37*4882a593Smuzhiyun #define HCI_UART_BCSP 1 38*4882a593Smuzhiyun #define HCI_UART_3WIRE 2 39*4882a593Smuzhiyun #define HCI_UART_H4DS 3 40*4882a593Smuzhiyun #define HCI_UART_LL 4 41*4882a593Smuzhiyun #define HCI_UART_RAW_DEVICE 0 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun int read_hci_event(int fd, unsigned char* buf, int size); 44*4882a593Smuzhiyun int set_speed(int fd, struct termios *ti, int speed); 45*4882a593Smuzhiyun /* 46*4882a593Smuzhiyun int texas_init(int fd, struct termios *ti); 47*4882a593Smuzhiyun int texas_post(int fd, struct termios *ti); 48*4882a593Smuzhiyun int texasalt_init(int fd, int speed, struct termios *ti); 49*4882a593Smuzhiyun int stlc2500_init(int fd, bdaddr_t *bdaddr); 50*4882a593Smuzhiyun int bgb2xx_init(int dd, bdaddr_t *bdaddr); 51*4882a593Smuzhiyun */ 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun //Realtek_add_start 54*4882a593Smuzhiyun //add realtek init and post process for realtek Bluetooth chip 55*4882a593Smuzhiyun int rtk_init(int fd, int proto, int speed, struct termios *ti); 56*4882a593Smuzhiyun int rtk_post(int fd, int proto, struct termios *ti); 57*4882a593Smuzhiyun //Realtek_add_end 58