~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/net/wireless/rt2x00/rt2x00usb.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
})
36
36
 
37
37
/*
38
 
 * This variable should be used with the
39
 
 * usb_driver structure initialization.
40
 
 */
41
 
#define USB_DEVICE_DATA(__ops)  .driver_info = (kernel_ulong_t)(__ops)
42
 
 
43
 
/*
44
38
 * For USB vendor requests we need to pass a timeout
45
39
 * time in ms, for this we use the REGISTER_TIMEOUT,
46
40
 * however when loading firmware a higher value is
345
339
                           const struct rt2x00_field32 field,
346
340
                           u32 *reg);
347
341
 
 
342
/**
 
343
 * rt2x00usb_register_read_async - Asynchronously read 32bit register word
 
344
 * @rt2x00dev: Device pointer, see &struct rt2x00_dev.
 
345
 * @offset: Register offset
 
346
 * @callback: Functon to call when read completes.
 
347
 *
 
348
 * Submit a control URB to read a 32bit register. This safe to
 
349
 * be called from atomic context.  The callback will be called
 
350
 * when the URB completes. Otherwise the function is similar
 
351
 * to rt2x00usb_register_read().
 
352
 * When the callback function returns false, the memory will be cleaned up,
 
353
 * when it returns true, the urb will be fired again.
 
354
 */
 
355
void rt2x00usb_register_read_async(struct rt2x00_dev *rt2x00dev,
 
356
                                   const unsigned int offset,
 
357
                                   bool (*callback)(struct rt2x00_dev*, int, u32));
 
358
 
348
359
/*
349
360
 * Radio handlers
350
361
 */
389
400
/**
390
401
 * rt2x00usb_flush_queue - Flush data queue
391
402
 * @queue: Data queue to stop
 
403
 * @drop: True to drop all pending frames.
392
404
 *
393
 
 * This will walk through all entries of the queue and kill all
394
 
 * URB's which were send to the device.
 
405
 * This will walk through all entries of the queue and will optionally
 
406
 * kill all URB's which were send to the device, or at least wait until
 
407
 * they have been returned from the device..
395
408
 */
396
 
void rt2x00usb_flush_queue(struct data_queue *queue);
 
409
void rt2x00usb_flush_queue(struct data_queue *queue, bool drop);
397
410
 
398
411
/**
399
412
 * rt2x00usb_watchdog - Watchdog for USB communication
416
429
 * USB driver handlers.
417
430
 */
418
431
int rt2x00usb_probe(struct usb_interface *usb_intf,
419
 
                    const struct usb_device_id *id);
 
432
                    const struct rt2x00_ops *ops);
420
433
void rt2x00usb_disconnect(struct usb_interface *usb_intf);
421
434
#ifdef CONFIG_PM
422
435
int rt2x00usb_suspend(struct usb_interface *usb_intf, pm_message_t state);