Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
m5602_s5k4aa.h File Reference
#include <linux/dmi.h>
#include "m5602_sensor.h"

Go to the source code of this file.

Macros

#define S5K4AA_PAGE_MAP   0xec
 
#define S5K4AA_PAGE_MAP_0   0x00
 
#define S5K4AA_PAGE_MAP_1   0x01
 
#define S5K4AA_PAGE_MAP_2   0x02
 
#define S5K4AA_READ_MODE   0x03
 
#define S5K4AA_ROWSTART_HI   0x04
 
#define S5K4AA_ROWSTART_LO   0x05
 
#define S5K4AA_COLSTART_HI   0x06
 
#define S5K4AA_COLSTART_LO   0x07
 
#define S5K4AA_WINDOW_HEIGHT_HI   0x08
 
#define S5K4AA_WINDOW_HEIGHT_LO   0x09
 
#define S5K4AA_WINDOW_WIDTH_HI   0x0a
 
#define S5K4AA_WINDOW_WIDTH_LO   0x0b
 
#define S5K4AA_GLOBAL_GAIN__   0x0f
 
#define S5K4AA_H_BLANK_HI__   0x1d
 
#define S5K4AA_H_BLANK_LO__   0x1e
 
#define S5K4AA_EXPOSURE_HI   0x17
 
#define S5K4AA_EXPOSURE_LO   0x18
 
#define S5K4AA_BRIGHTNESS   0x1f /* (digital?) gain : 5 bits */
 
#define S5K4AA_GAIN   0x20 /* (analogue?) gain : 7 bits */
 
#define S5K4AA_NOISE_SUPP   0x37
 
#define S5K4AA_RM_ROW_SKIP_4X   0x08
 
#define S5K4AA_RM_ROW_SKIP_2X   0x04
 
#define S5K4AA_RM_COL_SKIP_4X   0x02
 
#define S5K4AA_RM_COL_SKIP_2X   0x01
 
#define S5K4AA_RM_H_FLIP   0x40
 
#define S5K4AA_RM_V_FLIP   0x80
 
#define S5K4AA_DEFAULT_GAIN   0x5f
 
#define S5K4AA_DEFAULT_BRIGHTNESS   0x10
 

Functions

int s5k4aa_probe (struct sd *sd)
 
int s5k4aa_init (struct sd *sd)
 
int s5k4aa_start (struct sd *sd)
 
void s5k4aa_disconnect (struct sd *sd)
 

Variables

int force_sensor
 
bool dump_sensor
 

Macro Definition Documentation

#define S5K4AA_BRIGHTNESS   0x1f /* (digital?) gain : 5 bits */

Definition at line 50 of file m5602_s5k4aa.h.

#define S5K4AA_COLSTART_HI   0x06

Definition at line 38 of file m5602_s5k4aa.h.

#define S5K4AA_COLSTART_LO   0x07

Definition at line 39 of file m5602_s5k4aa.h.

#define S5K4AA_DEFAULT_BRIGHTNESS   0x10

Definition at line 62 of file m5602_s5k4aa.h.

#define S5K4AA_DEFAULT_GAIN   0x5f

Definition at line 61 of file m5602_s5k4aa.h.

#define S5K4AA_EXPOSURE_HI   0x17

Definition at line 48 of file m5602_s5k4aa.h.

#define S5K4AA_EXPOSURE_LO   0x18

Definition at line 49 of file m5602_s5k4aa.h.

#define S5K4AA_GAIN   0x20 /* (analogue?) gain : 7 bits */

Definition at line 51 of file m5602_s5k4aa.h.

#define S5K4AA_GLOBAL_GAIN__   0x0f

Definition at line 44 of file m5602_s5k4aa.h.

#define S5K4AA_H_BLANK_HI__   0x1d

Definition at line 46 of file m5602_s5k4aa.h.

#define S5K4AA_H_BLANK_LO__   0x1e

Definition at line 47 of file m5602_s5k4aa.h.

#define S5K4AA_NOISE_SUPP   0x37

Definition at line 52 of file m5602_s5k4aa.h.

#define S5K4AA_PAGE_MAP   0xec

Definition at line 28 of file m5602_s5k4aa.h.

#define S5K4AA_PAGE_MAP_0   0x00

Definition at line 30 of file m5602_s5k4aa.h.

#define S5K4AA_PAGE_MAP_1   0x01

Definition at line 31 of file m5602_s5k4aa.h.

#define S5K4AA_PAGE_MAP_2   0x02

Definition at line 32 of file m5602_s5k4aa.h.

#define S5K4AA_READ_MODE   0x03

Definition at line 35 of file m5602_s5k4aa.h.

#define S5K4AA_RM_COL_SKIP_2X   0x01

Definition at line 57 of file m5602_s5k4aa.h.

#define S5K4AA_RM_COL_SKIP_4X   0x02

Definition at line 56 of file m5602_s5k4aa.h.

#define S5K4AA_RM_H_FLIP   0x40

Definition at line 58 of file m5602_s5k4aa.h.

#define S5K4AA_RM_ROW_SKIP_2X   0x04

Definition at line 55 of file m5602_s5k4aa.h.

#define S5K4AA_RM_ROW_SKIP_4X   0x08

Definition at line 54 of file m5602_s5k4aa.h.

#define S5K4AA_RM_V_FLIP   0x80

Definition at line 59 of file m5602_s5k4aa.h.

#define S5K4AA_ROWSTART_HI   0x04

Definition at line 36 of file m5602_s5k4aa.h.

#define S5K4AA_ROWSTART_LO   0x05

Definition at line 37 of file m5602_s5k4aa.h.

#define S5K4AA_WINDOW_HEIGHT_HI   0x08

Definition at line 40 of file m5602_s5k4aa.h.

#define S5K4AA_WINDOW_HEIGHT_LO   0x09

Definition at line 41 of file m5602_s5k4aa.h.

#define S5K4AA_WINDOW_WIDTH_HI   0x0a

Definition at line 42 of file m5602_s5k4aa.h.

#define S5K4AA_WINDOW_WIDTH_LO   0x0b

Definition at line 43 of file m5602_s5k4aa.h.

Function Documentation

void s5k4aa_disconnect ( struct sd sd)

Definition at line 678 of file m5602_s5k4aa.c.

int s5k4aa_init ( struct sd sd)

Definition at line 425 of file m5602_s5k4aa.c.

int s5k4aa_probe ( struct sd sd)

Definition at line 236 of file m5602_s5k4aa.c.

int s5k4aa_start ( struct sd sd)

Definition at line 317 of file m5602_s5k4aa.c.

Variable Documentation

bool dump_sensor

Definition at line 31 of file m5602_core.c.

int force_sensor

Definition at line 29 of file m5602_core.c.