From 75e0fd1b4b5f0321e4e8aa11c8f5e950ea9651db Mon Sep 17 00:00:00 2001 From: Amir Levy Date: Tue, 29 Dec 2020 09:36:01 +0200 Subject: [PATCH] msm: ipa: add NTN3 offload support Add NTN3 setup info struct to enable NTN3 IPA offload. Change-Id: Idb8399fa7574dc7ac3b4c119c40b441bfa28793d Signed-off-by: Amir Levy --- include/linux/ipa_eth.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/ipa_eth.h b/include/linux/ipa_eth.h index f62638df247d..a2d013da4a61 100644 --- a/include/linux/ipa_eth.h +++ b/include/linux/ipa_eth.h @@ -894,6 +894,18 @@ enum ipa_eth_pipe_direction { #define IPA_ETH_INST_ID_MAX (2) +/** + * struct ipa_eth_ntn_setup_info - parameters for ntn ethernet + * offloading + * + * @bar_addr: bar PA to access NTN register + * @tail_ptr_offs: tail ptr offset + */ +struct ipa_eth_ntn_setup_info { + phys_addr_t bar_addr; + phys_addr_t tail_ptr_offs; +}; + /** * struct ipa_eth_aqc_setup_info - parameters for aqc ethernet * offloading @@ -980,6 +992,7 @@ struct ipa_eth_pipe_setup_info { union { struct ipa_eth_aqc_setup_info aqc; struct ipa_eth_realtek_setup_info rtk; + struct ipa_eth_ntn_setup_info ntn; } client_info; /* output params */ @@ -1013,6 +1026,7 @@ struct ipa_eth_client_pipe_info { * @traffic_type: traffic type * @pipe_list: list of pipes with same traffic type * @priv: private data for client + * @test: is test client */ struct ipa_eth_client { /* vendor driver */ @@ -1025,6 +1039,7 @@ struct ipa_eth_client { /* client specific priv data*/ void *priv; + bool test; }; /**