blob: 2988c8566613dcd2005dcd4533ab2d34f5065c17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-ac,v 1.1.1.1 2010/12/19 20:20:42 plunky Exp $
--- bluetooth/hci.h.orig 2010-09-30 08:53:08.000000000 +0000
+++ bluetooth/hci.h
@@ -39,6 +39,7 @@ extern "C" {
#define HCI_MAX_EVENT_SIZE 260
#define HCI_MAX_FRAME_SIZE (HCI_MAX_ACL_SIZE + 4)
+#if 0
/* HCI dev events */
#define HCI_DEV_REG 1
#define HCI_DEV_UNREG 2
@@ -101,6 +102,7 @@ enum {
#define HCIUNBLOCKADDR _IOW('H', 231, int)
#define HCIINQUIRY _IOR('H', 240, int)
+#endif
#ifndef __NO_HCI_DEFS
@@ -2232,6 +2234,7 @@ typedef struct {
#endif /* _NO_HCI_DEFS */
+#if 0
/* HCI Socket options */
#define HCI_DATA_DIR 1
#define HCI_FILTER 2
@@ -2339,6 +2342,12 @@ struct hci_inquiry_req {
uint8_t num_rsp;
};
#define IREQ_CACHE_FLUSH 0x0001
+#else
+#define HCI_CMSG_DIR SCM_HCI_DIRECTION
+#define HCI_CMSG_TSTAMP SCM_TIMESTAMP
+#define HCI_DEV_NONE NULL
+#define HCI_DATA_DIR SO_HCI_DIRECTION
+#endif
#ifdef __cplusplus
}
|