• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 
16 #ifndef __HIFB_USERSPACE_H__
17 #define __HIFB_USERSPACE_H__
18 
19 #define HIFB_GET_MEMBUF _IOR('F', 0x21, struct hifb_membuf_info)
20 #define HIFB_REFRESH_FRAMEINFO _IOWR('F', 0x25, struct hifb_frame_info)
21 
22 #define HIFB_GET_FSCREENINFO _IOR('F', 0x22, struct fb_fix_screeninfo)
23 #define HIFB_GET_VSCREENINFO _IOR('F', 0x23, struct fb_var_screeninfo)
24 #define HIFB_PUT_VSCREENINFO _IOW('F', 0x24, struct fb_var_screeninfo)
25 
26 struct hifb_membuf_info {
27     int fd;
28 };
29 
30 #ifndef __KERNEL__
31 #include "display_type.h"
32 
33 struct hifb_frame_info {
34     IRect rect;
35     unsigned int stride;
36     unsigned long bufaddr;
37     int format;
38     int in_fence;
39     int out_fence;
40 };
41 #endif
42 #endif
43