diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-18 15:52:11 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-03-10 10:59:22 +0100 |
commit | 7b20550ac0fb114c871720c56e40150fba7079f7 (patch) | |
tree | 1d319a5e164d0a8477085d3faff140bc3a88cc8a /src/mm-port-qmi.h | |
parent | 032a86915a6d28cf39bc249a45dfb4d02e3a7eb6 (diff) |
port-qmi: implement port reset logic
The port reset operation will attempt to setup the QMI and associated
NET ports to the same state as they has when the modem was originally
detected: no mux links, net interface down and (for the qmi_wwan based
devices) expected kernel data format set to 802.3.
By default, the external calls to the port reset logic will require
the port to be closed (i.e. no internal QmiDevice), so a new temporary
QmiDevice will be created just for this operation. The new QmiDevice
doesn't even need to be open, as the reset operations just uses the
device to attempt to remove net links.
The internal call to the port reset logic uses an input QmiDevice
which may be the newly allocated one in the external call, or the
internal QmiDevice, if there is one.
Diffstat (limited to 'src/mm-port-qmi.h')
-rw-r--r-- | src/mm-port-qmi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-port-qmi.h b/src/mm-port-qmi.h index f776951d..835f35c3 100644 --- a/src/mm-port-qmi.h +++ b/src/mm-port-qmi.h @@ -112,4 +112,12 @@ gboolean mm_port_qmi_setup_data_format_finish (MMPortQmi *s GAsyncResult *res, GError **error); +void mm_port_qmi_reset (MMPortQmi *self, + MMPort *data, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_port_qmi_reset_finish (MMPortQmi *self, + GAsyncResult *res, + GError **error); + #endif /* MM_PORT_QMI_H */ |