Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
rts51x.h File Reference
#include <linux/usb.h>
#include <linux/usb_usual.h>
#include <linux/blkdev.h>
#include <linux/completion.h>
#include <linux/mutex.h>
#include <linux/cdrom.h>
#include <linux/kernel.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_devinfo.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>

Go to the source code of this file.

Data Structures

struct  rts51x_usb
 

Macros

#define DRIVER_VERSION   "v1.04"
 
#define RTS51X_DESC   "Realtek RTS5139/29 USB card reader driver"
 
#define RTS51X_NAME   "rts5139"
 
#define RTS51X_CTL_THREAD   "rts5139-control"
 
#define RTS51X_POLLING_THREAD   "rts5139-polling"
 
#define POLLING_IN_THREAD
 
#define SUPPORT_FILE_OP
 
#define wait_timeout_x(task_state, msecs)
 
#define wait_timeout(msecs)   wait_timeout_x(TASK_INTERRUPTIBLE, (msecs))
 
#define SCSI_LUN(srb)   ((srb)->device->lun)
 
#define RTS51X_IOBUF_SIZE   1024
 
#define FLIDX_URB_ACTIVE   0 /* current_urb is in use */
 
#define FLIDX_SG_ACTIVE   1 /* current_sg is in use */
 
#define FLIDX_ABORTING   2 /* abort is in progress */
 
#define FLIDX_DISCONNECTING   3 /* disconnect in progress */
 
#define FLIDX_RESETTING   4 /* device reset in progress */
 
#define FLIDX_TIMED_OUT   5 /* SCSI midlayer timed out */
 
#define SND_CTRL_PIPE(chip)   ((chip)->usb->send_ctrl_pipe)
 
#define RCV_CTRL_PIPE(chip)   ((chip)->usb->recv_ctrl_pipe)
 
#define SND_BULK_PIPE(chip)   ((chip)->usb->send_bulk_pipe)
 
#define RCV_BULK_PIPE(chip)   ((chip)->usb->recv_bulk_pipe)
 
#define RCV_INTR_PIPE(chip)   ((chip)->usb->recv_intr_pipe)
 
#define scsi_unlock(host)   spin_unlock_irq(host->host_lock)
 
#define scsi_lock(host)   spin_lock_irq(host->host_lock)
 
#define GET_PM_USAGE_CNT(chip)   atomic_read(&((chip)->usb->pusb_intf->pm_usage_cnt))
 
#define SET_PM_USAGE_CNT(chip, cnt)   atomic_set(&((chip)->usb->pusb_intf->pm_usage_cnt), (cnt))
 
#define rts51x_suspend   NULL
 
#define rts51x_resume   NULL
 
#define rts51x_reset_resume   NULL
 

Enumerations

enum  xfer_buf_dir {
  TO_XFER_BUF, FROM_XFER_BUF, TO_XFER_BUF, FROM_XFER_BUF,
  TO_XFER_BUF, FROM_XFER_BUF, TO_XFER_BUF, FROM_XFER_BUF
}
 

Variables

struct usb_driver rts51x_driver
 
struct scsi_host_template rts51x_host_template
 

Macro Definition Documentation

#define DRIVER_VERSION   "v1.04"

Definition at line 45 of file rts51x.h.

#define FLIDX_ABORTING   2 /* abort is in progress */

Definition at line 71 of file rts51x.h.

#define FLIDX_DISCONNECTING   3 /* disconnect in progress */

Definition at line 72 of file rts51x.h.

#define FLIDX_RESETTING   4 /* device reset in progress */

Definition at line 73 of file rts51x.h.

#define FLIDX_SG_ACTIVE   1 /* current_sg is in use */

Definition at line 70 of file rts51x.h.

#define FLIDX_TIMED_OUT   5 /* SCSI midlayer timed out */

Definition at line 74 of file rts51x.h.

#define FLIDX_URB_ACTIVE   0 /* current_urb is in use */

Definition at line 69 of file rts51x.h.

#define GET_PM_USAGE_CNT (   chip)    atomic_read(&((chip)->usb->pusb_intf->pm_usage_cnt))

Definition at line 148 of file rts51x.h.

#define POLLING_IN_THREAD

Definition at line 52 of file rts51x.h.

#define RCV_BULK_PIPE (   chip)    ((chip)->usb->recv_bulk_pipe)

Definition at line 140 of file rts51x.h.

#define RCV_CTRL_PIPE (   chip)    ((chip)->usb->recv_ctrl_pipe)

Definition at line 138 of file rts51x.h.

#define RCV_INTR_PIPE (   chip)    ((chip)->usb->recv_intr_pipe)

Definition at line 141 of file rts51x.h.

#define RTS51X_CTL_THREAD   "rts5139-control"

Definition at line 49 of file rts51x.h.

#define RTS51X_DESC   "Realtek RTS5139/29 USB card reader driver"

Definition at line 47 of file rts51x.h.

#define RTS51X_IOBUF_SIZE   1024

Definition at line 66 of file rts51x.h.

#define RTS51X_NAME   "rts5139"

Definition at line 48 of file rts51x.h.

#define RTS51X_POLLING_THREAD   "rts5139-polling"

Definition at line 50 of file rts51x.h.

#define rts51x_reset_resume   NULL

Definition at line 189 of file rts51x.h.

#define rts51x_resume   NULL

Definition at line 188 of file rts51x.h.

#define rts51x_suspend   NULL

Definition at line 187 of file rts51x.h.

#define scsi_lock (   host)    spin_lock_irq(host->host_lock)

Definition at line 146 of file rts51x.h.

#define SCSI_LUN (   srb)    ((srb)->device->lun)

Definition at line 63 of file rts51x.h.

#define scsi_unlock (   host)    spin_unlock_irq(host->host_lock)

Definition at line 145 of file rts51x.h.

#define SET_PM_USAGE_CNT (   chip,
  cnt 
)    atomic_set(&((chip)->usb->pusb_intf->pm_usage_cnt), (cnt))

Definition at line 150 of file rts51x.h.

#define SND_BULK_PIPE (   chip)    ((chip)->usb->send_bulk_pipe)

Definition at line 139 of file rts51x.h.

#define SND_CTRL_PIPE (   chip)    ((chip)->usb->send_ctrl_pipe)

Definition at line 137 of file rts51x.h.

#define SUPPORT_FILE_OP

Definition at line 53 of file rts51x.h.

#define wait_timeout (   msecs)    wait_timeout_x(TASK_INTERRUPTIBLE, (msecs))

Definition at line 61 of file rts51x.h.

#define wait_timeout_x (   task_state,
  msecs 
)
Value:
do { \
set_current_state((task_state)); \
schedule_timeout((msecs) * HZ / 1000); \
} while (0)

Definition at line 55 of file rts51x.h.

Enumeration Type Documentation

Enumerator:
TO_XFER_BUF 
FROM_XFER_BUF 
TO_XFER_BUF 
FROM_XFER_BUF 
TO_XFER_BUF 
FROM_XFER_BUF 
TO_XFER_BUF 
FROM_XFER_BUF 

Definition at line 178 of file rts51x.h.

Variable Documentation

struct usb_driver rts51x_driver

Definition at line 845 of file rts51x.c.

struct scsi_host_template rts51x_host_template

Definition at line 2099 of file rts51x_scsi.c.