video.h 887 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef _VIDEO_H_
  9. #define _VIDEO_H_
  10. /* Video functions */
  11. int drv_video_init(void);
  12. int video_init (void *videobase);
  13. void video_putc (const char c);
  14. void video_puts (const char *s);
  15. void video_printf (const char *fmt, ...);
  16. //copy from mtk u-boot-1.1.6 /include/video.h
  17. void video_clean_screen(void);
  18. void video_clear_image_by_color(const unsigned int data,
  19. unsigned int xpos, unsigned int ypos, unsigned int width, unsigned int height);
  20. void video_set_cursor(int row, int col);
  21. int video_get_rows(void);
  22. int video_get_colums(void);
  23. void video_set_fg_color(unsigned char r, unsigned char g, unsigned char b);
  24. void video_set_bg_color(unsigned char r, unsigned char g, unsigned char b);
  25. void video_set_default_color(void);
  26. #endif