aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r--include/net/bluetooth/hci.h149
1 files changed, 0 insertions, 149 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index a01236e2df13..7f754a246ca5 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -202,33 +202,6 @@ enum {
202#define HCI_PERSISTENT_MASK (BIT(HCI_LE_SCAN) | BIT(HCI_PERIODIC_INQ) | \ 202#define HCI_PERSISTENT_MASK (BIT(HCI_LE_SCAN) | BIT(HCI_PERIODIC_INQ) | \
203 BIT(HCI_FAST_CONNECTABLE) | BIT(HCI_LE_ADV)) 203 BIT(HCI_FAST_CONNECTABLE) | BIT(HCI_LE_ADV))
204 204
205/* HCI ioctl defines */
206#define HCIDEVUP _IOW('H', 201, int)
207#define HCIDEVDOWN _IOW('H', 202, int)
208#define HCIDEVRESET _IOW('H', 203, int)
209#define HCIDEVRESTAT _IOW('H', 204, int)
210
211#define HCIGETDEVLIST _IOR('H', 210, int)
212#define HCIGETDEVINFO _IOR('H', 211, int)
213#define HCIGETCONNLIST _IOR('H', 212, int)
214#define HCIGETCONNINFO _IOR('H', 213, int)
215#define HCIGETAUTHINFO _IOR('H', 215, int)
216
217#define HCISETRAW _IOW('H', 220, int)
218#define HCISETSCAN _IOW('H', 221, int)
219#define HCISETAUTH _IOW('H', 222, int)
220#define HCISETENCRYPT _IOW('H', 223, int)
221#define HCISETPTYPE _IOW('H', 224, int)
222#define HCISETLINKPOL _IOW('H', 225, int)
223#define HCISETLINKMODE _IOW('H', 226, int)
224#define HCISETACLMTU _IOW('H', 227, int)
225#define HCISETSCOMTU _IOW('H', 228, int)
226
227#define HCIBLOCKADDR _IOW('H', 230, int)
228#define HCIUNBLOCKADDR _IOW('H', 231, int)
229
230#define HCIINQUIRY _IOR('H', 240, int)
231
232/* HCI timeouts */ 205/* HCI timeouts */
233#define HCI_DISCONN_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */ 206#define HCI_DISCONN_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */
234#define HCI_PAIRING_TIMEOUT msecs_to_jiffies(60000) /* 60 seconds */ 207#define HCI_PAIRING_TIMEOUT msecs_to_jiffies(60000) /* 60 seconds */
@@ -1871,126 +1844,4 @@ static inline struct hci_sco_hdr *hci_sco_hdr(const struct sk_buff *skb)
1871#define hci_handle(h) (h & 0x0fff) 1844#define hci_handle(h) (h & 0x0fff)
1872#define hci_flags(h) (h >> 12) 1845#define hci_flags(h) (h >> 12)
1873 1846
1874/* ---- HCI Sockets ---- */
1875
1876/* Socket options */
1877#define HCI_DATA_DIR 1
1878#define HCI_FILTER 2
1879#define HCI_TIME_STAMP 3
1880
1881/* CMSG flags */
1882#define HCI_CMSG_DIR 0x0001
1883#define HCI_CMSG_TSTAMP 0x0002
1884
1885struct sockaddr_hci {
1886 sa_family_t hci_family;
1887 unsigned short hci_dev;
1888 unsigned short hci_channel;
1889};
1890#define HCI_DEV_NONE 0xffff
1891
1892#define HCI_CHANNEL_RAW 0
1893#define HCI_CHANNEL_USER 1
1894#define HCI_CHANNEL_MONITOR 2
1895#define HCI_CHANNEL_CONTROL 3
1896
1897struct hci_filter {
1898 unsigned long type_mask;
1899 unsigned long event_mask[2];
1900 __le16 opcode;
1901};
1902
1903struct hci_ufilter {
1904 __u32 type_mask;
1905 __u32 event_mask[2];
1906 __le16 opcode;
1907};
1908
1909#define HCI_FLT_TYPE_BITS 31
1910#define HCI_FLT_EVENT_BITS 63
1911#define HCI_FLT_OGF_BITS 63
1912#define HCI_FLT_OCF_BITS 127
1913
1914/* ---- HCI Ioctl requests structures ---- */
1915struct hci_dev_stats {
1916 __u32 err_rx;
1917 __u32 err_tx;
1918 __u32 cmd_tx;
1919 __u32 evt_rx;
1920 __u32 acl_tx;
1921 __u32 acl_rx;
1922 __u32 sco_tx;
1923 __u32 sco_rx;
1924 __u32 byte_rx;
1925 __u32 byte_tx;
1926};
1927
1928struct hci_dev_info {
1929 __u16 dev_id;
1930 char name[8];
1931
1932 bdaddr_t bdaddr;
1933
1934 __u32 flags;
1935 __u8 type;
1936
1937 __u8 features[8];
1938
1939 __u32 pkt_type;
1940 __u32 link_policy;
1941 __u32 link_mode;
1942
1943 __u16 acl_mtu;
1944 __u16 acl_pkts;
1945 __u16 sco_mtu;
1946 __u16 sco_pkts;
1947
1948 struct hci_dev_stats stat;
1949};
1950
1951struct hci_conn_info {
1952 __u16 handle;
1953 bdaddr_t bdaddr;
1954 __u8 type;
1955 __u8 out;
1956 __u16 state;
1957 __u32 link_mode;
1958};
1959
1960struct hci_dev_req {
1961 __u16 dev_id;
1962 __u32 dev_opt;
1963};
1964
1965struct hci_dev_list_req {
1966 __u16 dev_num;
1967 struct hci_dev_req dev_req[0]; /* hci_dev_req structures */
1968};
1969
1970struct hci_conn_list_req {
1971 __u16 dev_id;
1972 __u16 conn_num;
1973 struct hci_conn_info conn_info[0];
1974};
1975
1976struct hci_conn_info_req {
1977 bdaddr_t bdaddr;
1978 __u8 type;
1979 struct hci_conn_info conn_info[0];
1980};
1981
1982struct hci_auth_info_req {
1983 bdaddr_t bdaddr;
1984 __u8 type;
1985};
1986
1987struct hci_inquiry_req {
1988 __u16 dev_id;
1989 __u16 flags;
1990 __u8 lap[3];
1991 __u8 length;
1992 __u8 num_rsp;
1993};
1994#define IREQ_CACHE_FLUSH 0x0001
1995
1996#endif /* __HCI_H */ 1847#endif /* __HCI_H */