2 * @copyright Copyright (c) 2019-2020 TOYOTA MOTOR CORPORATION.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * This source code is a sample source code .
20 * Implementation of the function must be performed by the vendor.
23 #include "stub/el_mem.h"
25 off_t EL_mem_getOffset(int mem_id) {
28 * This feature needs to be implemented by the vendor.
33 size_t EL_mem_getLength(int mem_id) {
36 * This feature needs to be implemented by the vendor.
41 int dummy[1] = {0}; /* dummy area for mmap() */
43 void *EL_mem_exram_mmap(int type, off_t offset , size_t length , int prot, int flags , int cache_flag) {
46 * This feature needs to be implemented by the vendor.
48 return ((void *)dummy);
51 void *EL_mem_exram_mmap_simple(int mem_id , int prot, int flags , int cache_flag) {
54 * This feature needs to be implemented by the vendor.
56 return ((void *)dummy);
59 int EL_mem_exram_munmap(void *addr, size_t length) {
62 * This feature needs to be implemented by the vendor.
67 u_int64_t EL_mem_getPhysicalAddress(int mem_id) {
70 * This feature needs to be implemented by the vendor.