diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-04-22 14:30:59 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-04-23 23:14:30 +0200 |
commit | d536677efa7e4359d2591e36be7d142948c6a2b9 (patch) | |
tree | 9fa24330df59539110126944e69804f982401ada /data | |
parent | 0b1906618eb47b8bd37fba61507259ef09584031 (diff) | |
download | libqmi-d536677efa7e4359d2591e36be7d142948c6a2b9.tar.gz |
libqmi-glib,dpm: add service definition
The Data Port Mapper service provides a way to map hardware endpoint
ids to the ep-type/ep-iface-number fields we would normally use in
"WDA Get/Set Data Format" or "WDS Bind Mux Data Port".
This mapping seems to be required in setups using the IPA driver,
e.g. as seen in the mmdata_port_cfg() method of the modem-data-manager
tool provided by the CodeAurora project under the Linux Foundation:
https://source.codeaurora.org/quic/dataservices/modem-data-manager
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 1 | ||||
-rw-r--r-- | data/qmi-service-dpm.json | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 7a14f5b8..48e9e008 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -20,6 +20,7 @@ EXTRA_DIST = \ qmi-service-gms.json \ qmi-service-dsd.json \ qmi-service-sar.json \ + qmi-service-dpm.json \ qmi-collection-minimal.json \ qmi-collection-basic.json \ $(NULL) diff --git a/data/qmi-service-dpm.json b/data/qmi-service-dpm.json new file mode 100644 index 00000000..b0b35766 --- /dev/null +++ b/data/qmi-service-dpm.json @@ -0,0 +1,74 @@ +[ + // ********************************************************************************* + { "name" : "DPM", + "type" : "Service" }, + + // ********************************************************************************* + { "name" : "QMI Client DPM", + "type" : "Client", + "since" : "1.30" }, + + // ********************************************************************************* + { "name" : "QMI Message DPM", + "type" : "Message-ID-Enum" }, + + // ********************************************************************************* + { "name" : "Open Port", + "type" : "Message", + "service" : "DPM", + "id" : "0x0020", + "since" : "1.30", + "input" : [ { "name" : "Control Ports", + "id" : "0x10", + "type" : "TLV", + "since" : "1.30", + "format" : "array", + "array-element" : { "name" : "Element", + "format" : "struct", + "contents" : [ { "name" : "Port Name", + "format" : "string" }, + { "name" : "Endpoint Type", + "format" : "guint32", + "public-format" : "QmiDataEndpointType" }, + { "name" : "Interface Number", + "format" : "guint32" } ] } }, + { "name" : "Hardware Data Ports", + "id" : "0x11", + "type" : "TLV", + "since" : "1.30", + "format" : "array", + "array-element" : { "name" : "Element", + "format" : "struct", + "contents" : [ { "name" : "Endpoint Type", + "format" : "guint32", + "public-format" : "QmiDataEndpointType" }, + { "name" : "Interface Number", + "format" : "guint32" }, + { "name" : "RX Endpoint Number", + "format" : "guint32" }, + { "name" : "TX Endpoint Number", + "format" : "guint32" } ] } }, + { "name" : "Software Data Ports", + "id" : "0x12", + "type" : "TLV", + "since" : "1.30", + "format" : "array", + "array-element" : { "name" : "Element", + "format" : "struct", + "contents" : [ { "name" : "Endpoint Type", + "format" : "guint32", + "public-format" : "QmiDataEndpointType" }, + { "name" : "Interface Number", + "format" : "guint32" }, + { "name" : "Port Name", + "format" : "string" } ] } } ], + "output" : [ { "common-ref" : "Operation Result" } ] }, + + // ********************************************************************************* + { "name" : "Close Port", + "type" : "Message", + "service" : "DPM", + "id" : "0x0021", + "since" : "1.30", + "output" : [ { "common-ref" : "Operation Result" } ] } +] |