mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 14:14:37 +08:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
92 lines
2.7 KiB
C
92 lines
2.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 1997-2002 ELTEC Elektronik AG
|
|
* Frank Gottschling <fgottschling@eltec.de>
|
|
*/
|
|
|
|
/*
|
|
* smiLynxEM.h
|
|
* Silicon Motion graphic interface for sm810/sm710/sm712 accelerator
|
|
*
|
|
*
|
|
* modification history
|
|
* --------------------
|
|
* 04-18-2002 Rewritten for U-Boot <fgottschling@eltec.de>.
|
|
*/
|
|
|
|
#ifndef _VIDEO_FB_H_
|
|
#define _VIDEO_FB_H_
|
|
|
|
/*
|
|
* Graphic Data Format (GDF) bits for VIDEO_DATA_FORMAT
|
|
*/
|
|
#define GDF__8BIT_INDEX 0
|
|
#define GDF_15BIT_555RGB 1
|
|
#define GDF_16BIT_565RGB 2
|
|
#define GDF_32BIT_X888RGB 3
|
|
#define GDF_24BIT_888RGB 4
|
|
#define GDF__8BIT_332RGB 5
|
|
|
|
/******************************************************************************/
|
|
/* Export Graphic Driver Control */
|
|
/******************************************************************************/
|
|
|
|
typedef struct graphic_device {
|
|
unsigned int isaBase;
|
|
unsigned int pciBase;
|
|
unsigned int dprBase;
|
|
unsigned int vprBase;
|
|
unsigned int cprBase;
|
|
unsigned int frameAdrs;
|
|
unsigned int memSize;
|
|
unsigned int mode;
|
|
unsigned int gdfIndex;
|
|
unsigned int gdfBytesPP;
|
|
unsigned int fg;
|
|
unsigned int bg;
|
|
unsigned int plnSizeX;
|
|
unsigned int plnSizeY;
|
|
unsigned int winSizeX;
|
|
unsigned int winSizeY;
|
|
char modeIdent[80];
|
|
} GraphicDevice;
|
|
|
|
|
|
/******************************************************************************/
|
|
/* Export Graphic Functions */
|
|
/******************************************************************************/
|
|
|
|
void *video_hw_init (void); /* returns GraphicDevice struct or NULL */
|
|
|
|
#ifdef VIDEO_HW_BITBLT
|
|
void video_hw_bitblt (
|
|
unsigned int bpp, /* bytes per pixel */
|
|
unsigned int src_x, /* source pos x */
|
|
unsigned int src_y, /* source pos y */
|
|
unsigned int dst_x, /* dest pos x */
|
|
unsigned int dst_y, /* dest pos y */
|
|
unsigned int dim_x, /* frame width */
|
|
unsigned int dim_y /* frame height */
|
|
);
|
|
#endif
|
|
|
|
#ifdef VIDEO_HW_RECTFILL
|
|
void video_hw_rectfill (
|
|
unsigned int bpp, /* bytes per pixel */
|
|
unsigned int dst_x, /* dest pos x */
|
|
unsigned int dst_y, /* dest pos y */
|
|
unsigned int dim_x, /* frame width */
|
|
unsigned int dim_y, /* frame height */
|
|
unsigned int color /* fill color */
|
|
);
|
|
#endif
|
|
|
|
void video_set_lut (
|
|
unsigned int index, /* color number */
|
|
unsigned char r, /* red */
|
|
unsigned char g, /* green */
|
|
unsigned char b /* blue */
|
|
);
|
|
|
|
#endif /*_VIDEO_FB_H_ */
|