Lines Matching +full:ti +full:- +full:pruss

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * PRU-ICSS sub-system specific definitions
5 * Copyright (C) 2014-2020 Texas Instruments Incorporated - http://www.ti.com/
6 * Suman Anna <s-anna@ti.com>
13 #include <linux/remoteproc/pruss.h>
18 * enum pruss_gp_mux_sel - PRUSS GPI/O Mux modes for the
23 * values are interchanged. Also, this bit-field does not exist on
36 * enum pruss_gpi_mode - PRUSS GPI configuration modes, used
48 * enum pru_type - PRU core type identifier
50 * @PRU_TYPE_PRU: Programmable Real-time Unit
51 * @PRU_TYPE_RTU: Auxiliary Programmable Real-Time Unit
52 * @PRU_TYPE_TX_PRU: Transmit Programmable Real-Time Unit
63 * enum pruss_mem - PRUSS memory range identifiers
73 * struct pruss_mem_region - PRUSS memory region structure
74 * @va: kernel virtual address of the PRUSS memory region
75 * @pa: physical (bus) address of the PRUSS memory region
76 * @size: size of the PRUSS memory region
85 * struct pruss - PRUSS parent structure
86 * @dev: pruss device pointer
89 * @mem_regions: data for each of the PRUSS memory regions
92 * @core_clk_mux: clk handle for PRUSS CORE_CLK_MUX
93 * @iep_clk_mux: clk handle for PRUSS IEP_CLK_MUX
95 struct pruss { struct
108 struct pruss *pruss_get(struct rproc *rproc); argument
109 void pruss_put(struct pruss *pruss);
110 int pruss_request_mem_region(struct pruss *pruss, enum pruss_mem mem_id,
112 int pruss_release_mem_region(struct pruss *pruss,
114 int pruss_cfg_get_gpmux(struct pruss *pruss, enum pruss_pru_id pru_id, u8 *mux);
115 int pruss_cfg_set_gpmux(struct pruss *pruss, enum pruss_pru_id pru_id, u8 mux);
116 int pruss_cfg_gpimode(struct pruss *pruss, enum pruss_pru_id pru_id,
118 int pruss_cfg_miirt_enable(struct pruss *pruss, bool enable);
119 int pruss_cfg_xfr_enable(struct pruss *pruss, enum pru_type pru_type,
124 static inline struct pruss *pruss_get(struct rproc *rproc) in pruss_get()
126 return ERR_PTR(-EOPNOTSUPP); in pruss_get()
129 static inline void pruss_put(struct pruss *pruss) { } in pruss_put() argument
131 static inline int pruss_request_mem_region(struct pruss *pruss, in pruss_request_mem_region() argument
135 return -EOPNOTSUPP; in pruss_request_mem_region()
138 static inline int pruss_release_mem_region(struct pruss *pruss, in pruss_release_mem_region() argument
141 return -EOPNOTSUPP; in pruss_release_mem_region()
144 static inline int pruss_cfg_get_gpmux(struct pruss *pruss, in pruss_cfg_get_gpmux() argument
147 return ERR_PTR(-EOPNOTSUPP); in pruss_cfg_get_gpmux()
150 static inline int pruss_cfg_set_gpmux(struct pruss *pruss, in pruss_cfg_set_gpmux() argument
153 return ERR_PTR(-EOPNOTSUPP); in pruss_cfg_set_gpmux()
156 static inline int pruss_cfg_gpimode(struct pruss *pruss, in pruss_cfg_gpimode() argument
160 return ERR_PTR(-EOPNOTSUPP); in pruss_cfg_gpimode()
163 static inline int pruss_cfg_miirt_enable(struct pruss *pruss, bool enable) in pruss_cfg_miirt_enable() argument
165 return ERR_PTR(-EOPNOTSUPP); in pruss_cfg_miirt_enable()
168 static inline int pruss_cfg_xfr_enable(struct pruss *pruss,
172 return ERR_PTR(-EOPNOTSUPP);