Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
coda.c File Reference
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <linux/of.h>
#include <mach/iram.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-mem2mem.h>
#include <media/videobuf2-core.h>
#include <media/videobuf2-dma-contig.h>
#include "coda.h"

Go to the source code of this file.

Data Structures

struct  coda_fmt
 
struct  coda_devtype
 
struct  coda_q_data
 
struct  coda_aux_buf
 
struct  coda_dev
 
struct  coda_params
 
struct  coda_ctx
 

Macros

#define CODA_NAME   "coda"
 
#define CODA_MAX_INSTANCES   4
 
#define CODA_FMO_BUF_SIZE   32
 
#define CODADX6_WORK_BUF_SIZE   (288 * 1024 + CODA_FMO_BUF_SIZE * 8 * 1024)
 
#define CODA7_WORK_BUF_SIZE   (512 * 1024 + CODA_FMO_BUF_SIZE * 8 * 1024)
 
#define CODA_PARA_BUF_SIZE   (10 * 1024)
 
#define CODA_ISRAM_SIZE   (2048 * 2)
 
#define CODA7_IRAM_SIZE   0x14000 /* 81920 bytes */
 
#define CODA_MAX_FRAMEBUFFERS   2
 
#define MAX_W   720
 
#define MAX_H   576
 
#define CODA_MAX_FRAME_SIZE   0x90000
 
#define FMO_SLICE_SAVE_BUF_SIZE   (32)
 
#define CODA_DEFAULT_GAMMA   4096
 
#define MIN_W   176
 
#define MIN_H   144
 
#define MAX_W   720
 
#define MAX_H   576
 
#define S_ALIGN   1 /* multiple of 2 */
 
#define W_ALIGN   1 /* multiple of 2 */
 
#define H_ALIGN   1 /* multiple of 2 */
 
#define fh_to_ctx(__fh)   container_of(__fh, struct coda_ctx, fh)
 

Enumerations

enum  { V4L2_M2M_SRC = 0, V4L2_M2M_DST = 1 }
 
enum  coda_fmt_type { CODA_FMT_ENC, CODA_FMT_RAW }
 
enum  coda_inst_type { CODA_INST_ENCODER, CODA_INST_DECODER }
 
enum  coda_product { CODA_DX6 = 0xf001, CODA_7541 = 0xf012 }
 
enum  coda_platform { CODA_IMX27, CODA_IMX53 }
 

Functions

 module_param (coda_debug, int, 0)
 
 MODULE_PARM_DESC (coda_debug,"Debug level (0-1)")
 
 MODULE_DEVICE_TABLE (platform, coda_platform_ids)
 
 module_platform_driver (coda_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Javier Martin <[email protected]>")
 
 MODULE_DESCRIPTION ("Coda multi-standard codec V4L2 driver")
 

Macro Definition Documentation

#define CODA7_IRAM_SIZE   0x14000 /* 81920 bytes */

Definition at line 46 of file coda.c.

#define CODA7_WORK_BUF_SIZE   (512 * 1024 + CODA_FMO_BUF_SIZE * 8 * 1024)

Definition at line 43 of file coda.c.

#define CODA_DEFAULT_GAMMA   4096

Definition at line 54 of file coda.c.

#define CODA_FMO_BUF_SIZE   32

Definition at line 41 of file coda.c.

#define CODA_ISRAM_SIZE   (2048 * 2)

Definition at line 45 of file coda.c.

#define CODA_MAX_FRAME_SIZE   0x90000

Definition at line 52 of file coda.c.

#define CODA_MAX_FRAMEBUFFERS   2

Definition at line 48 of file coda.c.

#define CODA_MAX_INSTANCES   4

Definition at line 39 of file coda.c.

#define CODA_NAME   "coda"

Definition at line 37 of file coda.c.

#define CODA_PARA_BUF_SIZE   (10 * 1024)

Definition at line 44 of file coda.c.

#define CODADX6_WORK_BUF_SIZE   (288 * 1024 + CODA_FMO_BUF_SIZE * 8 * 1024)

Definition at line 42 of file coda.c.

#define fh_to_ctx (   __fh)    container_of(__fh, struct coda_ctx, fh)

Definition at line 65 of file coda.c.

#define FMO_SLICE_SAVE_BUF_SIZE   (32)

Definition at line 53 of file coda.c.

#define H_ALIGN   1 /* multiple of 2 */

Definition at line 63 of file coda.c.

#define MAX_H   576

Definition at line 59 of file coda.c.

#define MAX_H   576

Definition at line 59 of file coda.c.

#define MAX_W   720

Definition at line 58 of file coda.c.

#define MAX_W   720

Definition at line 58 of file coda.c.

#define MIN_H   144

Definition at line 57 of file coda.c.

#define MIN_W   176

Definition at line 56 of file coda.c.

#define S_ALIGN   1 /* multiple of 2 */

Definition at line 61 of file coda.c.

#define W_ALIGN   1 /* multiple of 2 */

Definition at line 62 of file coda.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
V4L2_M2M_SRC 
V4L2_M2M_DST 

Definition at line 71 of file coda.c.

Enumerator:
CODA_FMT_ENC 
CODA_FMT_RAW 

Definition at line 76 of file coda.c.

Enumerator:
CODA_INST_ENCODER 
CODA_INST_DECODER 

Definition at line 81 of file coda.c.

Enumerator:
CODA_IMX27 
CODA_IMX53 

Definition at line 1858 of file coda.c.

Enumerator:
CODA_DX6 
CODA_7541 

Definition at line 86 of file coda.c.

Function Documentation

MODULE_AUTHOR ( "Javier Martin <[email protected]>"  )
MODULE_DESCRIPTION ( "Coda multi-standard codec V4L2 driver )
MODULE_DEVICE_TABLE ( platform  ,
coda_platform_ids   
)
MODULE_LICENSE ( "GPL"  )
module_param ( coda_debug  ,
int  ,
 
)
MODULE_PARM_DESC ( coda_debug  ,
"Debug level (0-1)"   
)
module_platform_driver ( coda_driver  )