From a7c84bad539adcd1009734ca1640b0c6531b9c2b Mon Sep 17 00:00:00 2001 From: Ashok Vuyyuru Date: Fri, 2 Apr 2021 15:14:55 +0530 Subject: [PATCH] msm: ipa3: Adding new IOCTL to check ETH bridging supported or not Adding new IOCTL to check ETH bridging supported or not. Change-Id: Id081267753270e8fb87fd51dd322f02e80852392 Signed-off-by: Ashok Vuyyuru --- include/uapi/linux/msm_ipa.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/uapi/linux/msm_ipa.h b/include/uapi/linux/msm_ipa.h index b8f1887b100e..3bead1e05d48 100644 --- a/include/uapi/linux/msm_ipa.h +++ b/include/uapi/linux/msm_ipa.h @@ -136,6 +136,7 @@ #define IPA_IOCTL_ADD_UC_ACT_ENTRY 83 #define IPA_IOCTL_DEL_UC_ACT_ENTRY 84 #define IPA_IOCTL_SET_SW_FLT 85 +#define IPA_IOCTL_GET_HW_FEATURE_SUPPORT 86 /** * max size of the header to be inserted @@ -911,6 +912,17 @@ enum ipa_hw_type { #define IPA_HW_v5_0 IPA_HW_v5_0 #define IPA_HW_v5_1 IPA_HW_v5_1 +/** + * enum ipa_hw_feature_support - IPA HW supported feature + * ETH_BRIDGING_SUPPORT: To check ETH BRIDGING support. + * Add here new feature information need to send to userspace + */ +enum ipa_hw_feature_support { + ETH_BRIDGING_SUPPORT = 0, +}; + +#define IPA_HW_ETH_BRIDGING_SUPPORT_BMSK 0x1 + /** * struct ipa_rule_attrib - attributes of a routing/filtering * rule, all in LE @@ -3367,6 +3379,10 @@ struct ipa_ioc_sw_flt_list_type { #define IPA_IOC_SET_SW_FLT _IOWR(IPA_IOC_MAGIC, \ IPA_IOCTL_SET_SW_FLT, \ struct ipa_ioc_sw_flt_list_type) + +#define IPA_IOC_GET_HW_FEATURE_SUPPORT _IOWR(IPA_IOC_MAGIC, \ + IPA_IOCTL_GET_HW_FEATURE_SUPPORT, \ + __u32) /* * unique magic number of the Tethering bridge ioctls */