intel.h 868 B

12345678910111213141516171819202122232425
  1. /* Intel Ironlake (Gen5) hardware cursor. */
  2. #ifndef INTEL_H
  3. #define INTEL_H
  4. /* Probe the Intel display engine and prepare a cursor image in the GTT.
  5. * Called from gpu_init() for the active VGA device. */
  6. void intel_init(unsigned int bus, unsigned int dev, unsigned int device_id);
  7. /* 1 when the hardware cursor is fully set up and usable. */
  8. int intel_available(void);
  9. struct cursor_image;
  10. /* Enable the cursor with its image's top-left at (x,y) (may be negative);
  11. * returns 0 on success and -1 when the cursor image/GTT was not prepared
  12. * (the caller then keeps the software cursor). */
  13. int intel_cursor_setup(int x, int y);
  14. /* Copy a cursor image into the 64x64 plane (top-left aligned). */
  15. void intel_cursor_load(const struct cursor_image *img);
  16. /* Move the hardware cursor: (x,y) is the image's top-left. */
  17. void intel_cursor_move(int x, int y);
  18. #endif