Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
go7007-fw.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/firmware.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include "go7007-priv.h"

Go to the source code of this file.

Data Structures

struct  code_gen
 

Macros

#define FLAG_MODE_MJPEG   (1)
 
#define FLAG_MODE_MPEG1   (1<<1)
 
#define FLAG_MODE_MPEG2   (1<<2)
 
#define FLAG_MODE_MPEG4   (1<<3)
 
#define FLAG_MODE_H263   (1<<4)
 
#define FLAG_MODE_ALL
 
#define FLAG_SPECIAL   (1<<8)
 
#define SPECIAL_FRM_HEAD   0
 
#define SPECIAL_BRC_CTRL   1
 
#define SPECIAL_CONFIG   2
 
#define SPECIAL_SEQHEAD   3
 
#define SPECIAL_AV_SYNC   4
 
#define SPECIAL_FINAL   5
 
#define SPECIAL_AUDIO   6
 
#define SPECIAL_MODET   7
 
#define CODE_GEN(name, dest)   struct code_gen name = { dest, 0, 32, 0 }
 
#define CODE_ADD(name, val, length)
 
#define CODE_LENGTH(name)   (name.len + (32 - name.b))
 

Enumerations

enum  mpeg_frame_type {
  PFRAME, BFRAME_PRE, BFRAME_POST, BFRAME_BIDIR,
  BFRAME_EMPTY
}
 

Functions

int go7007_construct_fw_image (struct go7007 *go, u8 **fw, int *fwlen)
 

Macro Definition Documentation

#define CODE_ADD (   name,
  val,
  length 
)
Value:
do { \
name.b -= (length); \
name.a |= (val) << name.b; \
while (name.b <= 24) { \
*name.p = name.a >> 24; \
++name.p; \
name.a <<= 8; \
name.b += 8; \
name.len += 8; \
} \
} while (0)

Definition at line 71 of file go7007-fw.c.

#define CODE_GEN (   name,
  dest 
)    struct code_gen name = { dest, 0, 32, 0 }

Definition at line 69 of file go7007-fw.c.

#define CODE_LENGTH (   name)    (name.len + (32 - name.b))

Definition at line 83 of file go7007-fw.c.

#define FLAG_MODE_ALL
Value:
FLAG_MODE_MPEG2 | FLAG_MODE_MPEG4 | \
FLAG_MODE_H263)

Definition at line 46 of file go7007-fw.c.

#define FLAG_MODE_H263   (1<<4)

Definition at line 45 of file go7007-fw.c.

#define FLAG_MODE_MJPEG   (1)

Definition at line 41 of file go7007-fw.c.

#define FLAG_MODE_MPEG1   (1<<1)

Definition at line 42 of file go7007-fw.c.

#define FLAG_MODE_MPEG2   (1<<2)

Definition at line 43 of file go7007-fw.c.

#define FLAG_MODE_MPEG4   (1<<3)

Definition at line 44 of file go7007-fw.c.

#define FLAG_SPECIAL   (1<<8)

Definition at line 49 of file go7007-fw.c.

#define SPECIAL_AUDIO   6

Definition at line 57 of file go7007-fw.c.

#define SPECIAL_AV_SYNC   4

Definition at line 55 of file go7007-fw.c.

#define SPECIAL_BRC_CTRL   1

Definition at line 52 of file go7007-fw.c.

#define SPECIAL_CONFIG   2

Definition at line 53 of file go7007-fw.c.

#define SPECIAL_FINAL   5

Definition at line 56 of file go7007-fw.c.

#define SPECIAL_FRM_HEAD   0

Definition at line 51 of file go7007-fw.c.

#define SPECIAL_MODET   7

Definition at line 58 of file go7007-fw.c.

#define SPECIAL_SEQHEAD   3

Definition at line 54 of file go7007-fw.c.

Enumeration Type Documentation

Enumerator:
PFRAME 
BFRAME_PRE 
BFRAME_POST 
BFRAME_BIDIR 
BFRAME_EMPTY 

Definition at line 171 of file go7007-fw.c.

Function Documentation

int go7007_construct_fw_image ( struct go7007 go,
u8 **  fw,
int fwlen 
)

Definition at line 1554 of file go7007-fw.c.