diff mbox series

[28/47] headers: Add linux/wwan.h file

Message ID 20211019214320.2035704-29-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series backports: Update to kernel 5.15-rc6 | expand

Commit Message

Hauke Mehrtens Oct. 19, 2021, 9:43 p.m. UTC
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>
---
 backport/backport-include/linux/wwan.h | 35 ++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 backport/backport-include/linux/wwan.h
diff mbox series

Patch

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 */