From 6ad588aae86c90b9a9e247a2a0e4c21d2bdcfb06 Mon Sep 17 00:00:00 2001 From: Oliver Ruiz Dorantes Date: Thu, 7 Feb 2008 19:56:08 +0000 Subject: [PATCH] Added remaining event IDs I saw in new Bluetooth 2.1 specs plus some internal stack haiku is gonna use git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23924 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/bluetooth/HCI/btHCI_event.h | 39 +++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/headers/os/bluetooth/HCI/btHCI_event.h b/headers/os/bluetooth/HCI/btHCI_event.h index c8e53606e7..1aa5249f06 100644 --- a/headers/os/bluetooth/HCI/btHCI_event.h +++ b/headers/os/bluetooth/HCI/btHCI_event.h @@ -290,4 +290,41 @@ struct hci_ev_sychronous_connection_changed { uint16 tx_packet_length; } __attribute__ ((packed)); -#endif \ No newline at end of file +// TODO: Define remaining Bluetooth 2.1 events structures +#define HCI_EVENT_EXTENDED_INQUIRY_RESULT 0x2F + +#define HCI_EVENT_ENCRYPTION_KEY_REFERSH_COMPLETE 0x30 + +#define HCI_EVENT_IO_CAPABILITY_REQUEST 0x31 + +#define HCI_EVENT_IO_CAPABILITY_RESPONSE 0x32 + +#define HCI_EVENT_USER_CONFIRMATION_REQUEST 0x33 + +#define HCI_EVENT_USER_PASSKEY_REQUEST 0x34 + +#define HCI_EVENT_OOB_DATA_REQUEST 0x35 + +#define HCI_EVENT_SIMPLE_PAIRING_COMPLETE 0x36 + +#define HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED 0x38 + +#define HCI_EVENT_ENHANCED_FLUSH_COMPLETE 0x39 + +#define HCI_EVENT_KEYPRESS_NOTIFICATION 0x3C + +#define HCI_EVENT_REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION 0x3D + + + + +/* HAIKU Internal Events, not produced by the transport devices but + * by some entity of the Haiku Bluetooth Stack. + * The MSB 0xE is chosen for this purpose + */ + +#define HCI_HAIKU_EVENT_SERVER_QUITTING 0xE0 +#define HCI_HAIKU_EVENT_DEVICE_REMOVED 0xE1 + + +#endif