|
From: Willy S. <sag...@us...> - 2002-04-08 16:44:07
|
The following file was modified in apps/bluetooth/experimental: Name Old version New version Tag Comment ---- ----------- ----------- --- ------- bt_if.h 1.32 1.33=20=20=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Added new commands The diff of the modified file(s): --- bt_if.h 28 Feb 2002 20:08:31 -0000 1.32 +++ bt_if.h 8 Apr 2002 11:23:11 -0000 1.33 @@ -150,16 +150,24 @@ #define HCIAUTHENTICATION_REQUESTED _IOW(BT_IOC_MAGIC, 0x25, unsigned char= [6]) #define HCISETCONNECTION_ENCRYPTION _IOW(BT_IOC_MAGIC, 0x26, unsigned char= [7]) #define HCIREMOTENAME_REQUEST _IOW(BT_IOC_MAGIC, 0x27, unsigned char[255]) +#define HCIREADCLOCKOFFSET _IOWR(BT_IOC_MAGIC, 0x53, unsigned char[4]) =20 /* Link Policy Commands */ =20 #define HCISWITCHROLE _IOW(BT_IOC_MAGIC, 0x28, unsigned char[7]) +#define HCIPARKMODE _IOW(BT_IOC_MAGIC, 0x51, unsigned char[6]) +#define HCIEXITPARKMODE _IOW(BT_IOC_MAGIC, 0x52, unsigned char[4]) +#define HCISNIFFMODE _IOW(BT_IOC_MAGIC, 0x59, unsigned char[8]) +#define HCIEXITSNIFFMODE _IOW(BT_IOC_MAGIC, 0x5a, unsigned char[4]) +#define HCIWRITELINKPOLICYSETTINGS _IOW(BT_IOC_MAGIC, 0x5b, unsigned char[= 4]) +#define HCIHOLDMODE _IOW(BT_IOC_MAGIC, 0x5c, unsigned char[6]) =20 /* BNEP Control Commands */ -#define BNEPCONNECT _IOW(BT_IOC_MAGIC, 0x29, unsigned char[6]) +#define BNEPCONNECT _IOWR(BT_IOC_MAGIC, 0x29, unsigned char[6]) #define BNEPTEST _IOW(BT_IOC_MAGIC, 0x2a, unsigned char[5]) #define BNEPADDPROTOCOLFILTER _IOW(BT_IOC_MAGIC, 0x2b, unsigned int[2]) #define BNEPADDMULTICASTFILTER _IOW(BT_IOC_MAGIC, 0x2c, unsigned char[12]) +#define BNEPDISCONNECT _IOWR(BT_IOC_MAGIC, 0x2d, unsigned char[6]) =20 /* Host Controller & Baseband Commands */ =20 @@ -179,6 +187,12 @@ #define HCIREAD_ENCRYPTION_MODE _IOR(BT_IOC_MAGIC, 0x3d, int) #define HCIWRITE_ENCRYPTION_MODE _IOWR(BT_IOC_MAGIC, 0x3e, int) #define HCISET_EVENT_FILTER _IOW(BT_IOC_MAGIC, 0x3f, unsigned char[255]) +#define HCIREADNUMBROADCASTRETRANSMISSIONS _IOWR(BT_IOC_MAGIC, 0x55, unsig= ned char[2]) +#define HCIWRITENUMBROADCASTRETRANSMISSIONS _IOWR(BT_IOC_MAGIC, 0x56, unsi= gned char) +#define HCIWRITEPAGETO _IOW(BT_IOC_MAGIC, 0x54, unsigned char[4]) +#define HCIREADTRANSMITPOWERLEVEL _IOWR(BT_IOC_MAGIC, 0x57, unsigned char[= 3]) +#define HCIWRITELINKSUPERVISIONTO _IOW(BT_IOC_MAGIC, 0x58, unsigned char[8= ]) +=20 =20 /* Informational Parameters */ =20 @@ -186,6 +200,7 @@ #define HCIREADLOCALBDADDR _IOR(BT_IOC_MAGIC, 0x45, unsigned char[6]) =20 /* Status Parameters */ +#define HCIREADRSSI _IOWR(BT_IOC_MAGIC, 0x50, unsigned char[4]) =20 /* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */ /* Testing Commands */ @@ -299,6 +314,14 @@ void set_bt_line_disc(int phys_fd, int bt_disc, char* physdev); =20 /*=20 + * BNEP functions + */ +#ifndef BTD_USERSTACK +void bnep_connect(int bt_fd, unsigned char *bd); +void bnep_disconnect(int bt_fd, unsigned char *bd); +#endif + +/*=20 * Connect/Disconnect functions=20 */ =20 @@ -344,6 +367,20 @@ =20 int bt_read_country_code(int bt_cfd); =20 +void bt_read_rssi(int bt_cfd, unsigned char* con_hdl); +void bt_park_mode(int bt_cfd, unsigned char* park_params); +void bt_exit_park_mode(int bt_cfd, unsigned char* con_hdl); +void bt_sniff_mode(int bt_cfd, unsigned char* park_params); +void bt_exit_sniff_mode(int bt_cfd, unsigned char* con_hdl); +void bt_read_clock_offset(int bt_cfd, unsigned char* con_hdl); +void bt_read_num_broadcast_rtx(int bt_cfd); +void bt_write_num_broadcast_rtx(int bt_cfd, unsigned char* num_rtx); +void bt_write_page_to(int bt_cfd, unsigned char* page_to); +void bt_read_tx_power_level(int bt_cfd, unsigned char* tx_power_level); +void bt_write_link_supervision_to(int bt_cfd, unsigned char* link_to); +void bt_write_page_scan_activity(int bt_cfd, unsigned char* page_scan); +void bt_write_link_policy_settings(int bt_cfd, unsigned char* policy_param= s); +void bt_hold_mode(int bt_cfd, unsigned char* hold_params); void enable_dut(int bt_cfd); =20 =20 |