From a3f32b3224409c5f702597f2903f329ef51aa42f Mon Sep 17 00:00:00 2001 From: Riku Nomoto Date: Fri, 11 Dec 2020 18:12:31 +0900 Subject: Arranged kernel module directory Signed-off-by: Riku Nomoto Change-Id: I43d8e66ad0bcf5f7d681812db0c93141ecd526ac --- agl-basefiles/agldd/agldd.h | 94 +++++++++++++++++++++++++++++++++++++++++ agl-basefiles/agldd/ev_common.h | 0 agl-basefiles/agldd/ev_id.h | 0 agl-basefiles/agldd/evk_lib.h | 2 +- agl-basefiles/agldd/moduleid.h | 0 5 files changed, 95 insertions(+), 1 deletion(-) create mode 100755 agl-basefiles/agldd/agldd.h mode change 100644 => 100755 agl-basefiles/agldd/ev_common.h mode change 100644 => 100755 agl-basefiles/agldd/ev_id.h mode change 100644 => 100755 agl-basefiles/agldd/evk_lib.h mode change 100644 => 100755 agl-basefiles/agldd/moduleid.h (limited to 'agl-basefiles') diff --git a/agl-basefiles/agldd/agldd.h b/agl-basefiles/agldd/agldd.h new file mode 100755 index 0000000..112dbae --- /dev/null +++ b/agl-basefiles/agldd/agldd.h @@ -0,0 +1,94 @@ +/* + * adcpf common header + * + * @copyright Copyright (c) 2016-2019 TOYOTA MOTOR CORPORATION. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _AGLDD_H_ +#define _AGLDD_H_ +#ifdef __KERNEL__ +#include +#else +#include +#if !defined(__cplusplus) +#include +#endif /* !defined(__cplusplus) */ +#endif /* __KERNEL__ */ + +#ifndef __KERNEL__ +#define __LINUX_ARM_ARCH__ 7 +#define BITS_PER_LONG 32 + +#define __AGLDD_TYPEDEF_I64 +typedef long long i64; /* 8-byte signed integer */ + +#define __AGLDD_TYPEDEF_U64 +typedef unsigned long long u64; /* 8-byte unsigned integer */ + +#define __AGLDD_TYPEDEF_U32 +typedef unsigned long u32; /* 4-byte unsigned integer */ + +#define __AGLDD_TYPEDEF_U16 +typedef unsigned short u16; /* 2-byte unsigned integer */ + +#define __AGLDD_TYPEDEF_I16 +typedef short i16; /* 2-byte signed integer */ + +#define __AGLDD_TYPEDEF_U8 +typedef unsigned char u8; /* 1-byte unsigned integer */ + +#define __AGLDD_TYPEDEF_I8 +typedef char i8; /* 1-byte signed integer */ +#endif + +#define __AGLDD_TYPEDEF_INT8 +typedef signed char INT8; + +#define __AGLDD_TYPEDEF_INT16 +typedef signed short INT16; + +#define __AGLDD_TYPEDEF_INT32 +typedef signed int INT32; + +#define __AGLDD_TYPEDEF_INT64 +typedef signed long long INT64; + +#define __AGLDD_TYPEDEF_UINT8 +typedef unsigned char UINT8; + +#define __AGLDD_TYPEDEF_UINT16 +typedef unsigned short UINT16; + +#define __AGLDD_TYPEDEF_UINT32 +typedef unsigned int UINT32; + +#define __AGLDD_TYPEDEF_UINT64 +typedef unsigned long long UINT64; + +#ifndef __KERNEL__ +#if !defined __WIN_TYPEDEF_BOOL +#define __AGLDD_TYPEDEF_BOOL +typedef UINT32 BOOL; +#endif +#endif + +#ifndef TRUE +#define TRUE true +#endif +#ifndef FALSE +#define FALSE false +#endif + +#endif/* _AGLDD_H_ */ diff --git a/agl-basefiles/agldd/ev_common.h b/agl-basefiles/agldd/ev_common.h old mode 100644 new mode 100755 diff --git a/agl-basefiles/agldd/ev_id.h b/agl-basefiles/agldd/ev_id.h old mode 100644 new mode 100755 diff --git a/agl-basefiles/agldd/evk_lib.h b/agl-basefiles/agldd/evk_lib.h old mode 100644 new mode 100755 index 378df13..416fb0f --- a/agl-basefiles/agldd/evk_lib.h +++ b/agl-basefiles/agldd/evk_lib.h @@ -77,7 +77,7 @@ EV_ERR EVK_find_message_by_content(EV_ID queueID, UINT16 length, * @{ */ #define EVK_NAME "evk" #define EVK_DEV_NAME "/dev/agl/"EVK_NAME -#define EVK_DEV_MAJOR 1033 +#define EVK_DEV_MAJOR (1033 % 256) #define EVK_IOC_MAGIC 0xE7 #define EVK_IOC_CREATE_FLAG _IO(EVK_IOC_MAGIC, 0x00) diff --git a/agl-basefiles/agldd/moduleid.h b/agl-basefiles/agldd/moduleid.h old mode 100644 new mode 100755 -- cgit 1.2.3-korg