diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-17 12:31:42 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-17 12:31:42 +0000 | 
| commit | c3da6a497333f7e21007a3f23312e74464a408bf (patch) | |
| tree | 81a8272d840f104fa496266ba1b832a407c081c6 /tools/hciattach.c | |
| parent | 0b50b92a4bc920e567b74c312a7c1dcbd789c4c9 (diff) | |
Add support for Philips BGB2xx modules
Diffstat (limited to 'tools/hciattach.c')
| -rw-r--r-- | tools/hciattach.c | 25 | 
1 files changed, 23 insertions, 2 deletions
| diff --git a/tools/hciattach.c b/tools/hciattach.c index ab8a0f25..45ce4d7b 100644 --- a/tools/hciattach.c +++ b/tools/hciattach.c @@ -825,11 +825,26 @@ static int st(int fd, struct uart_t *u, struct termios *ti)  	return 0;  } -extern int stlc2500_init(int fd); +extern int stlc2500_init(int fd, bdaddr_t *bdaddr);  static int stlc2500(int fd, struct uart_t *u, struct termios *ti)  { -	return stlc2500_init(fd); +	bdaddr_t bdaddr; + +	str2ba("00:80:E1:00:AB:BA", &bdaddr); + +	return stlc2500_init(fd, &bdaddr); +} + +extern int bgb2xx_init(int fd, bdaddr_t *bdaddr); + +static int bgb2xx(int fd, struct uart_t *u, struct termios *ti) +{ +	bdaddr_t bdaddr; + +	str2ba("BD:B2:10:00:AB:BA", &bdaddr); + +	return bgb2xx_init(fd, &bdaddr);  }  /* @@ -976,6 +991,12 @@ struct uart_t uart[] = {  	/* ST Microelectronics minikits based on STLC2500 */  	{ "stlc2500",   0x0000, 0x0000, HCI_UART_H4,   115200, 115200, FLOW_CTL, stlc2500 }, +	/* Philips generic Ericsson IP core based */ +	{ "philips",    0x0000, 0x0000, HCI_UART_H4,   115200, 115200, FLOW_CTL, NULL     }, + +	/* Philips BGB2xx Module */ +	{ "bgb2xx",    0x0000, 0x0000, HCI_UART_H4,   115200, 115200, FLOW_CTL, bgb2xx   }, +  	/* Sphinx Electronics PICO Card */  	{ "picocard",   0x025e, 0x1000, HCI_UART_H4,   115200, 115200, FLOW_CTL, NULL     }, | 
