intel.h 680 B

12345678910111213141516171819
  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. /* Enable the cursor at (x,y); returns 0 on success and -1 when the cursor
  10. * image/GTT was not prepared (the caller then keeps the software cursor). */
  11. int intel_cursor_setup(unsigned int x, unsigned int y);
  12. /* Move the hardware cursor. */
  13. void intel_cursor_move(unsigned int x, unsigned int y);
  14. #endif