Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
zoran.h File Reference
#include <media/v4l2-device.h>
#include "zr36057.h"

Go to the source code of this file.

Data Structures

struct  zoran_sync
 
struct  zoran_format
 
struct  zoran_overlay_settings
 
struct  zoran_v4l_settings
 
struct  zoran_jpg_settings
 
struct  zoran_mapping
 
struct  zoran_buffer
 
struct  zoran_buffer_col
 
struct  zoran_fh
 
struct  card_info
 
struct  card_info::input
 
struct  zoran
 

Macros

#define ZORAN_NAME   "ZORAN" /* name of the device */
 
#define ZR_DEVNAME(zr)   ((zr)->name)
 
#define BUZ_MAX_WIDTH   (zr->timing->Wa)
 
#define BUZ_MAX_HEIGHT   (zr->timing->Ha)
 
#define BUZ_MIN_WIDTH   32 /* never display less than 32 pixels */
 
#define BUZ_MIN_HEIGHT   24 /* never display less than 24 rows */
 
#define BUZ_NUM_STAT_COM   4
 
#define BUZ_MASK_STAT_COM   3
 
#define BUZ_MAX_FRAME   256 /* Must be a power of 2 */
 
#define BUZ_MASK_FRAME   255 /* Must be BUZ_MAX_FRAME-1 */
 
#define BUZ_MAX_INPUT   16
 
#define V4L_MAX_FRAME   32
 
#define V4L_MASK_FRAME   (V4L_MAX_FRAME - 1)
 
#define MAX_FRAME   (BUZ_MAX_FRAME > VIDEO_MAX_FRAME ? BUZ_MAX_FRAME : VIDEO_MAX_FRAME)
 
#define ZORAN_MAP_MODE_JPG   ZORAN_MAP_MODE_JPG_REC
 
#define ZORAN_FORMAT_COMPRESSED   1<<0
 
#define ZORAN_FORMAT_OVERLAY   1<<1
 
#define ZORAN_FORMAT_CAPTURE   1<<2
 
#define ZORAN_FORMAT_PLAYBACK   1<<3
 
#define NO_GRAB_ACTIVE   (-1)
 
#define btwrite(dat, adr)   writel((dat), zr->zr36057_mem+(adr))
 
#define btread(adr)   readl(zr->zr36057_mem+(adr))
 
#define btand(dat, adr)   btwrite((dat) & btread(adr), adr)
 
#define btor(dat, adr)   btwrite((dat) | btread(adr), adr)
 
#define btaor(dat, mask, adr)   btwrite((dat) | ((mask) & btread(adr)), adr)
 

Enumerations

enum  card_type {
  UNKNOWN = -1, DC10_old, DC10_new, DC10plus,
  DC30, DC30plus, LML33, LML33R10,
  BUZ, AVS6EYES, NUM_CARDS, F32_2 = 2048,
  F32_8 = 8192, CMI8330, CMI8329, MEDIA_FX,
  SSCAPE, SSCAPE_PNP, SSCAPE_VIVO
}
 
enum  zoran_codec_mode {
  BUZ_MODE_IDLE, BUZ_MODE_MOTION_COMPRESS, BUZ_MODE_MOTION_DECOMPRESS, BUZ_MODE_STILL_COMPRESS,
  BUZ_MODE_STILL_DECOMPRESS
}
 
enum  zoran_buffer_state { BUZ_STATE_USER, BUZ_STATE_PEND, BUZ_STATE_DMA, BUZ_STATE_DONE }
 
enum  zoran_map_mode { ZORAN_MAP_MODE_RAW, ZORAN_MAP_MODE_JPG_REC, ZORAN_MAP_MODE_JPG_PLAY }
 
enum  gpio_type {
  ZR_GPIO_JPEG_SLEEP = 0, ZR_GPIO_JPEG_RESET, ZR_GPIO_JPEG_FRAME, ZR_GPIO_VID_DIR,
  ZR_GPIO_VID_EN, ZR_GPIO_VID_RESET, ZR_GPIO_CLK_SEL1, ZR_GPIO_CLK_SEL2,
  ZR_GPIO_MAX
}
 
enum  gpcs_type { GPCS_JPEG_RESET = 0, GPCS_JPEG_START, GPCS_MAX }
 
enum  zoran_lock_activity { ZORAN_FREE, ZORAN_ACTIVE, ZORAN_LOCKED }
 

Macro Definition Documentation

#define btand (   dat,
  adr 
)    btwrite((dat) & btread(adr), adr)

Definition at line 399 of file zoran.h.

#define btaor (   dat,
  mask,
  adr 
)    btwrite((dat) | ((mask) & btread(adr)), adr)

