/* Header file for: * Cypress TrueTouch(TM) Standard Product I2C touchscreen driver. * drivers/input/touchscreen/cyttsp_core.h * * Copyright (C) 2009-2011 Cypress Semiconductor, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2, and only version 2, as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Cypress reserves the right to make changes without further notice * to the materials described herein. Cypress does not assume any * liability arising out of the application described herein. * * Contact Cypress Semiconductor at www.cypress.com * */ #ifndef __CYTTSP_CORE_H__ #define __CYTTSP_CORE_H__ #include struct cyttsp_bus_ops { s32 (*write)(void *handle, u8 addr, u8 length, const void *values); s32 (*read)(void *handle, u8 addr, u8 length, void *values); s32 (*ext)(void *handle, void *values); }; void *cyttsp_core_init(struct cyttsp_bus_ops *bus_ops, struct device *pdev); void cyttsp_core_release(void *handle); #endif /* __CYTTSP_CORE_H__ */