atmel-i2c.h (976e3645923bdd2fe7893aae33fd7a21098bfb28) atmel-i2c.h (0a2f4b5785ca5e9c5bc2d4e59183e016096ee889)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2017, Microchip Technology Inc.
4 * Author: Tudor Ambarus <tudor.ambarus@microchip.com>
5 */
6
7#ifndef __ATMEL_I2C_H__
8#define __ATMEL_I2C_H__

--- 159 unchanged lines hidden (view full) ---

168};
169
170int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id);
171
172void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data,
173 void (*cbk)(struct atmel_i2c_work_data *work_data,
174 void *areq, int status),
175 void *areq);
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2017, Microchip Technology Inc.
4 * Author: Tudor Ambarus <tudor.ambarus@microchip.com>
5 */
6
7#ifndef __ATMEL_I2C_H__
8#define __ATMEL_I2C_H__

--- 159 unchanged lines hidden (view full) ---

168};
169
170int atmel_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id);
171
172void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data,
173 void (*cbk)(struct atmel_i2c_work_data *work_data,
174 void *areq, int status),
175 void *areq);
176void atmel_i2c_flush_queue(void);
176
177int atmel_i2c_send_receive(struct i2c_client *client, struct atmel_i2c_cmd *cmd);
178
179void atmel_i2c_init_read_cmd(struct atmel_i2c_cmd *cmd);
180void atmel_i2c_init_random_cmd(struct atmel_i2c_cmd *cmd);
181void atmel_i2c_init_genkey_cmd(struct atmel_i2c_cmd *cmd, u16 keyid);
182int atmel_i2c_init_ecdh_cmd(struct atmel_i2c_cmd *cmd,
183 struct scatterlist *pubkey);
184
185#endif /* __ATMEL_I2C_H__ */
177
178int atmel_i2c_send_receive(struct i2c_client *client, struct atmel_i2c_cmd *cmd);
179
180void atmel_i2c_init_read_cmd(struct atmel_i2c_cmd *cmd);
181void atmel_i2c_init_random_cmd(struct atmel_i2c_cmd *cmd);
182void atmel_i2c_init_genkey_cmd(struct atmel_i2c_cmd *cmd, u16 keyid);
183int atmel_i2c_init_ecdh_cmd(struct atmel_i2c_cmd *cmd,
184 struct scatterlist *pubkey);
185
186#endif /* __ATMEL_I2C_H__ */