summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-t18x-slv-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-t18x-slv-common.h')
-rw-r--r--drivers/i2c/busses/i2c-t18x-slv-common.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-t18x-slv-common.h b/drivers/i2c/busses/i2c-t18x-slv-common.h
new file mode 100644
index 000000000..4539d6aac
--- /dev/null
+++ b/drivers/i2c/busses/i2c-t18x-slv-common.h
@@ -0,0 +1,27 @@
1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#ifndef __I2C_T18X_SLV_COMMON_H__
16#define __I2C_T18X_SLV_COMMON_H__
17
18#define MAX_BUFF_SIZE 4096
19#define SLAVE_RX_TIMEOUT (msecs_to_jiffies(1000))
20
21struct i2cslv_client_ops {
22 void (*slv_sendbyte_to_client)(unsigned char);
23 unsigned char (*slv_getbyte_from_client)(void);
24 void (*slv_sendbyte_end_to_client)(void);
25 void (*slv_getbyte_end_from_client)(void);
26};
27#endif /* __I2C_T18X_SLV_COMMON_H__ */