wdenk | 167c589 | 2001-11-03 22:21:15 +0000 | [diff] [blame] | 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 | |
| 14 | int video_init (void *videobase); |
| 15 | void video_putc (const char c); |
| 16 | void video_puts (const char *s); |
wdenk | 167c589 | 2001-11-03 22:21:15 +0000 | [diff] [blame] | 17 | |
Stefan Reinauer | f674f7c | 2012-09-28 15:11:11 +0000 | [diff] [blame] | 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 | */ |
| 25 | int 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 | */ |
| 32 | int 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 | */ |
| 39 | int 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 | */ |
| 46 | int video_get_screen_rows(void); |
| 47 | |
| 48 | /** |
| 49 | * Get the number of text columns on the screen |
| 50 | * |
| 51 | * @return number of columns |
| 52 | */ |
| 53 | int 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 | */ |
| 61 | void video_position_cursor(unsigned col, unsigned row); |
| 62 | |
| 63 | /* Clear the display */ |
| 64 | void video_clear(void); |
| 65 | |
wdenk | 167c589 | 2001-11-03 22:21:15 +0000 | [diff] [blame] | 66 | #endif |