matroxfb.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __LINUX_MATROXFB_H__
  2. #define __LINUX_MATROXFB_H__
  3. #include <asm/ioctl.h>
  4. #include <linux/types.h>
  5. #include <linux/videodev2.h>
  6. #include <linux/fb.h>
  7. struct matroxioc_output_mode {
  8. __u32 output; /* which output */
  9. #define MATROXFB_OUTPUT_PRIMARY 0x0000
  10. #define MATROXFB_OUTPUT_SECONDARY 0x0001
  11. #define MATROXFB_OUTPUT_DFP 0x0002
  12. __u32 mode; /* which mode */
  13. #define MATROXFB_OUTPUT_MODE_PAL 0x0001
  14. #define MATROXFB_OUTPUT_MODE_NTSC 0x0002
  15. #define MATROXFB_OUTPUT_MODE_MONITOR 0x0080
  16. };
  17. #define MATROXFB_SET_OUTPUT_MODE _IOW('n',0xFA,size_t)
  18. #define MATROXFB_GET_OUTPUT_MODE _IOWR('n',0xFA,size_t)
  19. /* bitfield */
  20. #define MATROXFB_OUTPUT_CONN_PRIMARY (1 << MATROXFB_OUTPUT_PRIMARY)
  21. #define MATROXFB_OUTPUT_CONN_SECONDARY (1 << MATROXFB_OUTPUT_SECONDARY)
  22. #define MATROXFB_OUTPUT_CONN_DFP (1 << MATROXFB_OUTPUT_DFP)
  23. /* connect these outputs to this framebuffer */
  24. #define MATROXFB_SET_OUTPUT_CONNECTION _IOW('n',0xF8,size_t)
  25. /* which outputs are connected to this framebuffer */
  26. #define MATROXFB_GET_OUTPUT_CONNECTION _IOR('n',0xF8,size_t)
  27. /* which outputs are available for this framebuffer */
  28. #define MATROXFB_GET_AVAILABLE_OUTPUTS _IOR('n',0xF9,size_t)
  29. /* which outputs exist on this framebuffer */
  30. #define MATROXFB_GET_ALL_OUTPUTS _IOR('n',0xFB,size_t)
  31. enum matroxfb_ctrl_id {
  32. MATROXFB_CID_TESTOUT = V4L2_CID_PRIVATE_BASE,
  33. MATROXFB_CID_DEFLICKER,
  34. MATROXFB_CID_LAST
  35. };
  36. #endif