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