/* * Copyright (c) 2007-2017 Allwinnertech Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * 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. * */ /* ********************************************************************************************************* * LINUX-KERNEL * AllWinner Linux Platform Develop Kits * Kernel Module * * (c) Copyright 2006-2011, kevin.z China * All Rights Reserved * * File : standby_twi.h * By : kevin.z * Version : v1.0 * Date : 2011-5-31 15:22 * Descript: * Update : date auther ver notes ********************************************************************************************************* */ #ifndef __STANDBY_TWI_H__ #define __STANDBY_TWI_H__ #include "../mem_twi.h" enum twi_op_type_e { TWI_OP_RD, TWI_OP_WR, }; extern __s32 standby_twi_init(int group); extern __s32 standby_twi_exit(void); extern __s32 twi_byte_rw(enum twi_op_type_e op, __u8 saddr, __u8 baddr, __u8 *data); #endif /* __STANDBY_TWI_H__ */