Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:43

0001 /**
0002  * @file
0003  * @ingroup lm32_milkymist_video RTEMSBSPsLM32SharedMilkymistOne
0004  * @brief Milkymist video input driver
0005  */
0006 
0007 /*  milkymist_video.h
0008  *
0009  *  Milkymist video input driver for RTEMS
0010  *
0011  *  The license and distribution terms for this file may be
0012  *  found in the file LICENSE in this distribution or at
0013  *  http://www.rtems.org/license/LICENSE.
0014  *
0015  *  COPYRIGHT (c) 2010, 2011 Sebastien Bourdeauducq
0016  */
0017 
0018 /**
0019  * @defgroup lm32_milkymist_video Milkymist Video
0020  * @ingroup RTEMSBSPsLM32SharedMilkymistOne
0021  * @brief Milkymist video input driver
0022  * @{
0023  */
0024 
0025 #ifndef __MILKYMIST_VIDEO_H_
0026 #define __MILKYMIST_VIDEO_H_
0027 
0028 #ifdef __cplusplus
0029 extern "C" {
0030 #endif
0031 
0032 /* Ioctls */
0033 #define VIDEO_BUFFER_LOCK      0x5600
0034 #define VIDEO_BUFFER_UNLOCK    0x5601
0035 
0036 #define VIDEO_SET_BRIGHTNESS   0x5602
0037 #define VIDEO_GET_BRIGHTNESS   0x5603
0038 #define VIDEO_SET_CONTRAST     0x5604
0039 #define VIDEO_GET_CONTRAST     0x5605
0040 #define VIDEO_SET_HUE          0x5606
0041 #define VIDEO_GET_HUE          0x5607
0042 #define VIDEO_GET_SIGNAL       0x5608
0043 
0044 #define VIDEO_SET_REGISTER     0x5609
0045 #define VIDEO_GET_REGISTER     0x560a
0046 
0047 #define VIDEO_SET_FORMAT       0x560b
0048 
0049 enum {
0050   VIDEO_FORMAT_CVBS6 = 0,
0051   VIDEO_FORMAT_CVBS5,
0052   VIDEO_FORMAT_CVBS4,
0053   VIDEO_FORMAT_SVIDEO,
0054   VIDEO_FORMAT_COMPONENT,
0055 };
0056 
0057 rtems_device_driver video_initialize(
0058   rtems_device_major_number major,
0059   rtems_device_minor_number minor,
0060   void *arg
0061 );
0062 
0063 rtems_device_driver video_open(
0064   rtems_device_major_number major,
0065   rtems_device_minor_number minor,
0066   void *arg
0067 );
0068 
0069 rtems_device_driver video_close(
0070   rtems_device_major_number major,
0071   rtems_device_minor_number minor,
0072   void *arg
0073 );
0074 
0075 rtems_device_driver video_control(
0076   rtems_device_major_number major,
0077   rtems_device_minor_number minor,
0078   void *arg
0079 );
0080 
0081 #define VIDEO_DRIVER_TABLE_ENTRY {video_initialize, \
0082 video_open, video_close, NULL, NULL, video_control}
0083 
0084 /** @} */
0085 
0086 #ifdef __cplusplus
0087 }
0088 #endif
0089 
0090 #endif /* __MILKYMIST_VIDEO_H_ */