Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
smiapp.h File Reference
#include <linux/mutex.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-subdev.h>
#include <media/smiapp.h>
#include "smiapp-pll.h"
#include "smiapp-reg.h"
#include "smiapp-regs.h"
#include "smiapp-quirk.h"
#include "smiapp-limits.h"

Go to the source code of this file.

Data Structures

struct  smiapp_module_ident
 
struct  smiapp_module_info
 
struct  smiapp_reg_limits
 
struct  smiapp_csi_data_format
 
struct  smiapp_binning_subtype
 
struct  smiapp_subdev
 
struct  smiapp_sensor
 

Macros

#define SMIA_VERSION_1   10
 
#define SMIAPP_VERSION_0_8   8 /* Draft 0.8 */
 
#define SMIAPP_VERSION_0_9   9 /* Draft 0.9 */
 
#define SMIAPP_VERSION_1   10
 
#define SMIAPP_PROFILE_0   0
 
#define SMIAPP_PROFILE_1   1
 
#define SMIAPP_PROFILE_2   2
 
#define SMIAPP_NVM_PAGE_SIZE   64 /* bytes */
 
#define SMIAPP_RESET_DELAY_CLOCKS   2400
 
#define SMIAPP_RESET_DELAY(clk)
 
#define SMIAPP_MODULE_IDENT_FLAG_REV_LE   (1 << 0)
 
#define SMIAPP_IDENT_FQ(manufacturer, model, rev, fl, _name, _quirk)
 
#define SMIAPP_IDENT_LQ(manufacturer, model, rev, _name, _quirk)
 
#define SMIAPP_IDENT_L(manufacturer, model, rev, _name)
 
#define SMIAPP_IDENT_Q(manufacturer, model, rev, _name, _quirk)
 
#define SMIAPP_IDENT(manufacturer, model, rev, _name)
 
#define SMIAPP_SUBDEVS   3
 
#define SMIAPP_PA_PAD_SRC   0
 
#define SMIAPP_PAD_SINK   0
 
#define SMIAPP_PAD_SRC   1
 
#define SMIAPP_PADS   2
 
#define to_smiapp_subdev(_sd)   container_of(_sd, struct smiapp_subdev, sd)
 
#define to_smiapp_sensor(_sd)   (to_smiapp_subdev(_sd)->sensor)
 

Variables

struct smiapp_reg_limits smiapp_reg_limits []
 
struct smiapp_binning_subtype __packed
 

Macro Definition Documentation

#define SMIA_VERSION_1   10

Definition at line 41 of file smiapp.h.

#define SMIAPP_IDENT (   manufacturer,
  model,
  rev,
  _name 
)
Value:
{ .manufacturer_id = manufacturer, \
.model_id = model, \
.revision_number_major = rev, \
.flags = 0, \
.name = _name, }

Definition at line 129 of file smiapp.h.

#define SMIAPP_IDENT_FQ (   manufacturer,
  model,
  rev,
  fl,
  _name,
  _quirk 
)
Value:
{ .manufacturer_id = manufacturer, \
.model_id = model, \
.revision_number_major = rev, \
.flags = fl, \
.name = _name, \
.quirk = _quirk, }

Definition at line 98 of file smiapp.h.

#define SMIAPP_IDENT_L (   manufacturer,
  model,
  rev,
  _name 
)
Value:
{ .manufacturer_id = manufacturer, \
.model_id = model, \
.revision_number_major = rev, \
.name = _name, }

Definition at line 114 of file smiapp.h.

#define SMIAPP_IDENT_LQ (   manufacturer,
  model,
  rev,
  _name,
  _quirk 
)
Value:
{ .manufacturer_id = manufacturer, \
.model_id = model, \
.revision_number_major = rev, \
.name = _name, \
.quirk = _quirk, }

Definition at line 106 of file smiapp.h.

#define SMIAPP_IDENT_Q (   manufacturer,
  model,
  rev,
  _name,
  _quirk 
)
Value:
{ .manufacturer_id = manufacturer, \
.model_id = model, \
.revision_number_major = rev, \
.flags = 0, \
.name = _name, \
.quirk = _quirk, }

Definition at line 121 of file smiapp.h.

#define SMIAPP_MODULE_IDENT_FLAG_REV_LE   (1 << 0)

Definition at line 61 of file smiapp.h.

#define SMIAPP_NVM_PAGE_SIZE   64 /* bytes */

Definition at line 50 of file smiapp.h.

#define SMIAPP_PA_PAD_SRC   0

Definition at line 152 of file smiapp.h.

#define SMIAPP_PAD_SINK   0

Definition at line 153 of file smiapp.h.

#define SMIAPP_PAD_SRC   1

Definition at line 154 of file smiapp.h.

#define SMIAPP_PADS   2

Definition at line 155 of file smiapp.h.

#define SMIAPP_PROFILE_0   0

Definition at line 46 of file smiapp.h.

#define SMIAPP_PROFILE_1   1

Definition at line 47 of file smiapp.h.

#define SMIAPP_PROFILE_2   2

Definition at line 48 of file smiapp.h.

#define SMIAPP_RESET_DELAY (   clk)
Value:
(1000 + (SMIAPP_RESET_DELAY_CLOCKS * 1000 \
+ (clk) / 1000 - 1) / ((clk) / 1000))

Definition at line 53 of file smiapp.h.

#define SMIAPP_RESET_DELAY_CLOCKS   2400

Definition at line 52 of file smiapp.h.

#define SMIAPP_SUBDEVS   3

Definition at line 150 of file smiapp.h.

#define SMIAPP_VERSION_0_8   8 /* Draft 0.8 */

Definition at line 42 of file smiapp.h.

#define SMIAPP_VERSION_0_9   9 /* Draft 0.9 */

Definition at line 43 of file smiapp.h.

#define SMIAPP_VERSION_1   10

Definition at line 44 of file smiapp.h.

#define to_smiapp_sensor (   _sd)    (to_smiapp_subdev(_sd)->sensor)

Definition at line 249 of file smiapp.h.

#define to_smiapp_subdev (   _sd)    container_of(_sd, struct smiapp_subdev, sd)

Definition at line 246 of file smiapp.h.

Variable Documentation

Definition at line 27 of file smiapp-limits.c.