Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sq905.c File Reference
#include <linux/workqueue.h>
#include <linux/slab.h>
#include "gspca.h"

Go to the source code of this file.

Data Structures

struct  sd
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MODULE_NAME   "sq905"
 
#define SQ905_CMD_TIMEOUT   500
 
#define SQ905_DATA_TIMEOUT   1000
 
#define SQ905_MAX_TRANSFER   0x8000
 
#define FRAME_HEADER_LEN   64
 
#define SQ905_BULK_READ   0x03 /* precedes any bulk read */
 
#define SQ905_COMMAND   0x06 /* precedes the command codes below */
 
#define SQ905_PING   0x07 /* when reading an "idling" command */
 
#define SQ905_READ_DONE   0xc0 /* ack bulk read completed */
 
#define SQ905_HIRES_MASK   0x00000300
 
#define SQ905_ORIENTATION_MASK   0x00000100
 
#define SQ905_ID   0xf0 /* asks for model string */
 
#define SQ905_CONFIG   0x20 /* gets photo alloc. table, not used here */
 
#define SQ905_DATA   0x30 /* accesses photo data, not used here */
 
#define SQ905_CLEAR   0xa0 /* clear everything */
 
#define SQ905_CAPTURE_LOW   0x60 /* Starts capture at 160x120 */
 
#define SQ905_CAPTURE_MED   0x61 /* Starts capture at 320x240 */
 
#define SQ905_CAPTURE_HIGH   0x62 /* Starts capture at 640x480 (some cams only) */
 

Functions

 MODULE_AUTHOR ("Adam Baker <[email protected]>, ""Theodore Kilgore <[email protected]>")
 
 MODULE_DESCRIPTION ("GSPCA/SQ905 USB Camera Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 

Macro Definition Documentation

#define FRAME_HEADER_LEN   64

Definition at line 55 of file sq905.c.

#define MODULE_NAME   "sq905"

Definition at line 38 of file sq905.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 36 of file sq905.c.

#define SQ905_BULK_READ   0x03 /* precedes any bulk read */

Definition at line 61 of file sq905.c.

#define SQ905_CAPTURE_HIGH   0x62 /* Starts capture at 640x480 (some cams only) */

Definition at line 81 of file sq905.c.

#define SQ905_CAPTURE_LOW   0x60 /* Starts capture at 160x120 */

Definition at line 79 of file sq905.c.

#define SQ905_CAPTURE_MED   0x61 /* Starts capture at 320x240 */

Definition at line 80 of file sq905.c.

#define SQ905_CLEAR   0xa0 /* clear everything */

Definition at line 78 of file sq905.c.

#define SQ905_CMD_TIMEOUT   500

Definition at line 50 of file sq905.c.

#define SQ905_COMMAND   0x06 /* precedes the command codes below */

Definition at line 62 of file sq905.c.

#define SQ905_CONFIG   0x20 /* gets photo alloc. table, not used here */

Definition at line 76 of file sq905.c.

#define SQ905_DATA   0x30 /* accesses photo data, not used here */

Definition at line 77 of file sq905.c.

#define SQ905_DATA_TIMEOUT   1000

Definition at line 51 of file sq905.c.

#define SQ905_HIRES_MASK   0x00000300

Definition at line 70 of file sq905.c.

#define SQ905_ID   0xf0 /* asks for model string */

Definition at line 75 of file sq905.c.

#define SQ905_MAX_TRANSFER   0x8000

Definition at line 54 of file sq905.c.

#define SQ905_ORIENTATION_MASK   0x00000100

Definition at line 71 of file sq905.c.

#define SQ905_PING   0x07 /* when reading an "idling" command */

Definition at line 63 of file sq905.c.

#define SQ905_READ_DONE   0xc0 /* ack bulk read completed */

Definition at line 64 of file sq905.c.

Function Documentation

MODULE_AUTHOR ( "Adam Baker <[email protected] ,
""Theodore Kilgore< kilgota @auburn.edu >"   
)
MODULE_DESCRIPTION ( "GSPCA/SQ905 USB Camera Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( sd_driver  )