]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/video.h
mmc: remove the unnecessary define and fix the wrong bit control
[people/ms/u-boot.git] / include / video.h
CommitLineData
167c5898
WD
1/*
2** MPC823 Video Controller
3** =======================
4** (C) 2000 by Paolo Scaffardi (arsenio@tin.it)
5** AIRVENT SAM s.p.a - RIMINI(ITALY)
6**
7*/
8
9#ifndef _VIDEO_H_
10#define _VIDEO_H_
11
12/* Video functions */
13
14int video_init (void *videobase);
15void video_putc (const char c);
16void video_puts (const char *s);
167c5898 17
f674f7cf
SR
18/**
19 * Display a BMP format bitmap on the screen
20 *
21 * @param bmp_image Address of BMP image
22 * @param x X position to draw image
23 * @param y Y position to draw image
24 */
25int video_display_bitmap(ulong bmp_image, int x, int y);
26
27/**
28 * Get the width of the screen in pixels
29 *
30 * @return width of screen in pixels
31 */
32int video_get_pixel_width(void);
33
34/**
35 * Get the height of the screen in pixels
36 *
37 * @return height of screen in pixels
38 */
39int video_get_pixel_height(void);
40
41/**
42 * Get the number of text lines/rows on the screen
43 *
44 * @return number of rows
45 */
46int video_get_screen_rows(void);
47
48/**
49 * Get the number of text columns on the screen
50 *
51 * @return number of columns
52 */
53int video_get_screen_columns(void);
54
55/**
56 * Set the position of the text cursor
57 *
58 * @param col Column to place cursor (0 = left side)
59 * @param row Row to place cursor (0 = top line)
60 */
61void video_position_cursor(unsigned col, unsigned row);
62
63/* Clear the display */
64void video_clear(void);
65
b26354cf
HS
66#if defined(CONFIG_FORMIKE)
67int kwh043st20_f01_spi_startup(unsigned int bus, unsigned int cs,
68 unsigned int max_hz, unsigned int spi_mode);
69#endif
167c5898 70#endif