summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/msg2233/mstar_drv_jni_interface.h
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
committerYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
commit8e4bff4cab0ddac6060645b0715210484d02ff40 (patch)
tree3a5c3024371a04692a3a6d9974d001cdff8ebf84 /drivers/input/touchscreen/msg2233/mstar_drv_jni_interface.h
Initial file dump from open source releaseHEADmaster
Diffstat (limited to 'drivers/input/touchscreen/msg2233/mstar_drv_jni_interface.h')
-rw-r--r--drivers/input/touchscreen/msg2233/mstar_drv_jni_interface.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/msg2233/mstar_drv_jni_interface.h b/drivers/input/touchscreen/msg2233/mstar_drv_jni_interface.h
new file mode 100644
index 00000000..962d1dc7
--- /dev/null
+++ b/drivers/input/touchscreen/msg2233/mstar_drv_jni_interface.h
@@ -0,0 +1,91 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2006-2012 MStar Semiconductor, Inc.
+// All rights reserved.
+//
+// Unless otherwise stipulated in writing, any and all information contained
+// herein regardless in any format shall remain the sole proprietary of
+// MStar Semiconductor Inc. and be kept in strict confidence
+// (??MStar Confidential Information??) by the recipient.
+// Any unauthorized act including without limitation unauthorized disclosure,
+// copying, use, reproduction, sale, distribution, modification, disassembling,
+// reverse engineering and compiling of the contents of MStar Confidential
+// Information is unlawful and strictly prohibited. MStar hereby reserves the
+// rights to any and all damages, losses, costs and expenses resulting therefrom.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *
+ * @file mstar_drv_hotknot.h
+ *
+ * @brief This file defines the hotknot functions
+ *
+ *
+ */
+
+#ifndef __MSTAR_DRV_JNI_INTERFACE_H__
+#define __MSTAR_DRV_JNI_INTERFACE_H__
+
+
+////////////////////////////////////////////////////////////
+/// Included Files
+////////////////////////////////////////////////////////////
+#include "mstar_drv_common.h"
+
+
+#ifdef CONFIG_ENABLE_JNI_INTERFACE
+////////////////////////////////////////////////////////////
+/// Data Types
+////////////////////////////////////////////////////////////
+/*
+typedef struct
+{
+ u64 nCmdId;
+ u8 *pSndCmdData; //send data to fw
+ u64 nSndCmdLen;
+ u8 *pRtnCmdData; //receive data from fw
+ u64 nRtnCmdLen;
+} MsgToolDrvCmd_t;
+*/
+
+typedef struct
+{
+ u64 nCmdId;
+ u64 nSndCmdDataPtr; //send data to fw
+ u64 nSndCmdLen;
+ u64 nRtnCmdDataPtr; //receive data from fw
+ u64 nRtnCmdLen;
+} MsgToolDrvCmd_t;
+
+
+
+////////////////////////////////////////////////////////////
+/// Macro
+////////////////////////////////////////////////////////////
+#define MSGTOOL_MAGIC_NUMBER 96
+#define MSGTOOL_IOCTL_RUN_CMD _IO(MSGTOOL_MAGIC_NUMBER, 1)
+
+
+#define MSGTOOL_RESETHW 0x01
+#define MSGTOOL_REGGETXBYTEVALUE 0x02
+#define MSGTOOL_HOTKNOTSTATUS 0x03
+#define MSGTOOL_FINGERTOUCH 0x04
+#define MSGTOOL_BYPASSHOTKNOT 0x05
+#define MSGTOOL_DEVICEPOWEROFF 0x06
+
+
+
+////////////////////////////////////////////////////////////
+/// Function Prototypes
+////////////////////////////////////////////////////////////
+
+extern ssize_t MsgToolRead(struct file *pFile, char __user *pBuffer, size_t nCount, loff_t *pPos);
+extern ssize_t MsgToolWrite(struct file *pFile, const char __user *pBuffer, size_t nCount, loff_t *pPos);
+extern long MsgToolIoctl( struct file *pFile, unsigned int nCmd, unsigned long nArg );
+extern void CreateMsgToolMem(void);
+extern void DeleteMsgToolMem(void);
+
+
+#endif //CONFIG_ENABLE_JNI_INTERFACE
+#endif // __MSTAR_DRV_JNI_INTERFACE_H__