net: ipa: move the definition of gsi_ee_id
authorAlex Elder <elder@linaro.org>
Sat, 10 Sep 2022 01:11:27 +0000 (20:11 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 14:45:46 +0000 (07:45 -0700)
Move the definition of the gsi_ee_id enumerated type out of "gsi.h"
and into "ipa_version.h".  That latter header file isolates the
definition of the ipa_version enumerated type, allowing it to be
included in both IPA and GSI code.  We have the same requirement for
gsi_ee_id, and moving it here makes it easier to get only that
definition without everything else defined in "gsi.h".

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi.h
drivers/net/ipa/ipa_version.h

index 84d178a..0fc25a6 100644 (file)
@@ -31,14 +31,6 @@ struct gsi_trans;
 struct gsi_channel_data;
 struct ipa_gsi_endpoint_data;
 
-/* Execution environment IDs */
-enum gsi_ee_id {
-       GSI_EE_AP                               = 0x0,
-       GSI_EE_MODEM                            = 0x1,
-       GSI_EE_UC                               = 0x2,
-       GSI_EE_TZ                               = 0x3,
-};
-
 struct gsi_ring {
        void *virt;                     /* ring array base address */
        dma_addr_t addr;                /* primarily low 32 bits used */
index 6c16c89..852d6cb 100644 (file)
@@ -38,4 +38,12 @@ enum ipa_version {
        IPA_VERSION_4_11,
 };
 
+/* Execution environment IDs */
+enum gsi_ee_id {
+       GSI_EE_AP               = 0x0,
+       GSI_EE_MODEM            = 0x1,
+       GSI_EE_UC               = 0x2,
+       GSI_EE_TZ               = 0x3,
+};
+
 #endif /* _IPA_VERSION_H_ */