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

Commit 443b1623 authored by Nadine Toledano's avatar Nadine Toledano
Browse files

msm: ipa: add IPADMA



Support IPADMA for MHI client to enable dma using IPA BAM.
Exposes APIs for MHI client which performs synchronous memcpy
and asynchronous memcpy.

Change-Id: Iecbab5d2520f2481d6e715e92e39052382f45e32
Signed-off-by: default avatarNadine Toledano <nadinet@codeaurora.org>
parent b6d89b7b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ obj-$(CONFIG_IPA) += ipat.o
ipat-y := ipa.o ipa_debugfs.o ipa_hdr.o ipa_flt.o ipa_rt.o ipa_dp.o ipa_client.o \
	ipa_utils.o ipa_nat.o ipa_intf.o teth_bridge.o ipa_interrupts.o odu_bridge.o \
	ipa_rm.o ipa_rm_dependency_graph.o ipa_rm_peers_list.o ipa_rm_resource.o ipa_rm_inactivity_timer.o \
	ipa_uc.o ipa_uc_wdi.o
	ipa_uc.o ipa_uc_wdi.o ipa_dma.o

obj-$(CONFIG_RMNET_IPA) += rmnet_ipa.o ipa_qmi_service_v01.o ipa_qmi_service.o rmnet_ipa_fd_ioctl.o
+785 −0

File added.

Preview size limit exceeded, changes collapsed.

+47 −2

File changed.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
@@ -1423,4 +1423,6 @@ void ipa_uc_register_handlers(enum ipa_hw_features feature,
			      struct ipa_uc_hdlrs *hdlrs);
int create_nat_device(void);
int ipa_uc_notify_clk_state(bool enabled);
void ipa_dma_async_memcpy_notify_cb(void *priv,
		enum ipa_dp_evt_type evt, unsigned long data);
#endif /* _IPA_I_H_ */
+8 −0
Original line number Diff line number Diff line
@@ -113,6 +113,10 @@ static const int ep_mapping[2][IPA_CLIENT_MAX] = {
	[IPA_2_0][IPA_CLIENT_ODU_PROD]           = 12,
	[IPA_2_0][IPA_CLIENT_Q6_LAN_PROD]        =  6,
	[IPA_2_0][IPA_CLIENT_Q6_CMD_PROD]        =  7,
	[IPA_2_0][IPA_CLIENT_MEMCPY_DMA_SYNC_PROD]
						 =  12,
	[IPA_2_0][IPA_CLIENT_MEMCPY_DMA_ASYNC_PROD]
						 =  19,
	/* Only for test purpose */
	[IPA_2_0][IPA_CLIENT_TEST_PROD]          = 19,
	[IPA_2_0][IPA_CLIENT_TEST1_PROD]         = 19,
@@ -144,6 +148,10 @@ static const int ep_mapping[2][IPA_CLIENT_MAX] = {
	[IPA_2_0][IPA_CLIENT_Q6_LAN_CONS]        =  8,
	[IPA_2_0][IPA_CLIENT_Q6_WAN_CONS]        =  9,
	[IPA_2_0][IPA_CLIENT_Q6_DUN_CONS]        = 10,
	[IPA_2_0][IPA_CLIENT_MEMCPY_DMA_SYNC_CONS]
						 =  13,
	[IPA_2_0][IPA_CLIENT_MEMCPY_DMA_ASYNC_CONS]
						 =  16,
	/* Only for test purpose */
	[IPA_2_0][IPA_CLIENT_TEST_CONS]          = 14,
	[IPA_2_0][IPA_CLIENT_TEST1_CONS]         = 14,
Loading