Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hidp.h File Reference
#include <linux/types.h>
#include <net/bluetooth/bluetooth.h>

Go to the source code of this file.

Data Structures

struct  hidp_connadd_req
 
struct  hidp_conndel_req
 
struct  hidp_conninfo
 
struct  hidp_connlist_req
 
struct  hidp_session
 

Macros

#define HIDP_HEADER_TRANS_MASK   0xf0
 
#define HIDP_HEADER_PARAM_MASK   0x0f
 
#define HIDP_TRANS_HANDSHAKE   0x00
 
#define HIDP_TRANS_HID_CONTROL   0x10
 
#define HIDP_TRANS_GET_REPORT   0x40
 
#define HIDP_TRANS_SET_REPORT   0x50
 
#define HIDP_TRANS_GET_PROTOCOL   0x60
 
#define HIDP_TRANS_SET_PROTOCOL   0x70
 
#define HIDP_TRANS_GET_IDLE   0x80
 
#define HIDP_TRANS_SET_IDLE   0x90
 
#define HIDP_TRANS_DATA   0xa0
 
#define HIDP_TRANS_DATC   0xb0
 
#define HIDP_HSHK_SUCCESSFUL   0x00
 
#define HIDP_HSHK_NOT_READY   0x01
 
#define HIDP_HSHK_ERR_INVALID_REPORT_ID   0x02
 
#define HIDP_HSHK_ERR_UNSUPPORTED_REQUEST   0x03
 
#define HIDP_HSHK_ERR_INVALID_PARAMETER   0x04
 
#define HIDP_HSHK_ERR_UNKNOWN   0x0e
 
#define HIDP_HSHK_ERR_FATAL   0x0f
 
#define HIDP_CTRL_NOP   0x00
 
#define HIDP_CTRL_HARD_RESET   0x01
 
#define HIDP_CTRL_SOFT_RESET   0x02
 
#define HIDP_CTRL_SUSPEND   0x03
 
#define HIDP_CTRL_EXIT_SUSPEND   0x04
 
#define HIDP_CTRL_VIRTUAL_CABLE_UNPLUG   0x05
 
#define HIDP_DATA_RTYPE_MASK   0x03
 
#define HIDP_DATA_RSRVD_MASK   0x0c
 
#define HIDP_DATA_RTYPE_OTHER   0x00
 
#define HIDP_DATA_RTYPE_INPUT   0x01
 
#define HIDP_DATA_RTYPE_OUPUT   0x02
 
#define HIDP_DATA_RTYPE_FEATURE   0x03
 
#define HIDP_PROTO_BOOT   0x00
 
#define HIDP_PROTO_REPORT   0x01
 
#define HIDPCONNADD   _IOW('H', 200, int)
 
#define HIDPCONNDEL   _IOW('H', 201, int)
 
#define HIDPGETCONNLIST   _IOR('H', 210, int)
 
#define HIDPGETCONNINFO   _IOR('H', 211, int)
 
#define HIDP_VIRTUAL_CABLE_UNPLUG   0
 
#define HIDP_BOOT_PROTOCOL_MODE   1
 
#define HIDP_BLUETOOTH_VENDOR_ID   9
 
#define HIDP_WAITING_FOR_RETURN   10
 
#define HIDP_WAITING_FOR_SEND_ACK   11
 

Functions

int hidp_add_connection (struct hidp_connadd_req *req, struct socket *ctrl_sock, struct socket *intr_sock)
 
int hidp_del_connection (struct hidp_conndel_req *req)
 
int hidp_get_connlist (struct hidp_connlist_req *req)
 
int hidp_get_conninfo (struct hidp_conninfo *ci)
 
int __init hidp_init_sockets (void)
 
void __exit hidp_cleanup_sockets (void)
 

Macro Definition Documentation

#define HIDP_BLUETOOTH_VENDOR_ID   9

Definition at line 82 of file hidp.h.

#define HIDP_BOOT_PROTOCOL_MODE   1

Definition at line 81 of file hidp.h.

#define HIDP_CTRL_EXIT_SUSPEND   0x04

Definition at line 59 of file hidp.h.

#define HIDP_CTRL_HARD_RESET   0x01

Definition at line 56 of file hidp.h.

#define HIDP_CTRL_NOP   0x00

Definition at line 55 of file hidp.h.

#define HIDP_CTRL_SOFT_RESET   0x02

Definition at line 57 of file hidp.h.

#define HIDP_CTRL_SUSPEND   0x03

Definition at line 58 of file hidp.h.

