corebootscreen.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. typedef struct Cursor Cursor;
  10. typedef struct Cursorinfo Cursorinfo;
  11. typedef struct CorebootScreen CorebootScreen;
  12. typedef struct Corebootfb Corebootfb;
  13. typedef struct Settings Settings;
  14. extern Cursor arrow;
  15. extern Cursorinfo cursor;
  16. /* devmouse.c */
  17. extern void mousetrack(int, int, int, int);
  18. extern Point mousexy(void);
  19. extern void mouseaccelerate(int);
  20. extern void mouseresize(void);
  21. /* screen.c */
  22. extern u8 *attachscreen(Rectangle *, u32 *, int *, int *, int *);
  23. extern void flushmemscreen(Rectangle);
  24. extern int cursoron(int);
  25. extern void cursoroff(int);
  26. extern void setcursor(Cursor *);
  27. extern int screensize(int, int, int, u32);
  28. extern int screenaperture(int, int);
  29. extern Rectangle physgscreenr; /* actual monitor size */
  30. extern void blankscreen(int);
  31. extern void swcursorinit(void);
  32. extern void swcursorhide(void);
  33. extern void swcursoravoid(Rectangle);
  34. extern void swcursorunhide(void);
  35. /* devdraw.c */
  36. extern void deletescreenimage(void);
  37. extern void resetscreenimage(void);
  38. extern int drawhasclients(void);
  39. extern u32 blanktime;
  40. extern void setscreenimageclipr(Rectangle);
  41. extern void drawflush(void);
  42. extern int drawidletime(void);
  43. extern QLock drawlock;
  44. /* for communication between devdss.c and screen.c */
  45. enum {
  46. /* maxima */
  47. Wid = 1280,
  48. Ht = 1024,
  49. Depth = 24, /* bits per pixel */
  50. };
  51. struct CorebootScreen {
  52. Lock l;
  53. Cursor Cursor;
  54. u32 wid; /* width in pixels */
  55. u32 ht; /* height in pixels */
  56. int open;
  57. };
  58. struct Corebootfb { /* frame buffer for 24-bit active color */
  59. u8 *pixel;
  60. };