11bd4fe43Sopenharmony_ci/* 21bd4fe43Sopenharmony_ci* Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 31bd4fe43Sopenharmony_ci* Licensed under the Apache License, Version 2.0 (the "License"); 41bd4fe43Sopenharmony_ci* you may not use this file except in compliance with the License. 51bd4fe43Sopenharmony_ci* You may obtain a copy of the License at 61bd4fe43Sopenharmony_ci* 71bd4fe43Sopenharmony_ci* http://www.apache.org/licenses/LICENSE-2.0 81bd4fe43Sopenharmony_ci* 91bd4fe43Sopenharmony_ci* Unless required by applicable law or agreed to in writing, software 101bd4fe43Sopenharmony_ci* distributed under the License is distributed on an "AS IS" BASIS, 111bd4fe43Sopenharmony_ci* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 121bd4fe43Sopenharmony_ci* See the License for the specific language governing permissions and 131bd4fe43Sopenharmony_ci* limitations under the License. 141bd4fe43Sopenharmony_ci*/ 151bd4fe43Sopenharmony_ci 161bd4fe43Sopenharmony_ci#ifndef __HIFB_USERSPACE_H__ 171bd4fe43Sopenharmony_ci#define __HIFB_USERSPACE_H__ 181bd4fe43Sopenharmony_ci 191bd4fe43Sopenharmony_ci#define HIFB_GET_MEMBUF _IOR('F', 0x21, struct hifb_membuf_info) 201bd4fe43Sopenharmony_ci#define HIFB_REFRESH_FRAMEINFO _IOWR('F', 0x25, struct hifb_frame_info) 211bd4fe43Sopenharmony_ci 221bd4fe43Sopenharmony_ci#define HIFB_GET_FSCREENINFO _IOR('F', 0x22, struct fb_fix_screeninfo) 231bd4fe43Sopenharmony_ci#define HIFB_GET_VSCREENINFO _IOR('F', 0x23, struct fb_var_screeninfo) 241bd4fe43Sopenharmony_ci#define HIFB_PUT_VSCREENINFO _IOW('F', 0x24, struct fb_var_screeninfo) 251bd4fe43Sopenharmony_ci 261bd4fe43Sopenharmony_cistruct hifb_membuf_info { 271bd4fe43Sopenharmony_ci int fd; 281bd4fe43Sopenharmony_ci}; 291bd4fe43Sopenharmony_ci 301bd4fe43Sopenharmony_ci#ifndef __KERNEL__ 311bd4fe43Sopenharmony_ci#include "display_type.h" 321bd4fe43Sopenharmony_ci 331bd4fe43Sopenharmony_cistruct hifb_frame_info { 341bd4fe43Sopenharmony_ci IRect rect; 351bd4fe43Sopenharmony_ci unsigned int stride; 361bd4fe43Sopenharmony_ci unsigned long bufaddr; 371bd4fe43Sopenharmony_ci int format; 381bd4fe43Sopenharmony_ci int in_fence; 391bd4fe43Sopenharmony_ci int out_fence; 401bd4fe43Sopenharmony_ci}; 411bd4fe43Sopenharmony_ci#endif 421bd4fe43Sopenharmony_ci#endif 43