From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- .../touchscreen/msg2233/mstar_drv_hotknot_queue.h | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 drivers/input/touchscreen/msg2233/mstar_drv_hotknot_queue.h (limited to 'drivers/input/touchscreen/msg2233/mstar_drv_hotknot_queue.h') diff --git a/drivers/input/touchscreen/msg2233/mstar_drv_hotknot_queue.h b/drivers/input/touchscreen/msg2233/mstar_drv_hotknot_queue.h new file mode 100644 index 00000000..edc4f8a4 --- /dev/null +++ b/drivers/input/touchscreen/msg2233/mstar_drv_hotknot_queue.h @@ -0,0 +1,63 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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_queue.h + * + * @brief This file defines the queue structure for hotknot + * + * + */ + +#ifndef __MSTAR_DRV_HOTKNOT_QUEUE_H__ +#define __MSTAR_DRV_HOTKNOT_QUEUE_H__ + + +//////////////////////////////////////////////////////////// +/// Included Files +//////////////////////////////////////////////////////////// + +#include "mstar_drv_common.h" + + +#ifdef CONFIG_ENABLE_HOTKNOT +//////////////////////////////////////////////////////////// +/// Constant +//////////////////////////////////////////////////////////// +#define HOTKNOT_QUEUE_SIZE 1024 + + +//////////////////////////////////////////////////////////// +/// Variables +//////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////// +/// Function Prototype +//////////////////////////////////////////////////////////// +extern void CreateQueue(void); +extern void ClearQueue(void); +extern int PushQueue(u8 * pBuf, u16 nLength); +extern int PopQueue(u8 * pBuf, u16 nLength); +extern int ShowQueue(u8 * pBuf, u16 nLength); //just show data, not fetch data +extern void ShowAllQueue(u8 * pBuf, u16 * pFront, u16 * pRear); //just show data, not fetch data +extern void DeleteQueue(void); + + +#endif //CONFIG_ENABLE_HOTKNOT +#endif // __MSTAR_DRV_HOTKNOT_QUEUE_H__ -- cgit v1.3.1