~ubuntu-branches/ubuntu/wily/bluez/wily

« back to all changes in this revision

Viewing changes to tools/hciattach.h

ImportĀ upstreamĀ versionĀ 4.81

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  BlueZ - Bluetooth protocol stack for Linux
4
4
 *
5
 
 *  Copyright (C) 2003-2009  Marcel Holtmann <marcel@holtmann.org>
 
5
 *  Copyright (C) 2003-2010  Marcel Holtmann <marcel@holtmann.org>
6
6
 *
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
30
30
#define HCIUARTSETPROTO         _IOW('U', 200, int)
31
31
#define HCIUARTGETPROTO         _IOR('U', 201, int)
32
32
#define HCIUARTGETDEVICE        _IOR('U', 202, int)
 
33
#define HCIUARTSETFLAGS         _IOW('U', 203, int)
 
34
#define HCIUARTGETFLAGS         _IOR('U', 204, int)
33
35
 
34
36
#define HCI_UART_H4     0
35
37
#define HCI_UART_BCSP   1
36
38
#define HCI_UART_3WIRE  2
37
39
#define HCI_UART_H4DS   3
38
40
#define HCI_UART_LL     4
 
41
#define HCI_UART_ATH3K  5
 
42
 
 
43
#define HCI_UART_RAW_DEVICE     0
39
44
 
40
45
int read_hci_event(int fd, unsigned char* buf, int size);
41
46
int set_speed(int fd, struct termios *ti, int speed);
45
50
int texasalt_init(int fd, int speed, struct termios *ti);
46
51
int stlc2500_init(int fd, bdaddr_t *bdaddr);
47
52
int bgb2xx_init(int dd, bdaddr_t *bdaddr);
 
53
int ath3k_init(int fd, int speed, int init_speed, char *bdaddr,
 
54
                                                struct termios *ti);
 
55
int ath3k_post(int fd, int pm);
 
56
int qualcomm_init(int fd, int speed, struct termios *ti, const char *bdaddr);