2 * (C) Copyright 1997-2002 ELTEC Elektronik AG
3 * Frank Gottschling <fgottschling@eltec.de>
5 * SPDX-License-Identifier: GPL-2.0+
10 * Silicon Motion graphic interface for sm810/sm710/sm712 accelerator
13 * modification history
14 * --------------------
15 * 04-18-2002 Rewritten for U-Boot <fgottschling@eltec.de>.
21 #define CONSOLE_BG_COL 0x00
22 #define CONSOLE_FG_COL 0xa0
25 * Graphic Data Format (GDF) bits for VIDEO_DATA_FORMAT
27 #define GDF__8BIT_INDEX 0
28 #define GDF_15BIT_555RGB 1
29 #define GDF_16BIT_565RGB 2
30 #define GDF_32BIT_X888RGB 3
31 #define GDF_24BIT_888RGB 4
32 #define GDF__8BIT_332RGB 5
34 /******************************************************************************/
35 /* Export Graphic Driver Control */
36 /******************************************************************************/
44 unsigned int frameAdrs;
47 unsigned int gdfIndex;
48 unsigned int gdfBytesPP;
51 unsigned int plnSizeX;
52 unsigned int plnSizeY;
53 unsigned int winSizeX;
54 unsigned int winSizeY;
59 /******************************************************************************/
60 /* Export Graphic Functions */
61 /******************************************************************************/
63 void *video_hw_init (void); /* returns GraphicDevice struct or NULL */
65 #ifdef VIDEO_HW_BITBLT
66 void video_hw_bitblt (
67 unsigned int bpp, /* bytes per pixel */
68 unsigned int src_x, /* source pos x */
69 unsigned int src_y, /* source pos y */
70 unsigned int dst_x, /* dest pos x */
71 unsigned int dst_y, /* dest pos y */
72 unsigned int dim_x, /* frame width */
73 unsigned int dim_y /* frame height */
77 #ifdef VIDEO_HW_RECTFILL
78 void video_hw_rectfill (
79 unsigned int bpp, /* bytes per pixel */
80 unsigned int dst_x, /* dest pos x */
81 unsigned int dst_y, /* dest pos y */
82 unsigned int dim_x, /* frame width */
83 unsigned int dim_y, /* frame height */
84 unsigned int color /* fill color */
89 unsigned int index, /* color number */
90 unsigned char r, /* red */
91 unsigned char g, /* green */
92 unsigned char b /* blue */
94 #ifdef CONFIG_VIDEO_HW_CURSOR
95 void video_set_hw_cursor(int x, int y); /* x y in pixel */
96 void video_init_hw_cursor(int font_width, int font_height);
99 #endif /*_VIDEO_FB_H_ */