Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2d1ca67 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: gsi: Add support for EV RP DDR access feature"

parents 339df4b9 c8ca64ec
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -186,6 +186,8 @@ enum gsi_evt_ring_elem_size {
 * @rp_update_addr:  physical address to which event read pointer should be
 *                   written on every event generation. must be set to 0 when
 *                   no update is desdired
 * @rp_update_vaddr: virtual address of event ring read pointer (set to NULL
 *                   when not applicable)
 * @exclusive:       if true, only one GSI channel can be associated with this
 *                   event ring. if false, the event ring can be shared among
 *                   multiple GSI channels but in that case no polling
@@ -196,6 +198,7 @@ enum gsi_evt_ring_elem_size {
 * @evchid:          the event ID that is being specifically requested (this is
 *                   relevant for MHI where doorbell routing requires ERs to be
 *                   physically contiguous)
 * @gsi_read_event_ring_rp: function reads the value of the event ring RP.
 */
struct gsi_evt_ring_props {
	enum gsi_evt_chtype intf;
@@ -209,11 +212,14 @@ struct gsi_evt_ring_props {
	uint32_t intvec;
	uint64_t msi_addr;
	uint64_t rp_update_addr;
	void *rp_update_vaddr;
	bool exclusive;
	void (*err_cb)(struct gsi_evt_err_notify *notify);
	void *user_data;
	bool evchid_valid;
	uint8_t evchid;
	uint64_t (*gsi_read_event_ring_rp)(struct gsi_evt_ring_props *props,
						uint8_t id, int ee);
};

enum gsi_chan_mode {
@@ -2036,6 +2042,5 @@ static inline void gsi_wdi3_write_evt_ring_db(
static inline void gsi_wdi3_dump_register(unsigned long chan_hdl)
{
}

#endif /* IS_ENABLED(CONFIG_GSI) */
#endif