#define HIDP_CTRL_VIRTUAL_CABLE_UNPLUG   0x05

Definition at line 60 of file hidp.h.

#define HIDP_DATA_RSRVD_MASK   0x0c

Definition at line 64 of file hidp.h.

#define HIDP_DATA_RTYPE_FEATURE   0x03

Definition at line 68 of file hidp.h.

#define HIDP_DATA_RTYPE_INPUT   0x01

Definition at line 66 of file hidp.h.

#define HIDP_DATA_RTYPE_MASK   0x03

Definition at line 63 of file hidp.h.

#define HIDP_DATA_RTYPE_OTHER   0x00

Definition at line 65 of file hidp.h.

#define HIDP_DATA_RTYPE_OUPUT   0x02

Definition at line 67 of file hidp.h.

#define HIDP_HEADER_PARAM_MASK   0x0f

Definition at line 31 of file hidp.h.

#define HIDP_HEADER_TRANS_MASK   0xf0

Definition at line 30 of file hidp.h.

#define HIDP_HSHK_ERR_FATAL   0x0f

Definition at line 52 of file hidp.h.

#define HIDP_HSHK_ERR_INVALID_PARAMETER   0x04

Definition at line 50 of file hidp.h.

#define HIDP_HSHK_ERR_INVALID_REPORT_ID   0x02

Definition at line 48 of file hidp.h.

#define HIDP_HSHK_ERR_UNKNOWN   0x0e

Definition at line 51 of file hidp.h.

#define HIDP_HSHK_ERR_UNSUPPORTED_REQUEST   0x03

Definition at line 49 of file hidp.h.

#define HIDP_HSHK_NOT_READY   0x01

Definition at line 47 of file hidp.h.

#define HIDP_HSHK_SUCCESSFUL   0x00

Definition at line 46 of file hidp.h.

#define HIDP_PROTO_BOOT   0x00

Definition at line 71 of file hidp.h.

#define HIDP_PROTO_REPORT   0x01

Definition at line 72 of file hidp.h.

#define HIDP_TRANS_DATA   0xa0

Definition at line 42 of file hidp.h.

#define HIDP_TRANS_DATC   0xb0

Definition at line 43 of file hidp.h.

#define HIDP_TRANS_GET_IDLE   0x80

Definition at line 40 of file hidp.h.

#define HIDP_TRANS_GET_PROTOCOL   0x60

Definition at line 38 of file hidp.h.

#define HIDP_TRANS_GET_REPORT   0x40

Definition at line 36 of file hidp.h.

#define HIDP_TRANS_HANDSHAKE   0x00

Definition at line 34 of file hidp.h.

#define HIDP_TRANS_HID_CONTROL   0x10

Definition at line 35 of file hidp.h.

#define HIDP_TRANS_SET_IDLE   0x90

Definition at line 41 of file hidp.h.

#define HIDP_TRANS_SET_PROTOCOL   0x70

Definition at line 39 of file hidp.h.

#define HIDP_TRANS_SET_REPORT   0x50

Definition at line 37 of file hidp.h.

#define HIDP_VIRTUAL_CABLE_UNPLUG   0

Definition at line 80 of file hidp.h.

#define HIDP_WAITING_FOR_RETURN   10

Definition at line 83 of file hidp.h.

#define HIDP_WAITING_FOR_SEND_ACK   11

Definition at line 84 of file hidp.h.

#define HIDPCONNADD   _IOW('H', 200, int)

Definition at line 75 of file hidp.h.

#define HIDPCONNDEL   _IOW('H', 201, int)

Definition at line 76 of file hidp.h.

#define HIDPGETCONNINFO   _IOR('H', 211, int)

Definition at line 78 of file hidp.h.

#define HIDPGETCONNLIST   _IOR('H', 210, int)

Definition at line 77 of file hidp.h.

Function Documentation

int hidp_add_connection ( struct hidp_connadd_req req,
struct socket ctrl_sock,
struct socket intr_sock 
)

Definition at line 953 of file core.c.

void __exit hidp_cleanup_sockets ( void  )

Definition at line 304 of file sock.c.

int hidp_del_connection ( struct hidp_conndel_req req)

Definition at line 1104 of file core.c.

int hidp_get_conninfo ( struct hidp_conninfo ci)

Definition at line 1163 of file core.c.

int hidp_get_connlist ( struct hidp_connlist_req req)

Definition at line 1133 of file core.c.

int __init hidp_init_sockets ( void  )

Definition at line 273 of file sock.c.