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

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

Merge "msm: ipa4: flow control changes for rmnet pipe"

parents 6c1dddc8 f2695919
Loading
Loading
Loading
Loading
+21 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
 */

#ifndef MSM_GSI_H
@@ -1723,6 +1723,20 @@ int gsi_map_virtual_ch_to_per_ep(u32 ee, u32 chan_num, u32 per_ep_index);
 */
int gsi_alloc_channel_ee(unsigned int chan_idx, unsigned int ee, int *code);

/**
 * gsi_enable_flow_control_ee - Peripheral should call this function
 * to enable flow control other EE's channel. This is usually done in USB
 * connent and SSR scenarios.
 *
 * @chan_idx: Virtual channel index
 * @ee: EE
 * @code: [out] response code for operation

 * @Return gsi_status
 */
int gsi_enable_flow_control_ee(unsigned int chan_idx, unsigned int ee,
								int *code);

/*
 * Here is a typical sequence of calls
 *
@@ -1992,6 +2006,12 @@ static inline int gsi_alloc_channel_ee(unsigned int chan_idx, unsigned int ee,
	return -GSI_STATUS_UNSUPPORTED_OP;
}

static inline int gsi_enable_flow_control_ee(unsigned int chan_idx,
			unsigned int ee, int *code)
{
	return -GSI_STATUS_UNSUPPORTED_OP;
}

static inline void gsi_wdi3_write_evt_ring_db(
	unsigned long chan_hdl, uint32_t db_addr_low,
	uint32_t db_addr_high)