Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sq905c.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   "sq905c"
 
#define SQ905C_CMD_TIMEOUT   500
 
#define SQ905C_DATA_TIMEOUT   1000
 
#define SQ905C_MAX_TRANSFER   0x8000
 
#define FRAME_HEADER_LEN   0x50
 
#define SQ905C_CLEAR   0xa0 /* clear everything */
 
#define SQ905C_GET_ID   0x14f4 /* Read version number */
 
#define SQ905C_CAPTURE_LOW   0xa040 /* Starts capture at 160x120 */
 
#define SQ905C_CAPTURE_MED   0x1440 /* Starts capture at 320x240 */
 
#define SQ905C_CAPTURE_HI   0x2840 /* Starts capture at 320x240 */
 
#define SQ905C_CAPTURE_INDEX   0x110f
 

Functions

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

Macro Definition Documentation

#define FRAME_HEADER_LEN   0x50

Definition at line 49 of file sq905c.c.

#define MODULE_NAME   "sq905c"

Definition at line 32 of file sq905c.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 30 of file sq905c.c.

#define SQ905C_CAPTURE_HI   0x2840 /* Starts capture at 320x240 */

Definition at line 56 of file sq905c.c.

#define SQ905C_CAPTURE_INDEX   0x110f

Definition at line 59 of file sq905c.c.

#define SQ905C_CAPTURE_LOW   0xa040 /* Starts capture at 160x120 */

Definition at line 54 of file sq905c.c.

#define SQ905C_CAPTURE_MED   0x1440 /* Starts capture at 320x240 */

Definition at line 55 of file sq905c.c.

#define SQ905C_CLEAR   0xa0 /* clear everything */

Definition at line 52 of file sq905c.c.

#define SQ905C_CMD_TIMEOUT   500

Definition at line 43 of file sq905c.c.

#define SQ905C_DATA_TIMEOUT   1000

Definition at line 44 of file sq905c.c.

#define SQ905C_GET_ID   0x14f4 /* Read version number */

Definition at line 53 of file sq905c.c.

#define SQ905C_MAX_TRANSFER   0x8000

Definition at line 47 of file sq905c.c.

Function Documentation

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