#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>
#include "STG4000Reg.h"
#include "STG4000Interface.h"
#define STG4000_NO_SCALING …
#define STG4000_NO_DECIMATION …
#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 …
#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 …
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)
{ … }