summaryrefslogtreecommitdiffstats
path: root/agl-basefiles
diff options
context:
space:
mode:
authorRiku Nomoto <riku_nomoto@mail.toyota.co.jp>2020-12-16 00:17:36 +0900
committerRiku Nomoto <riku_nomoto@mail.toyota.co.jp>2020-12-19 11:19:55 +0000
commiteea0653077cedf807c8acab32b89b70b4358da85 (patch)
tree49caba76a749421f07ad6175977da6555ac3bce3 /agl-basefiles
parent4400cb613e304911d7f6fe90bcf400be0957e65f (diff)
Modified license header of some files
To set appropreate header to the files, I reworked source codes of kernel-module-evklib. Header files and evk_lib.c are combined. v5: Kernel modules no longer have a header file.    The code of the header file was imported into evk_lib.c. Signed-off-by: Riku Nomoto <riku_nomoto@mail.toyota.co.jp> Change-Id: I2af32c59c13bdf7b6f56a8d0b4169e71d7ca8fd5
Diffstat (limited to 'agl-basefiles')
-rw-r--r--agl-basefiles/agldd/evk_lib.h52
1 files changed, 1 insertions, 51 deletions
diff --git a/agl-basefiles/agldd/evk_lib.h b/agl-basefiles/agldd/evk_lib.h
index 378df13..49d2d2e 100644
--- a/agl-basefiles/agldd/evk_lib.h
+++ b/agl-basefiles/agldd/evk_lib.h
@@ -23,61 +23,11 @@
#include <linux/types.h>
#include <linux/ioctl.h>
-/* API definition */
-
-/** @addtogroup EV
- * @{ */
-#ifdef __KERNEL__
-/* Flag message queue create/delete */
-EV_ERR EVK_create_flag(EV_ID flagID);
-EV_ERR EVK_create_flag64(EV_ID flagID);
-EV_ERR EVK_create_queue(EV_ID queueID,
- UINT8 length,
- UINT16 max_bytes,
- EV_Message_Queue_Type type);
-
-EV_ERR EVK_create_flag_auto_id(/* OUT */EV_ID *flagID);
-EV_ERR EVK_create_flag64_auto_id(/* OUT */EV_ID *flagID);
-EV_ERR EVK_create_queue_auto_id(/* OUT */EV_ID *queueID,
- UINT8 length,
- UINT16 max_bytes,
- EV_Message_Queue_Type type);
-
-EV_ERR EVK_destroy_flag(EV_ID flagID);
-EV_ERR EVK_destroy_queue(EV_ID queueID);
-
-/* Send events */
-EV_ERR EVK_set_flag(EV_ID flagID, UINT32 bits);
-EV_ERR EVK_set_flag64(EV_ID flagID, UINT64 bits);
-EV_ERR EVK_send_message(EV_ID queueID, UINT16 bytes, const void *message,
- UINT32 senderInfo);
-
-/* Get event(with search conditions) */
-EV_ERR EVK_get_flag(EV_ID flagID, /* OUT */EV_Flag *flag);
-EV_ERR EVK_wait_flag(EV_ID flagID, /* OUT */EV_Flag *flag);/* block */
-EV_ERR EVK_peek_flag(EV_ID flagID, /* OUT */EV_Flag *flag);
-EV_ERR EVK_get_flag64(EV_ID flagID, /* OUT */EV_Flag64 *flag);
-EV_ERR EVK_wait_flag64(EV_ID flagID, /* OUT */EV_Flag64 *flag);/* block */
-EV_ERR EVK_peek_flag64(EV_ID flagID, /* OUT */EV_Flag64 *flag);
-
-EV_ERR EVK_get_message(EV_ID queueID, /* OUT */EV_Message *message);
-EV_ERR EVK_wait_message(EV_ID queueID, /* OUT */EV_Message *message);/* block */
-EV_ERR EVK_peek_message(EV_ID queueID, /* OUT */EV_Message *message);
-
-EV_ERR EVK_find_message_by_sender(EV_ID queueID, UINT32 senderInfo,
- /* OUT */EV_Message *message);
-EV_ERR EVK_find_message_by_content(EV_ID queueID, UINT16 length,
- const void *compare_bytes,
- /* OUT */EV_Message *message);
-#endif
-
-/** @} */
-
/** @addtogroup EVK_in
* @{ */
#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)