Go to the documentation of this file.
26 #include <linux/types.h>
30 #define HIDP_HEADER_TRANS_MASK 0xf0
31 #define HIDP_HEADER_PARAM_MASK 0x0f
34 #define HIDP_TRANS_HANDSHAKE 0x00
35 #define HIDP_TRANS_HID_CONTROL 0x10
36 #define HIDP_TRANS_GET_REPORT 0x40
37 #define HIDP_TRANS_SET_REPORT 0x50
38 #define HIDP_TRANS_GET_PROTOCOL 0x60
39 #define HIDP_TRANS_SET_PROTOCOL 0x70
40 #define HIDP_TRANS_GET_IDLE 0x80
41 #define HIDP_TRANS_SET_IDLE 0x90
42 #define HIDP_TRANS_DATA 0xa0
43 #define HIDP_TRANS_DATC 0xb0
46 #define HIDP_HSHK_SUCCESSFUL 0x00
47 #define HIDP_HSHK_NOT_READY 0x01
48 #define HIDP_HSHK_ERR_INVALID_REPORT_ID 0x02
49 #define HIDP_HSHK_ERR_UNSUPPORTED_REQUEST 0x03
50 #define HIDP_HSHK_ERR_INVALID_PARAMETER 0x04
51 #define HIDP_HSHK_ERR_UNKNOWN 0x0e
52 #define HIDP_HSHK_ERR_FATAL 0x0f
55 #define HIDP_CTRL_NOP 0x00
56 #define HIDP_CTRL_HARD_RESET 0x01
57 #define HIDP_CTRL_SOFT_RESET 0x02
58 #define HIDP_CTRL_SUSPEND 0x03
59 #define HIDP_CTRL_EXIT_SUSPEND 0x04
60 #define HIDP_CTRL_VIRTUAL_CABLE_UNPLUG 0x05
63 #define HIDP_DATA_RTYPE_MASK 0x03
64 #define HIDP_DATA_RSRVD_MASK 0x0c
65 #define HIDP_DATA_RTYPE_OTHER 0x00
66 #define HIDP_DATA_RTYPE_INPUT 0x01
67 #define HIDP_DATA_RTYPE_OUPUT 0x02
68 #define HIDP_DATA_RTYPE_FEATURE 0x03
71 #define HIDP_PROTO_BOOT 0x00
72 #define HIDP_PROTO_REPORT 0x01
75 #define HIDPCONNADD _IOW('H', 200, int)
76 #define HIDPCONNDEL _IOW('H', 201, int)
77 #define HIDPGETCONNLIST _IOR('H', 210, int)
78 #define HIDPGETCONNINFO _IOR('H', 211, int)
80 #define HIDP_VIRTUAL_CABLE_UNPLUG 0
81 #define HIDP_BOOT_PROTOCOL_MODE 1
82 #define HIDP_BLUETOOTH_VENDOR_ID 9
83 #define HIDP_WAITING_FOR_RETURN 10
84 #define HIDP_WAITING_FOR_SEND_ACK 11
178 static inline void hidp_schedule(
struct hidp_session *session)