Definition at line 401 of file zoran.h.

#define btor (   dat,
  adr 
)    btwrite((dat) | btread(adr), adr)

Definition at line 400 of file zoran.h.

#define btread (   adr)    readl(zr->zr36057_mem+(adr))

Definition at line 397 of file zoran.h.

#define btwrite (   dat,
  adr 
)    writel((dat), zr->zr36057_mem+(adr))

Definition at line 396 of file zoran.h.

#define BUZ_MASK_FRAME   255 /* Must be BUZ_MAX_FRAME-1 */

Definition at line 57 of file zoran.h.

#define BUZ_MASK_STAT_COM   3

Definition at line 54 of file zoran.h.

#define BUZ_MAX_FRAME   256 /* Must be a power of 2 */

Definition at line 56 of file zoran.h.

#define BUZ_MAX_HEIGHT   (zr->timing->Ha)

Definition at line 49 of file zoran.h.

#define BUZ_MAX_INPUT   16

Definition at line 59 of file zoran.h.

#define BUZ_MAX_WIDTH   (zr->timing->Wa)

Definition at line 48 of file zoran.h.

#define BUZ_MIN_HEIGHT   24 /* never display less than 24 rows */

Definition at line 51 of file zoran.h.

#define BUZ_MIN_WIDTH   32 /* never display less than 32 pixels */

Definition at line 50 of file zoran.h.

#define BUZ_NUM_STAT_COM   4

Definition at line 53 of file zoran.h.

Definition at line 70 of file zoran.h.

#define NO_GRAB_ACTIVE   (-1)

Definition at line 319 of file zoran.h.

#define V4L_MASK_FRAME   (V4L_MAX_FRAME - 1)

Definition at line 68 of file zoran.h.

#define V4L_MAX_FRAME   32

Definition at line 62 of file zoran.h.

#define ZORAN_FORMAT_CAPTURE   1<<2

Definition at line 149 of file zoran.h.

#define ZORAN_FORMAT_COMPRESSED   1<<0

Definition at line 147 of file zoran.h.

#define ZORAN_FORMAT_OVERLAY   1<<1

Definition at line 148 of file zoran.h.

#define ZORAN_FORMAT_PLAYBACK   1<<3

Definition at line 150 of file zoran.h.

#define ZORAN_MAP_MODE_JPG   ZORAN_MAP_MODE_JPG_REC

Definition at line 116 of file zoran.h.

#define ZORAN_NAME   "ZORAN" /* name of the device */

Definition at line 44 of file zoran.h.

#define ZR_DEVNAME (   zr)    ((zr)->name)

Definition at line 46 of file zoran.h.

Enumeration Type Documentation

enum u8 card_type
Enumerator:
UNKNOWN 
DC10_old 
DC10_new 
DC10plus 
DC30 
DC30plus 
LML33 
LML33R10 
BUZ 
AVS6EYES 
NUM_CARDS 
F32_2 
F32_8 
CMI8330 
CMI8329 
MEDIA_FX 
SSCAPE 
SSCAPE_PNP 
SSCAPE_VIVO 

Definition at line 74 of file zoran.h.

enum gpcs_type
Enumerator:
GPCS_JPEG_RESET 
GPCS_JPEG_START 
GPCS_MAX 

Definition at line 132 of file zoran.h.

enum gpio_type
Enumerator:
ZR_GPIO_JPEG_SLEEP 
ZR_GPIO_JPEG_RESET 
ZR_GPIO_JPEG_FRAME 
ZR_GPIO_VID_DIR 
ZR_GPIO_VID_EN 
ZR_GPIO_VID_RESET 
ZR_GPIO_CLK_SEL1 
ZR_GPIO_CLK_SEL2 
ZR_GPIO_MAX 

Definition at line 120 of file zoran.h.

Enumerator:
BUZ_STATE_USER 
BUZ_STATE_PEND 
BUZ_STATE_DMA 
BUZ_STATE_DONE 

Definition at line 106 of file zoran.h.

Enumerator:
BUZ_MODE_IDLE 
BUZ_MODE_MOTION_COMPRESS 
BUZ_MODE_MOTION_DECOMPRESS 
BUZ_MODE_STILL_COMPRESS 
BUZ_MODE_STILL_DECOMPRESS 

Definition at line 98 of file zoran.h.

Enumerator:
ZORAN_FREE 
ZORAN_ACTIVE 
ZORAN_LOCKED 

Definition at line 199 of file zoran.h.

Enumerator:
ZORAN_MAP_MODE_RAW 
ZORAN_MAP_MODE_JPG_REC 
ZORAN_MAP_MODE_JPG_PLAY 

Definition at line 113 of file zoran.h.