port-probe: detect XMMRPC ports

This commit is contained in:
Thomas Vogt
2024-07-31 17:36:14 +00:00
committed by Aleksander Morgado
parent 1c4f2320f1
commit c2e3a8c10e
11 changed files with 123 additions and 12 deletions
+2
View File
@@ -657,6 +657,7 @@ typedef enum { /*< underscore_name=mm_modem_band >*/
* @MM_MODEM_PORT_TYPE_MBIM: MBIM port.
* @MM_MODEM_PORT_TYPE_AUDIO: Audio port. Since 1.12.
* @MM_MODEM_PORT_TYPE_IGNORED: Ignored port. Since 1.16.
* @MM_MODEM_PORT_TYPE_XMMRPC: Control protocol for Intel XMM modems. Since 1.24.
*
* Type of modem port.
*
@@ -672,6 +673,7 @@ typedef enum { /*< underscore_name=mm_modem_port_type >*/
MM_MODEM_PORT_TYPE_MBIM = 7,
MM_MODEM_PORT_TYPE_AUDIO = 8,
MM_MODEM_PORT_TYPE_IGNORED = 9,
MM_MODEM_PORT_TYPE_XMMRPC = 10,
} MMModemPortType;
/**
+13
View File
@@ -220,6 +220,19 @@
*/
#define ID_MM_PORT_TYPE_MBIM "ID_MM_PORT_TYPE_MBIM"
/**
* ID_MM_PORT_TYPE_XMMRPC:
*
* This is a port-specific tag applied to generic ports that we know in advance
* are RPC control ports for Intel XMM modems.
*
* This tag will also prevent other types of probing (e.g. AT, QMI) on the
* port.
*
* Since: 1.24
*/
#define ID_MM_PORT_TYPE_XMMRPC "ID_MM_PORT_TYPE_XMMRPC"
/**
* ID_MM_TTY_BAUDRATE:
*