Skip to contentSkip to conversation

Added Application Support for Atheros AR300X UART Bluetooth Chip

PATCH New Vikram Kandukuri 1 participant 1 message Feb 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added Application Support for Atheros AR300X UART Bluetooth Chip

---
 Makefile.tools       |    2 +
 tools/ar3kpsconfig.c |  455 ++++++++++++++++++++++++++++
 tools/ar3kpsparser.c |  822 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/ar3kpsparser.h |  127 ++++++++
 tools/hciattach.8    |    6 +
 tools/hciattach.c    |  158 ++++++++++-
 tools/hciattach.h    |    5 +-
 7 files changed, 1572 insertions(+), 3 deletions(-)
 create mode 100755 tools/ar3kpsconfig.c
 create mode 100755 tools/ar3kpsparser.c
 create mode 100755 tools/ar3kpsparser.h
Makefile.tools +2 -0
index 2735d68..72277f9 100644
@@ -21,6 +21,8 @@ tools_rfcomm_LDADD = lib/libbluetooth.la
 tools_l2ping_LDADD = lib/libbluetooth.la
 
 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
+						tools/ar3kpsparser.c \
+						tools/ar3kpsconfig.c \
 						tools/hciattach_st.c \
 						tools/hciattach_ti.c \
 						tools/hciattach_tialt.c
tools/ar3kpsconfig.c new file +455 -0

455 lines not on this page · raw message

tools/ar3kpsparser.c new file +822 -0

822 lines not on this page · raw message

tools/ar3kpsparser.h new file +127 -0

127 lines not on this page · raw message

tools/hciattach.8 +6 -0
index f750222..74ad0d0 100644
@@ -49,6 +49,12 @@ specific identifier. Currently supported types are
 .B any
 Unspecified HCI_UART interface, no vendor specific options
 .TP
+.B ar3001
+Atheros AR3001 based modules
+.TP
+.B ar3001pm
+Atheros AR3001 based modules with advanced power save feature enabled
+.TP
 .B ericsson
 Ericsson based modules
 .TP
tools/hciattach.c +156 -2

176 lines not on this page · raw message

tools/hciattach.h +4 -1
index 867563b..6f6469f 100644
@@ -36,7 +36,7 @@
 #define HCI_UART_3WIRE	2
 #define HCI_UART_H4DS	3
 #define HCI_UART_LL	4
-
+#define HCI_UART_ATH    5
 int read_hci_event(int fd, unsigned char* buf, int size);
 int set_speed(int fd, struct termios *ti, int speed);
 
@@ -45,3 +45,6 @@ int texas_post(int fd, struct termios *ti);
 int texasalt_init(int fd, int speed, struct termios *ti);
 int stlc2500_init(int fd, bdaddr_t *bdaddr);
 int bgb2xx_init(int dd, bdaddr_t *bdaddr);
+int ath_ps_download(int fd);
+int ar3001_post(int fd);
+int ar3001pm_post(int fd);
Signature · 1 line
1.6.3.3