1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Renesas RPC-IF core driver
5 * Copyright (C) 2018~2019 Renesas Solutions Corp.
6 * Copyright (C) 2019 Macronix International Co., Ltd.
7 * Copyright (C) 2019-2020 Cogent Embedded, Inc.
10 #ifndef __RENESAS_RPC_IF_H
11 #define __RENESAS_RPC_IF_H
13 #include <linux/pm_runtime.h>
14 #include <linux/types.h>
51 enum rpcif_data_dir dir
;
72 int rpcif_sw_init(struct rpcif
*rpc
, struct device
*dev
);
73 int rpcif_hw_init(struct device
*dev
, bool hyperflash
);
74 void rpcif_prepare(struct device
*dev
, const struct rpcif_op
*op
, u64
*offs
,
76 int rpcif_manual_xfer(struct device
*dev
);
77 ssize_t
rpcif_dirmap_read(struct device
*dev
, u64 offs
, size_t len
, void *buf
);
79 #endif // __RENESAS_RPC_IF_H