Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / stub / memory_gpio_access_library / client / src / el_mem.c
1 /*
2  * @copyright Copyright (c) 2019-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  * Information.
19  * This source code is a sample source code .
20  * Implementation of the function must be performed by the vendor.
21  */
22
23 #include "stub/el_mem.h"
24
25 off_t EL_mem_getOffset(int mem_id) {
26   /*
27    *  Note.
28    *  This feature needs to be implemented by the vendor.
29    */
30   return 0;
31 }
32
33 size_t EL_mem_getLength(int mem_id) {
34   /*
35    *  Note.
36    *  This feature needs to be implemented by the vendor.
37    */
38   return 1;
39 }
40
41 int dummy[1] = {0};     /* dummy area for mmap() */
42
43 void *EL_mem_exram_mmap(int type, off_t offset , size_t length , int prot, int flags , int cache_flag) {
44   /*
45    *  Note.
46    *  This feature needs to be implemented by the vendor.
47    */
48   return ((void *)dummy);
49 }
50
51 void *EL_mem_exram_mmap_simple(int mem_id , int prot, int flags , int cache_flag) {
52   /*
53    *  Note.
54    *  This feature needs to be implemented by the vendor.
55    */
56   return ((void *)dummy);
57 }
58
59 int EL_mem_exram_munmap(void *addr, size_t length) {
60   /*
61    *  Note.
62    *  This feature needs to be implemented by the vendor.
63    */
64   return 0;
65 }
66
67 u_int64_t EL_mem_getPhysicalAddress(int mem_id) {
68   /*
69    *  Note.
70    *  This feature needs to be implemented by the vendor.
71    */
72   return 0;
73 }