|
From: Mats F. <ma...@us...> - 2001-05-15 15:08:00
|
The following file was modified in linux/include/linux/bluetooth: Name Old version New version Comment ---- ----------- ----------- ------- hci.h 1.55 1.56=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: * Moved defines for H4 UART packet types from hci_internal.h * Added functions for Park, Hold and Sniff mode * Added two new functions for receiving BCSP packets The diff of the modified file(s): --- hci.h 2001/04/27 15:19:29 1.55 +++ hci.h 2001/05/15 15:08:00 1.56 @@ -55,6 +55,14 @@ =20 /****************** CONSTANT AND MACRO SECTION ***************************= ***/ =20 +/* Defines for the packet types */ +#define CMD_PKT 0x01 +#define ACL_PKT 0x02 +#define SCO_PKT 0x03 +#define EVENT_PKT 0x04 +#define ERROR_PKT 0x05 +#define NEG_PKT 0x06 + #define INQUIRY_PAGESCAN_DISABLE 0 #define INQUIRY_SCAN_ENABLE 1 #define PAGE_SCAN_ENABLE 2 @@ -87,6 +95,11 @@ void hci_receive_data(u8* data, u32 count); s32 hci_send_data(bt_tx_buf *tx_buf); =20 +#ifdef CONFIG_BLUETOOTH_USE_BCSP +void hci_receive_event(u8 *data, s32 count); +void hci_receive_acl(u8 *data, s32 count); +#endif + s32 lp_connect_req(u8 bd_addr[]); s32 lp_connect_rsp(u8 bd_addr[], u32 cfm); s32 lp_disconnect(u32 con_hdl); @@ -112,6 +125,9 @@ s32 hci_set_connection_encryption_bd(BD_ADDR bd, u8 enable); =20 /* Link Policy Commands */ +s32 hci_hold_mode(u16 hci_hdl, u16 max_int, u16 min_int); +s32 hci_sniff_mode(u16 hci_hdl, u16 max_int, u16 min_int, u16 attempt, u16= timeout); +s32 hci_park_mode(u16 hci_hdl, u16 max_int, u16 min_int); s32 hci_switch_role(u8 *bd, u8 role); =20 /* Host Controller and Baseband Commands */ @@ -135,7 +151,6 @@ s32 hci_write_class_of_device(u8 *class_of_device); s32 hci_set_event_filter(u8 *data); s32 hci_read_power_transmit_level(u32 con_hdl, unsigned char type); -s32 hci_hold_mode(u32 con_hdl, u32 max_interval, u32 min_interval); s32 hci_write_page_to(u32 page_to); s32 hci_write_hold_mode_activity(u32 hma); s32 hci_write_connection_accept_to(u32 co_ac_to); |