linux/drivers/video/fbdev/kyro/STG4000OverlayDevice.c

/*
 *  linux/drivers/video/kyro/STG4000OverlayDevice.c
 *
 *  Copyright (C) 2000 Imagination Technologies Ltd
 *  Copyright (C) 2002 STMicroelectronics
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file COPYING in the main directory of this archive
 * for more details.
 */

#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>

#include "STG4000Reg.h"
#include "STG4000Interface.h"

/* HW Defines */

#define STG4000_NO_SCALING
#define STG4000_NO_DECIMATION

/* Primary surface */
#define STG4000_PRIM_NUM_PIX
#define STG4000_PRIM_ALIGN
#define STG4000_PRIM_ADDR_BITS

#define STG4000_PRIM_MIN_WIDTH
#define STG4000_PRIM_MAX_WIDTH
#define STG4000_PRIM_MIN_HEIGHT
#define STG4000_PRIM_MAX_HEIGHT

/* Overlay surface */
#define STG4000_OVRL_NUM_PIX
#define STG4000_OVRL_ALIGN
#define STG4000_OVRL_ADDR_BITS
#define STG4000_OVRL_NUM_MODES

#define STG4000_OVRL_MIN_WIDTH
#define STG4000_OVRL_MAX_WIDTH
#define STG4000_OVRL_MIN_HEIGHT
#define STG4000_OVRL_MAX_HEIGHT

/* Decimation and Scaling */
static u32 adwDecim8[33] =;

OVRL_SRC_DEST;

static u32 ovlWidth, ovlHeight, ovlStride;
static int ovlLinear;

void ResetOverlayRegisters(volatile STG4000REG __iomem *pSTGReg)
{}

int CreateOverlaySurface(volatile STG4000REG __iomem *pSTGReg,
			 u32 inWidth,
			 u32 inHeight,
			 int bLinear,
			 u32 ulOverlayOffset,
			 u32 * retStride, u32 * retUVStride)
{}

int SetOverlayBlendMode(volatile STG4000REG __iomem *pSTGReg,
			OVRL_BLEND_MODE mode,
			u32 ulAlpha, u32 ulColorKey)
{}

void EnableOverlayPlane(volatile STG4000REG __iomem *pSTGReg)
{}

static u32 Overlap(u32 ulBits, u32 ulPattern)
{}

int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg,
		       u32 left, u32 top,
		       u32 right, u32 bottom)
{}