Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mdc800.c File Reference
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/spinlock.h>
#include <linux/errno.h>
#include <linux/random.h>
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/wait.h>
#include <linux/mutex.h>
#include <linux/usb.h>
#include <linux/fs.h>

Go to the source code of this file.

Data Structures

struct  mdc800_data
 

Macros

#define DRIVER_VERSION   "v0.7.5 (30/10/2000)"
 
#define DRIVER_AUTHOR   "Henning Zabel <[email protected]>"
 
#define DRIVER_DESC   "USB Driver for Mustek MDC800 Digital Camera"
 
#define MDC800_VENDOR_ID   0x055f
 
#define MDC800_PRODUCT_ID   0xa800
 
#define TO_DOWNLOAD_GET_READY   1500
 
#define TO_DOWNLOAD_GET_BUSY   1500
 
#define TO_WRITE_GET_READY   1000
 
#define TO_DEFAULT_COMMAND   5000
 
#define TO_READ_FROM_IRQ   TO_DEFAULT_COMMAND
 
#define TO_GET_READY   TO_DEFAULT_COMMAND
 
#define MDC800_DEVICE_MINOR_BASE   32
 

Enumerations

enum  mdc800_state { NOT_CONNECTED, READY, WORKING, DOWNLOAD }
 

Functions

 MODULE_DEVICE_TABLE (usb, mdc800_table)
 
 module_init (usb_mdc800_init)
 
 module_exit (usb_mdc800_cleanup)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Henning Zabel <[email protected]>"

Definition at line 107 of file mdc800.c.

#define DRIVER_DESC   "USB Driver for Mustek MDC800 Digital Camera"

Definition at line 108 of file mdc800.c.

#define DRIVER_VERSION   "v0.7.5 (30/10/2000)"

Definition at line 106 of file mdc800.c.

#define MDC800_DEVICE_MINOR_BASE   32

Definition at line 123 of file mdc800.c.

#define MDC800_PRODUCT_ID   0xa800

Definition at line 112 of file mdc800.c.

#define MDC800_VENDOR_ID   0x055f

Definition at line 111 of file mdc800.c.

#define TO_DEFAULT_COMMAND   5000

Definition at line 118 of file mdc800.c.

#define TO_DOWNLOAD_GET_BUSY   1500

Definition at line 116 of file mdc800.c.

#define TO_DOWNLOAD_GET_READY   1500

Definition at line 115 of file mdc800.c.

#define TO_GET_READY   TO_DEFAULT_COMMAND

Definition at line 120 of file mdc800.c.

#define TO_READ_FROM_IRQ   TO_DEFAULT_COMMAND

Definition at line 119 of file mdc800.c.

#define TO_WRITE_GET_READY   1000

Definition at line 117 of file mdc800.c.

Enumeration Type Documentation

Enumerator:
NOT_CONNECTED 
READY 
WORKING 
DOWNLOAD 

Definition at line 131 of file mdc800.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
mdc800_table   
)
module_exit ( usb_mdc800_cleanup  )
module_init ( usb_mdc800_init  )
MODULE_LICENSE ( "GPL"  )