vga.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. *
  3. * Copyright © 2000 Keith Packard
  4. *
  5. * Permission to use, copy, modify, distribute, and sell this software and its
  6. * documentation for any purpose is hereby granted without fee, provided that
  7. * the above copyright notice appear in all copies and that both that
  8. * copyright notice and this permission notice appear in supporting
  9. * documentation, and that the name of Keith Packard not be used in
  10. * advertising or publicity pertaining to distribution of the software without
  11. * specific, written prior permission. Keith Packard makes no
  12. * representations about the suitability of this software for any purpose. It
  13. * is provided "as is" without express or implied warranty.
  14. *
  15. * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  16. * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  17. * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  18. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  19. * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  20. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  21. * PERFORMANCE OF THIS SOFTWARE.
  22. */
  23. #ifndef _VGA_H_
  24. #define _VGA_H_
  25. int VgaGetNmode(Vm86InfoPtr vi);
  26. int VgaGetModes(Vm86InfoPtr vi, VesaModePtr mode, int nmode);
  27. int VgaSetMode(Vm86InfoPtr vi, int mode);
  28. int VgaGetMode(Vm86InfoPtr vi, int *mode);
  29. void VgaSetWritePlaneMask(Vm86InfoPtr vi, int mask);
  30. int VgaSetPalette(Vm86InfoPtr vi, int first, int number, U8 * entries);
  31. int VgaGetPalette(Vm86InfoPtr vi, int first, int number, U8 * entries);
  32. void *VgaSetWindow(Vm86InfoPtr vi, int vmode, int bytes, int mode, int *size);
  33. void *VgaMapFramebuffer(Vm86InfoPtr vi, int vmode, int *size, CARD32 * phys);
  34. void VgaUnmapFramebuffer(Vm86InfoPtr vi);
  35. #endif /* _VGA_H_ */