aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2021-10-10 17:07:44 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2021-10-18 23:59:40 +0200
commit671fd655057701fac11b4101e1d4c54d37cd2b61 (patch)
tree389152592fd88d80c22e171dc67696738707277d
parentd4b66ced0fa9591114a9925cce0783ae3979ad92 (diff)
downloadbackports-671fd655057701fac11b4101e1d4c54d37cd2b61.tar.gz
headers: Add linux/wwan.h file
Add the linux/wwan.h header file from the new wwan subsystem. This adds only the enum wwan_port_type which is also used when the wwan subsystem is deactivated. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/linux/wwan.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/backport/backport-include/linux/wwan.h b/backport/backport-include/linux/wwan.h
new file mode 100644
index 00000000..b3e4769f
--- /dev/null
+++ b/backport/backport-include/linux/wwan.h
@@ -0,0 +1,35 @@
+#ifndef __BACKPORT_WWAN_H
+#define __BACKPORT_WWAN_H
+#include <linux/version.h>
+#if LINUX_VERSION_IS_GEQ(5,13,0)
+#include_next <linux/wwan.h>
+#else
+
+/**
+ * enum wwan_port_type - WWAN port types
+ * @WWAN_PORT_AT: AT commands
+ * @WWAN_PORT_MBIM: Mobile Broadband Interface Model control
+ * @WWAN_PORT_QMI: Qcom modem/MSM interface for modem control
+ * @WWAN_PORT_QCDM: Qcom Modem diagnostic interface
+ * @WWAN_PORT_FIREHOSE: XML based command protocol
+ *
+ * @WWAN_PORT_MAX: Highest supported port types
+ * @WWAN_PORT_UNKNOWN: Special value to indicate an unknown port type
+ * @__WWAN_PORT_MAX: Internal use
+ */
+enum wwan_port_type {
+ WWAN_PORT_AT,
+ WWAN_PORT_MBIM,
+ WWAN_PORT_QMI,
+ WWAN_PORT_QCDM,
+ WWAN_PORT_FIREHOSE,
+
+ /* Add new port types above this line */
+
+ __WWAN_PORT_MAX,
+ WWAN_PORT_MAX = __WWAN_PORT_MAX - 1,
+ WWAN_PORT_UNKNOWN,
+};
+
+#endif /* >= 5.13 */
+#endif /* __BACKPORT_WWAN_H */