fbutil.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * GRUB -- GRand Unified Bootloader
  3. * Copyright (C) 2006,2007 Free Software Foundation, Inc.
  4. *
  5. * GRUB is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GRUB is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* NOTE: This header is private header for vbe driver and should not be used
  19. in other parts of the code. */
  20. #ifndef GRUB_VBEUTIL_MACHINE_HEADER
  21. #define GRUB_VBEUTIL_MACHINE_HEADER 1
  22. #include <grub/types.h>
  23. #include <grub/video.h>
  24. struct grub_video_fbblit_info
  25. {
  26. struct grub_video_mode_info *mode_info;
  27. grub_uint8_t *data;
  28. };
  29. grub_uint8_t *grub_video_fb_get_video_ptr (struct grub_video_fbblit_info *source,
  30. unsigned int x, unsigned int y);
  31. grub_video_color_t get_pixel (struct grub_video_fbblit_info *source,
  32. unsigned int x, unsigned int y);
  33. void set_pixel (struct grub_video_fbblit_info *source,
  34. unsigned int x, unsigned int y, grub_video_color_t color);
  35. #endif /* ! GRUB_VBEUTIL_MACHINE_HEADER */