~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/memory/renesas-rpc-if.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Renesas RPC-IF core driver
  4  *
  5  * Copyright (C) 2018~2019 Renesas Solutions Corp.
  6  * Copyright (C) 2019 Macronix International Co., Ltd.
  7  * Copyright (C) 2019-2020 Cogent Embedded, Inc.
  8  */
  9 
 10 #ifndef __RENESAS_RPC_IF_H
 11 #define __RENESAS_RPC_IF_H
 12 
 13 #include <linux/pm_runtime.h>
 14 #include <linux/types.h>
 15 
 16 enum rpcif_data_dir {
 17         RPCIF_NO_DATA,
 18         RPCIF_DATA_IN,
 19         RPCIF_DATA_OUT,
 20 };
 21 
 22 struct rpcif_op {
 23         struct {
 24                 u8 buswidth;
 25                 u8 opcode;
 26                 bool ddr;
 27         } cmd, ocmd;
 28 
 29         struct {
 30                 u8 nbytes;
 31                 u8 buswidth;
 32                 bool ddr;
 33                 u64 val;
 34         } addr;
 35 
 36         struct {
 37                 u8 ncycles;
 38                 u8 buswidth;
 39         } dummy;
 40 
 41         struct {
 42                 u8 nbytes;
 43                 u8 buswidth;
 44                 bool ddr;
 45                 u32 val;
 46         } option;
 47 
 48         struct {
 49                 u8 buswidth;
 50                 unsigned int nbytes;
 51                 enum rpcif_data_dir dir;
 52                 bool ddr;
 53                 union {
 54                         void *in;
 55                         const void *out;
 56                 } buf;
 57         } data;
 58 };
 59 
 60 enum rpcif_type {
 61         RPCIF_RCAR_GEN3,
 62         RPCIF_RCAR_GEN4,
 63         RPCIF_RZ_G2L,
 64 };
 65 
 66 struct rpcif {
 67         struct device *dev;
 68         void __iomem *dirmap;
 69         size_t size;
 70 };
 71 
 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,
 75                    size_t *len);
 76 int rpcif_manual_xfer(struct device *dev);
 77 ssize_t rpcif_dirmap_read(struct device *dev, u64 offs, size_t len, void *buf);
 78 
 79 #endif // __RENESAS_RPC_IF_H
 80 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php