api_display.c 591 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2011 The Chromium OS Authors.
  4. */
  5. #include <common.h>
  6. #include <api_public.h>
  7. #include <log.h>
  8. /* TODO(clchiou): add support of video device */
  9. int display_get_info(int type, struct display_info *di)
  10. {
  11. if (!di)
  12. return API_EINVAL;
  13. switch (type) {
  14. default:
  15. debug("%s: unsupport display device type: %d\n",
  16. __FILE__, type);
  17. return API_ENODEV;
  18. }
  19. di->type = type;
  20. return 0;
  21. }
  22. int display_draw_bitmap(ulong bitmap, int x, int y)
  23. {
  24. if (!bitmap)
  25. return API_EINVAL;
  26. return API_ENODEV;
  27. }
  28. void display_clear(void)
  29. {
  30. }