fbio.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef __LINUX_FBIO_H
  2. #define __LINUX_FBIO_H
  3. #include <uapi/asm/fbio.h>
  4. #define FBIOPUTCMAP_SPARC _IOW('F', 3, struct fbcmap)
  5. #define FBIOGETCMAP_SPARC _IOW('F', 4, struct fbcmap)
  6. /* Addresses on the fd of a cgsix that are mappable */
  7. #define CG6_FBC 0x70000000
  8. #define CG6_TEC 0x70001000
  9. #define CG6_BTREGS 0x70002000
  10. #define CG6_FHC 0x70004000
  11. #define CG6_THC 0x70005000
  12. #define CG6_ROM 0x70006000
  13. #define CG6_RAM 0x70016000
  14. #define CG6_DHC 0x80000000
  15. #define CG3_MMAP_OFFSET 0x4000000
  16. /* Addresses on the fd of a tcx that are mappable */
  17. #define TCX_RAM8BIT 0x00000000
  18. #define TCX_RAM24BIT 0x01000000
  19. #define TCX_UNK3 0x10000000
  20. #define TCX_UNK4 0x20000000
  21. #define TCX_CONTROLPLANE 0x28000000
  22. #define TCX_UNK6 0x30000000
  23. #define TCX_UNK7 0x38000000
  24. #define TCX_TEC 0x70000000
  25. #define TCX_BTREGS 0x70002000
  26. #define TCX_THC 0x70004000
  27. #define TCX_DHC 0x70008000
  28. #define TCX_ALT 0x7000a000
  29. #define TCX_SYNC 0x7000e000
  30. #define TCX_UNK2 0x70010000
  31. /* CG14 definitions */
  32. /* Offsets into the OBIO space: */
  33. #define CG14_REGS 0 /* registers */
  34. #define CG14_CURSORREGS 0x1000 /* cursor registers */
  35. #define CG14_DACREGS 0x2000 /* DAC registers */
  36. #define CG14_XLUT 0x3000 /* X Look Up Table -- ??? */
  37. #define CG14_CLUT1 0x4000 /* Color Look Up Table */
  38. #define CG14_CLUT2 0x5000 /* Color Look Up Table */
  39. #define CG14_CLUT3 0x6000 /* Color Look Up Table */
  40. #define CG14_AUTO 0xf000
  41. struct fbcmap32 {
  42. int index; /* first element (0 origin) */
  43. int count;
  44. u32 red;
  45. u32 green;
  46. u32 blue;
  47. };
  48. #define FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32)
  49. #define FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32)
  50. struct fbcursor32 {
  51. short set; /* what to set, choose from the list above */
  52. short enable; /* cursor on/off */
  53. struct fbcurpos pos; /* cursor position */
  54. struct fbcurpos hot; /* cursor hot spot */
  55. struct fbcmap32 cmap; /* color map info */
  56. struct fbcurpos size; /* cursor bit map size */
  57. u32 image; /* cursor image bits */
  58. u32 mask; /* cursor mask bits */
  59. };
  60. #define FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32)
  61. #define FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32)
  62. #endif /* __LINUX_FBIO_H */