~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to net/bluetooth/hidp/hidp.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
#define HIDP_VIRTUAL_CABLE_UNPLUG       0
81
81
#define HIDP_BOOT_PROTOCOL_MODE         1
82
82
#define HIDP_BLUETOOTH_VENDOR_ID        9
 
83
#define HIDP_WAITING_FOR_RETURN         10
 
84
#define HIDP_WAITING_FOR_SEND_ACK       11
83
85
 
84
86
struct hidp_connadd_req {
85
 
        int   ctrl_sock;        // Connected control socket
86
 
        int   intr_sock;        // Connteted interrupt socket
 
87
        int   ctrl_sock;        /* Connected control socket */
 
88
        int   intr_sock;        /* Connected interrupt socket */
87
89
        __u16 parser;
88
90
        __u16 rd_size;
89
91
        __u8 __user *rd_data;
141
143
        uint intr_mtu;
142
144
 
143
145
        atomic_t terminate;
 
146
        struct task_struct *task;
144
147
 
145
148
        unsigned char keys[8];
146
149
        unsigned char leds;
154
157
        struct sk_buff_head ctrl_transmit;
155
158
        struct sk_buff_head intr_transmit;
156
159
 
 
160
        /* Used in hidp_get_raw_report() */
 
161
        int waiting_report_type; /* HIDP_DATA_RTYPE_* */
 
162
        int waiting_report_number; /* -1 for not numbered */
 
163
        struct mutex report_mutex;
 
164
        struct sk_buff *report_return;
 
165
        wait_queue_head_t report_queue;
 
166
 
 
167
        /* Used in hidp_output_raw_report() */
 
168
        int output_report_success; /* boolean */
 
169
 
157
170
        /* Report descriptor */
158
171
        __u8 *rd_data;
159
172
        uint rd_size;
 
173
 
 
174
        wait_queue_head_t startup_queue;
 
175
        int waiting_for_startup;
160
176
};
161
177
 
162
178
static inline void hidp_schedule(struct hidp_session *session)