summaryrefslogtreecommitdiff
path: root/tools/hciattach.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-11 02:47:01 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-07-11 02:47:01 +0000
commit13c0e26a0213f67f5bb9bd6915fddee9a7ca3b49 (patch)
tree5a8d7d4f38c83a25056652a1bd8dad1b9ea4b958 /tools/hciattach.c
parente0c96954340a6ccb8f40bb7106f8208484fa8599 (diff)
downloadbluez-13c0e26a0213f67f5bb9bd6915fddee9a7ca3b49.tar.gz
Add alternate TI init routine
Diffstat (limited to 'tools/hciattach.c')
-rw-r--r--tools/hciattach.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/hciattach.c b/tools/hciattach.c
index 7f699d927..1ef961b2a 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
@@ -155,7 +155,7 @@ static int set_speed(int fd, struct termios *ti, int speed)
/*
* Read an HCI event from the given file descriptor.
*/
-static int read_hci_event(int fd, unsigned char* buf, int size)
+int read_hci_event(int fd, unsigned char* buf, int size)
{
int remain, r;
int count = 0;
@@ -343,6 +343,13 @@ static int texas(int fd, struct uart_t *u, struct termios *ti)
return 0;
}
+extern int texasalt_init(int fd, int speed);
+
+static int texasalt(int fd, struct uart_t *u, struct termios *ti)
+{
+ return texasalt_init(fd, u->speed);
+}
+
static int read_check(int fd, void *buf, int count)
{
int res;
@@ -1061,6 +1068,7 @@ struct uart_t uart[] = {
{ "ericsson", 0x0000, 0x0000, HCI_UART_H4, 57600, 115200, FLOW_CTL, NULL, ericsson },
{ "digi", 0x0000, 0x0000, HCI_UART_H4, 9600, 115200, FLOW_CTL, NULL, digi },
{ "texas", 0x0000, 0x0000, HCI_UART_H4, 115200, 115200, FLOW_CTL, NULL, texas },
+ { "texasalt", 0x0000, 0x0000, HCI_UART_LL, 115200, 115200, FLOW_CTL, NULL, texasalt },
{ "bcsp", 0x0000, 0x0000, HCI_UART_BCSP, 115200, 115200, 0, NULL, bcsp },