• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * drivers/amlogic/media/video_processor/videosync/videosync.h
3  *
4  * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16  */
17 
18 #ifndef _VIDEOSYNC_H
19 #define _VIDEOSYNC_H
20 
21 #define VIDEOSYNC_IOC_MAGIC  'P'
22 #define VIDEOSYNC_IOC_ALLOC_ID   _IOR(VIDEOSYNC_IOC_MAGIC, 0x00, int)
23 #define VIDEOSYNC_IOC_FREE_ID    _IOW(VIDEOSYNC_IOC_MAGIC, 0x01, int)
24 #define VIDEOSYNC_IOC_SET_FREERUN_MODE    _IOW(VIDEOSYNC_IOC_MAGIC, 0x02, int)
25 #define VIDEOSYNC_IOC_GET_FREERUN_MODE    _IOR(VIDEOSYNC_IOC_MAGIC, 0x03, int)
26 #define VIDEOSYNC_IOC_SET_OMX_VPTS _IOW(VIDEOSYNC_IOC_MAGIC, 0x04, unsigned int)
27 #define VIDEOSYNC_IOC_GET_OMX_VPTS _IOR(VIDEOSYNC_IOC_MAGIC, 0x05, unsigned int)
28 #define VIDEOSYNC_IOC_GET_OMX_VERSION \
29     _IOR(VIDEOSYNC_IOC_MAGIC, 0x06, unsigned int)
30 #define VIDEOSYNC_IOC_SET_OMX_ZORDER \
31     _IOW(VIDEOSYNC_IOC_MAGIC, 0x07, unsigned int)
32 #define VIDEOSYNC_IOC_SET_FIRST_FRAME_NOSYNC \
33     _IOR(VIDEOSYNC_IOC_MAGIC, 0x08, unsigned int)
34 #define VIDEOSYNC_IOC_SET_VPAUSE \
35     _IOW(VIDEOSYNC_IOC_MAGIC, 0x09, unsigned int)
36 #define VIDEOSYNC_IOC_SET_VMASTER \
37     _IOW(VIDEOSYNC_IOC_MAGIC, 0x0a, unsigned int)
38 #define VIDEOSYNC_IOC_GET_VPTS \
39     _IOR(VIDEOSYNC_IOC_MAGIC, 0x0b, unsigned int)
40 #define VIDEOSYNC_IOC_GET_PCRSCR \
41     _IOR(VIDEOSYNC_IOC_MAGIC, 0x0c, unsigned int)
42 
43 #endif
44 
45