linux/drivers/media/platform/ti/omap/omap_voutdef.h

/*
 * omap_voutdef.h
 *
 * Copyright (C) 2010 Texas Instruments.
 *
 * This file is licensed under the terms of the GNU General Public License
 * version 2. This program is licensed "as is" without any warranty of any
 * kind, whether express or implied.
 */

#ifndef OMAP_VOUTDEF_H
#define OMAP_VOUTDEF_H

#include <media/videobuf2-dma-contig.h>
#include <media/v4l2-ctrls.h>
#include <video/omapfb_dss.h>
#include <video/omapvrfb.h>
#include <linux/dmaengine.h>

#define YUYV_BPP
#define RGB565_BPP
#define RGB24_BPP
#define RGB32_BPP
#define TILE_SIZE
#define YUYV_VRFB_BPP
#define RGB_VRFB_BPP
#define MAX_CID
#define MAC_VRFB_CTXS
#define MAX_VOUT_DEV
#define MAX_OVLS
#define MAX_DISPLAYS
#define MAX_MANAGERS

#define QQVGA_WIDTH
#define QQVGA_HEIGHT

/* Max Resolution supported by the driver */
#define VID_MAX_WIDTH
#define VID_MAX_HEIGHT

/* Minimum requirement is 2x2 for DSS */
#define VID_MIN_WIDTH
#define VID_MIN_HEIGHT

/* 2048 x 2048 is max res supported by OMAP display controller */
#define MAX_PIXELS_PER_LINE

#define VRFB_TX_TIMEOUT
#define VRFB_NUM_BUFS

/* Max buffer size tobe allocated during init */
#define OMAP_VOUT_MAX_BUF_SIZE

enum dma_channel_state {};

/* Enum for Rotation
 * DSS understands rotation in 0, 1, 2, 3 context
 * while V4L2 driver understands it as 0, 90, 180, 270
 */
enum dss_rotation {};

/* Enum for choosing rotation type for vout
 * DSS2 doesn't understand no rotation as an
 * option while V4L2 driver doesn't support
 * rotation in the case where VRFB is not built in
 * the kernel
 */
enum vout_rotaion_type {};

/*
 * This structure is used to store the DMA transfer parameters
 * for VRFB hidden buffer
 */
struct vid_vrfb_dma {};

struct omapvideo_info {};

struct omap2video_device {};

/* buffer for one video frame */
struct omap_vout_buffer {};

static inline struct omap_vout_buffer *vb2_to_omap_vout_buffer(struct vb2_buffer *vb)
{}

/* per-device data structure */
struct omap_vout_device {};

/*
 * Return true if rotation is 90 or 270
 */
static inline int is_rotation_90_or_270(const struct omap_vout_device *vout)
{}

/*
 * Return true if rotation is enabled
 */
static inline int is_rotation_enabled(const struct omap_vout_device *vout)
{}

/*
 * Reverse the rotation degree if mirroring is enabled
 */
static inline int calc_rotation(const struct omap_vout_device *vout)
{}

void omap_vout_free_buffers(struct omap_vout_device *vout);
#endif	/* ifndef OMAP_VOUTDEF_H */