blob: 0ff857bc9f5722bce1062e6744f16bbfdbbbe9b0 [file] [log] [blame]
wdenk167c5892001-11-03 22:21:15 +00001/*
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);
wdenk167c5892001-11-03 22:21:15 +000017
Stefan Reinauerf674f7c2012-09-28 15:11:11 +000018/**
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
Heiko Schocherb26354c2013-08-19 16:39:00 +020066#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
wdenk167c5892001-11-03 22:21:15 +000070#endif