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 __HI_OSAL_USER__ 17 #define __HI_OSAL_USER__ 18 19 #ifndef PROT_READ 20 #define PROT_READ 21 #endif 22 #ifndef PROT_WRITE 23 #define PROT_WRITE 24 #endif 25 #ifndef MAP_SHARED 26 #define MAP_SHARED 27 #endif 28 #ifndef MAP_FAILED 29 #define MAP_FAILED (NULL) 30 #endif 31 32 #endif 33