summaryrefslogtreecommitdiffstats
path: root/agl-basefiles
diff options
context:
space:
mode:
authorRiku Nomoto <riku_nomoto@mail.toyota.co.jp>2020-12-11 18:12:31 +0900
committerRiku Nomoto <riku_nomoto@mail.toyota.co.jp>2020-12-13 15:31:15 +0900
commita3f32b3224409c5f702597f2903f329ef51aa42f (patch)
treeb856469d3ae8b1bf6a3c12098abe2e6434e1a927 /agl-basefiles
parent7a57c1641c29587a7d15173548fbcb131652b621 (diff)
Arranged kernel module directorysandbox/Riku.Nomoto/test_kernel_module
Signed-off-by: Riku Nomoto <riku_nomoto@mail.toyota.co.jp> Change-Id: I43d8e66ad0bcf5f7d681812db0c93141ecd526ac
Diffstat (limited to 'agl-basefiles')
-rwxr-xr-xagl-basefiles/agldd/agldd.h94
-rwxr-xr-x[-rw-r--r--]agl-basefiles/agldd/ev_common.h0
-rwxr-xr-x[-rw-r--r--]agl-basefiles/agldd/ev_id.h0
-rwxr-xr-x[-rw-r--r--]agl-basefiles/agldd/evk_lib.h2
-rwxr-xr-x[-rw-r--r--]agl-basefiles/agldd/moduleid.h0
5 files changed, 95 insertions, 1 deletions
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 <linux/types.h>
+#else
+#include <stdint.h>
+#if !defined(__cplusplus)
+#include <stdbool.h>
+#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
index 1a68fea..1a68fea 100644..100755
--- a/agl-basefiles/agldd/ev_common.h
+++ b/agl-basefiles/agldd/ev_common.h
diff --git a/agl-basefiles/agldd/ev_id.h b/agl-basefiles/agldd/ev_id.h
index 2026ef7..2026ef7 100644..100755
--- a/agl-basefiles/agldd/ev_id.h
+++ b/agl-basefiles/agldd/ev_id.h
diff --git a/agl-basefiles/agldd/evk_lib.h b/agl-basefiles/agldd/evk_lib.h
index 378df13..416fb0f 100644..100755
--- 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
index 248fadc..248fadc 100644..100755
--- a/agl-basefiles/agldd/moduleid.h
+++ b/agl-basefiles/agldd/moduleid.h