123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704 |
- /*
- * ID: 1
- * Command: Device Caps
- */
- #define MBIM_CMD_BASIC_CONNECT_DEVICE_CAPS 1
- struct mbim_basic_connect_device_caps_r {
- /* enum MbimDeviceType */
- uint32_t devicetype;
- /* enum MbimCellularClass */
- uint32_t cellularclass;
- /* enum MbimVoiceClass */
- uint32_t voiceclass;
- /* enum MbimSimClass */
- uint32_t simclass;
- /* enum MbimDataClass */
- uint32_t dataclass;
- /* enum MbimSmsCaps */
- uint32_t smscaps;
- /* enum MbimCtrlCaps */
- uint32_t controlcaps;
- uint32_t maxsessions;
- struct mbim_string customdataclass;
- struct mbim_string deviceid;
- struct mbim_string firmwareinfo;
- struct mbim_string hardwareinfo;
- } __attribute__((packed));
- /*
- * ID: 2
- * Command: Subscriber Ready Status
- */
- #define MBIM_CMD_BASIC_CONNECT_SUBSCRIBER_READY_STATUS 2
- struct mbim_basic_connect_subscriber_ready_status_r {
- /* enum MbimSubscriberReadyState */
- uint32_t readystate;
- struct mbim_string subscriberid;
- struct mbim_string simiccid;
- /* enum MbimReadyInfoFlag */
- uint32_t readyinfo;
- uint32_t telephonenumberscount;
- /* array type: string-array */
- uint32_t telephonenumbers;
- } __attribute__((packed));
- struct mbim_basic_connect_subscriber_ready_status_n {
- /* enum MbimSubscriberReadyState */
- uint32_t readystate;
- struct mbim_string subscriberid;
- struct mbim_string simiccid;
- /* enum MbimReadyInfoFlag */
- uint32_t readyinfo;
- uint32_t telephonenumberscount;
- /* array type: string-array */
- uint32_t telephonenumbers;
- } __attribute__((packed));
- /*
- * ID: 3
- * Command: Radio State
- */
- #define MBIM_CMD_BASIC_CONNECT_RADIO_STATE 3
- struct mbim_basic_connect_radio_state_r {
- /* enum MbimRadioSwitchState */
- uint32_t hwradiostate;
- /* enum MbimRadioSwitchState */
- uint32_t swradiostate;
- } __attribute__((packed));
- struct mbim_basic_connect_radio_state_s {
- /* enum MbimRadioSwitchState */
- uint32_t radiostate;
- } __attribute__((packed));
- struct mbim_basic_connect_radio_state_n {
- /* enum MbimRadioSwitchState */
- uint32_t hwradiostate;
- /* enum MbimRadioSwitchState */
- uint32_t swradiostate;
- } __attribute__((packed));
- /*
- * ID: 4
- * Command: Pin
- */
- #define MBIM_CMD_BASIC_CONNECT_PIN 4
- struct mbim_basic_connect_pin_r {
- /* enum MbimPinType */
- uint32_t pintype;
- /* enum MbimPinState */
- uint32_t pinstate;
- uint32_t remainingattempts;
- } __attribute__((packed));
- struct mbim_basic_connect_pin_s {
- /* enum MbimPinType */
- uint32_t pintype;
- /* enum MbimPinOperation */
- uint32_t pinoperation;
- struct mbim_string pin;
- struct mbim_string newpin;
- } __attribute__((packed));
- struct mbimpindesc {
- /* enum MbimPinMode */
- uint32_t pinmode;
- /* enum MbimPinFormat */
- uint32_t pinformat;
- uint32_t pinlengthmin;
- uint32_t pinlengthmax;
- } __attribute__((packed));
- /*
- * ID: 5
- * Command: Pin List
- */
- #define MBIM_CMD_BASIC_CONNECT_PIN_LIST 5
- struct mbim_basic_connect_pin_list_r {
- struct mbimpindesc pindescpin1;
- struct mbimpindesc pindescpin2;
- struct mbimpindesc pindescdevicesimpin;
- struct mbimpindesc pindescdevicefirstsimpin;
- struct mbimpindesc pindescnetworkpin;
- struct mbimpindesc pindescnetworksubsetpin;
- struct mbimpindesc pindescserviceproviderpin;
- struct mbimpindesc pindesccorporatepin;
- struct mbimpindesc pindescsubsidylock;
- struct mbimpindesc pindesccustom;
- } __attribute__((packed));
- struct mbimprovider {
- struct mbim_string providerid;
- /* enum MbimProviderState */
- uint32_t providerstate;
- struct mbim_string providername;
- /* enum MbimCellularClass */
- uint32_t cellularclass;
- uint32_t rssi;
- uint32_t errorrate;
- } __attribute__((packed));
- /*
- * ID: 6
- * Command: Home Provider
- */
- #define MBIM_CMD_BASIC_CONNECT_HOME_PROVIDER 6
- struct mbim_basic_connect_home_provider_r {
- struct mbimprovider provider;
- } __attribute__((packed));
- struct mbim_basic_connect_home_provider_s {
- struct mbimprovider provider;
- } __attribute__((packed));
- /*
- * ID: 7
- * Command: Preferred Providers
- */
- #define MBIM_CMD_BASIC_CONNECT_PREFERRED_PROVIDERS 7
- struct mbim_basic_connect_preferred_providers_r {
- uint32_t providerscount;
- /* array type: ref-struct-array */
- uint32_t providers;
- } __attribute__((packed));
- struct mbim_basic_connect_preferred_providers_s {
- uint32_t providerscount;
- /* array type: ref-struct-array */
- uint32_t providers;
- } __attribute__((packed));
- struct mbim_basic_connect_preferred_providers_n {
- uint32_t providerscount;
- /* array type: ref-struct-array */
- uint32_t providers;
- } __attribute__((packed));
- /*
- * ID: 8
- * Command: Visible Providers
- */
- #define MBIM_CMD_BASIC_CONNECT_VISIBLE_PROVIDERS 8
- struct mbim_basic_connect_visible_providers_q {
- /* enum MbimVisibleProvidersAction */
- uint32_t action;
- } __attribute__((packed));
- struct mbim_basic_connect_visible_providers_r {
- uint32_t providerscount;
- /* array type: ref-struct-array */
- uint32_t providers;
- } __attribute__((packed));
- /*
- * ID: 9
- * Command: Register State
- */
- #define MBIM_CMD_BASIC_CONNECT_REGISTER_STATE 9
- struct mbim_basic_connect_register_state_r {
- /* enum MbimNwError */
- uint32_t nwerror;
- /* enum MbimRegisterState */
- uint32_t registerstate;
- /* enum MbimRegisterMode */
- uint32_t registermode;
- /* enum MbimDataClass */
- uint32_t availabledataclasses;
- /* enum MbimCellularClass */
- uint32_t currentcellularclass;
- struct mbim_string providerid;
- struct mbim_string providername;
- struct mbim_string roamingtext;
- /* enum MbimRegistrationFlag */
- uint32_t registrationflag;
- } __attribute__((packed));
- struct mbim_basic_connect_register_state_s {
- struct mbim_string providerid;
- /* enum MbimRegisterAction */
- uint32_t registeraction;
- /* enum MbimDataClass */
- uint32_t dataclass;
- } __attribute__((packed));
- struct mbim_basic_connect_register_state_n {
- /* enum MbimNwError */
- uint32_t nwerror;
- /* enum MbimRegisterState */
- uint32_t registerstate;
- /* enum MbimRegisterMode */
- uint32_t registermode;
- /* enum MbimDataClass */
- uint32_t availabledataclasses;
- /* enum MbimCellularClass */
- uint32_t currentcellularclass;
- struct mbim_string providerid;
- struct mbim_string providername;
- struct mbim_string roamingtext;
- /* enum MbimRegistrationFlag */
- uint32_t registrationflag;
- } __attribute__((packed));
- /*
- * ID: 10
- * Command: Packet Service
- */
- #define MBIM_CMD_BASIC_CONNECT_PACKET_SERVICE 10
- struct mbim_basic_connect_packet_service_r {
- uint32_t nwerror;
- /* enum MbimPacketServiceState */
- uint32_t packetservicestate;
- /* enum MbimDataClass */
- uint32_t highestavailabledataclass;
- uint64_t uplinkspeed;
- uint64_t downlinkspeed;
- } __attribute__((packed));
- struct mbim_basic_connect_packet_service_s {
- /* enum MbimPacketServiceAction */
- uint32_t packetserviceaction;
- } __attribute__((packed));
- struct mbim_basic_connect_packet_service_n {
- uint32_t nwerror;
- /* enum MbimPacketServiceState */
- uint32_t packetservicestate;
- /* enum MbimDataClass */
- uint32_t highestavailabledataclass;
- uint64_t uplinkspeed;
- uint64_t downlinkspeed;
- } __attribute__((packed));
- /*
- * ID: 11
- * Command: Signal State
- */
- #define MBIM_CMD_BASIC_CONNECT_SIGNAL_STATE 11
- struct mbim_basic_connect_signal_state_r {
- uint32_t rssi;
- uint32_t errorrate;
- uint32_t signalstrengthinterval;
- uint32_t rssithreshold;
- uint32_t errorratethreshold;
- } __attribute__((packed));
- struct mbim_basic_connect_signal_state_s {
- uint32_t signalstrengthinterval;
- uint32_t rssithreshold;
- uint32_t errorratethreshold;
- } __attribute__((packed));
- struct mbim_basic_connect_signal_state_n {
- uint32_t rssi;
- uint32_t errorrate;
- uint32_t signalstrengthinterval;
- uint32_t rssithreshold;
- uint32_t errorratethreshold;
- } __attribute__((packed));
- /*
- * ID: 12
- * Command: Connect
- */
- #define MBIM_CMD_BASIC_CONNECT_CONNECT 12
- struct mbim_basic_connect_connect_q {
- uint32_t sessionid;
- /* enum MbimActivationState */
- uint32_t activationstate;
- /* enum MbimVoiceCallState */
- uint32_t voicecallstate;
- /* enum MbimContextIpType */
- uint32_t iptype;
- uint8_t contexttype[16];
- uint32_t nwerror;
- } __attribute__((packed));
- struct mbim_basic_connect_connect_r {
- uint32_t sessionid;
- /* enum MbimActivationState */
- uint32_t activationstate;
- /* enum MbimVoiceCallState */
- uint32_t voicecallstate;
- /* enum MbimContextIpType */
- uint32_t iptype;
- uint8_t contexttype[16];
- uint32_t nwerror;
- } __attribute__((packed));
- struct mbim_basic_connect_connect_s {
- uint32_t sessionid;
- /* enum MbimActivationCommand */
- uint32_t activationcommand;
- struct mbim_string accessstring;
- struct mbim_string username;
- struct mbim_string password;
- /* enum MbimCompression */
- uint32_t compression;
- /* enum MbimAuthProtocol */
- uint32_t authprotocol;
- /* enum MbimContextIpType */
- uint32_t iptype;
- uint8_t contexttype[16];
- } __attribute__((packed));
- struct mbim_basic_connect_connect_n {
- uint32_t sessionid;
- /* enum MbimActivationState */
- uint32_t activationstate;
- /* enum MbimVoiceCallState */
- uint32_t voicecallstate;
- /* enum MbimContextIpType */
- uint32_t iptype;
- uint8_t contexttype[16];
- uint32_t nwerror;
- } __attribute__((packed));
- struct mbimprovisionedcontextelement {
- uint32_t contextid;
- uint8_t contexttype[16];
- struct mbim_string accessstring;
- struct mbim_string username;
- struct mbim_string password;
- /* enum MbimCompression */
- uint32_t compression;
- /* enum MbimAuthProtocol */
- uint32_t authprotocol;
- } __attribute__((packed));
- /*
- * ID: 13
- * Command: Provisioned Contexts
- */
- #define MBIM_CMD_BASIC_CONNECT_PROVISIONED_CONTEXTS 13
- struct mbim_basic_connect_provisioned_contexts_r {
- uint32_t provisionedcontextscount;
- /* array type: ref-struct-array */
- uint32_t provisionedcontexts;
- } __attribute__((packed));
- struct mbim_basic_connect_provisioned_contexts_s {
- uint32_t contextid;
- uint8_t contexttype[16];
- struct mbim_string accessstring;
- struct mbim_string username;
- struct mbim_string password;
- /* enum MbimCompression */
- uint32_t compression;
- /* enum MbimAuthProtocol */
- uint32_t authprotocol;
- struct mbim_string providerid;
- } __attribute__((packed));
- struct mbim_basic_connect_provisioned_contexts_n {
- uint32_t provisionedcontextscount;
- /* array type: ref-struct-array */
- uint32_t provisionedcontexts;
- } __attribute__((packed));
- /*
- * ID: 14
- * Command: Service Activation
- */
- #define MBIM_CMD_BASIC_CONNECT_SERVICE_ACTIVATION 14
- struct mbim_basic_connect_service_activation_r {
- /* enum MbimNwError */
- uint32_t nwerror;
- /* array type: unsized-byte-array */
- uint32_t buffer;
- } __attribute__((packed));
- struct mbim_basic_connect_service_activation_s {
- /* array type: unsized-byte-array */
- uint32_t buffer;
- } __attribute__((packed));
- struct mbimipv4element {
- uint32_t onlinkprefixlength;
- uint8_t ipv4address[4];
- } __attribute__((packed));
- struct mbimipv6element {
- uint32_t onlinkprefixlength;
- uint8_t ipv6address[16];
- } __attribute__((packed));
- /*
- * ID: 15
- * Command: IP Configuration
- */
- #define MBIM_CMD_BASIC_CONNECT_IP_CONFIGURATION 15
- struct mbim_basic_connect_ip_configuration_q {
- uint32_t sessionid;
- /* enum MbimIPConfigurationAvailableFlag */
- uint32_t ipv4configurationavailable;
- /* enum MbimIPConfigurationAvailableFlag */
- uint32_t ipv6configurationavailable;
- uint32_t ipv4addresscount;
- /* struct mbimipv4element */
- uint32_t ipv4address;
- uint32_t ipv6addresscount;
- /* struct mbimipv6element */
- uint32_t ipv6address;
- /* array type: ref-ipv4 */
- uint32_t ipv4gateway;
- /* array type: ref-ipv6 */
- uint32_t ipv6gateway;
- uint32_t ipv4dnsservercount;
- /* array type: ipv4-array */
- uint32_t ipv4dnsserver;
- uint32_t ipv6dnsservercount;
- /* array type: ipv6-array */
- uint32_t ipv6dnsserver;
- uint32_t ipv4mtu;
- uint32_t ipv6mtu;
- } __attribute__((packed));
- struct mbim_basic_connect_ip_configuration_r {
- uint32_t sessionid;
- /* enum MbimIPConfigurationAvailableFlag */
- uint32_t ipv4configurationavailable;
- /* enum MbimIPConfigurationAvailableFlag */
- uint32_t ipv6configurationavailable;
- uint32_t ipv4addresscount;
- /* struct mbimipv4element */
- uint32_t ipv4address;
- uint32_t ipv6addresscount;
- /* struct mbimipv6element */
- uint32_t ipv6address;
- /* array type: ref-ipv4 */
- uint32_t ipv4gateway;
- /* array type: ref-ipv6 */
- uint32_t ipv6gateway;
- uint32_t ipv4dnsservercount;
- /* array type: ipv4-array */
- uint32_t ipv4dnsserver;
- uint32_t ipv6dnsservercount;
- /* array type: ipv6-array */
- uint32_t ipv6dnsserver;
- uint32_t ipv4mtu;
- uint32_t ipv6mtu;
- } __attribute__((packed));
- struct mbim_basic_connect_ip_configuration_n {
- uint32_t sessionid;
- /* enum MbimIPConfigurationAvailableFlag */
- uint32_t ipv4configurationavailable;
- /* enum MbimIPConfigurationAvailableFlag */
- uint32_t ipv6configurationavailable;
- uint32_t ipv4addresscount;
- /* struct mbimipv4element */
- uint32_t ipv4address;
- uint32_t ipv6addresscount;
- /* struct mbimipv6element */
- uint32_t ipv6address;
- /* array type: ref-ipv4 */
- uint32_t ipv4gateway;
- /* array type: ref-ipv6 */
- uint32_t ipv6gateway;
- uint32_t ipv4dnsservercount;
- /* array type: ipv4-array */
- uint32_t ipv4dnsserver;
- uint32_t ipv6dnsservercount;
- /* array type: ipv6-array */
- uint32_t ipv6dnsserver;
- uint32_t ipv4mtu;
- uint32_t ipv6mtu;
- } __attribute__((packed));
- struct mbimdeviceserviceelement {
- uint8_t deviceserviceid[16];
- uint32_t dsspayload;
- uint32_t maxdssinstances;
- uint32_t cidscount;
- /* array type: guint32-array */
- uint32_t cids;
- } __attribute__((packed));
- /*
- * ID: 16
- * Command: Device Services
- */
- #define MBIM_CMD_BASIC_CONNECT_DEVICE_SERVICES 16
- struct mbim_basic_connect_device_services_r {
- uint32_t deviceservicescount;
- uint32_t maxdsssessions;
- /* array type: ref-struct-array */
- uint32_t deviceservices;
- } __attribute__((packed));
- struct mbimevententry {
- uint8_t deviceserviceid[16];
- uint32_t cidscount;
- /* array type: guint32-array */
- uint32_t cids;
- } __attribute__((packed));
- /*
- * ID: 19
- * Command: Device Service Subscribe List
- */
- #define MBIM_CMD_BASIC_CONNECT_DEVICE_SERVICE_SUBSCRIBE_LIST 19
- struct mbim_basic_connect_device_service_subscribe_list_r {
- uint32_t eventscount;
- /* array type: ref-struct-array */
- uint32_t events;
- } __attribute__((packed));
- struct mbim_basic_connect_device_service_subscribe_list_s {
- uint32_t eventscount;
- /* array type: ref-struct-array */
- uint32_t events;
- } __attribute__((packed));
- /*
- * ID: 20
- * Command: Packet Statistics
- */
- #define MBIM_CMD_BASIC_CONNECT_PACKET_STATISTICS 20
- struct mbim_basic_connect_packet_statistics_r {
- uint32_t indiscards;
- uint32_t inerrors;
- uint64_t inoctets;
- uint64_t inpackets;
- uint64_t outoctets;
- uint64_t outpackets;
- uint32_t outerrors;
- uint32_t outdiscards;
- } __attribute__((packed));
- /*
- * ID: 21
- * Command: Network Idle Hint
- */
- #define MBIM_CMD_BASIC_CONNECT_NETWORK_IDLE_HINT 21
- struct mbim_basic_connect_network_idle_hint_r {
- /* enum MbimNetworkIdleHintState */
- uint32_t state;
- } __attribute__((packed));
- struct mbim_basic_connect_network_idle_hint_s {
- /* enum MbimNetworkIdleHintState */
- uint32_t state;
- } __attribute__((packed));
- /*
- * ID: 22
- * Command: Emergency Mode
- */
- #define MBIM_CMD_BASIC_CONNECT_EMERGENCY_MODE 22
- struct mbim_basic_connect_emergency_mode_r {
- /* enum MbimEmergencyModeState */
- uint32_t state;
- } __attribute__((packed));
- struct mbim_basic_connect_emergency_mode_s {
- /* enum MbimEmergencyModeState */
- uint32_t state;
- } __attribute__((packed));
- struct mbim_basic_connect_emergency_mode_n {
- /* enum MbimEmergencyModeState */
- uint32_t state;
- } __attribute__((packed));
- struct mbimpacketfilter {
- uint32_t filtersize;
- /* array type: ref-byte-array */
- uint32_t packetfilter;
- /* array type: ref-byte-array */
- uint32_t packetmask;
- } __attribute__((packed));
- /*
- * ID: 23
- * Command: IP Packet Filters
- */
- #define MBIM_CMD_BASIC_CONNECT_IP_PACKET_FILTERS 23
- struct mbim_basic_connect_ip_packet_filters_q {
- uint32_t sessionid;
- uint32_t packetfilterscount;
- /* array type: ref-struct-array */
- uint32_t packetfilters;
- } __attribute__((packed));
- struct mbim_basic_connect_ip_packet_filters_r {
- uint32_t sessionid;
- uint32_t packetfilterscount;
- /* array type: ref-struct-array */
- uint32_t packetfilters;
- } __attribute__((packed));
- struct mbim_basic_connect_ip_packet_filters_s {
- uint32_t sessionid;
- uint32_t packetfilterscount;
- /* array type: ref-struct-array */
- uint32_t packetfilters;
- } __attribute__((packed));
- /*
- * ID: 24
- * Command: Multicarrier Providers
- */
- #define MBIM_CMD_BASIC_CONNECT_MULTICARRIER_PROVIDERS 24
- struct mbim_basic_connect_multicarrier_providers_r {
- uint32_t providerscount;
- /* array type: ref-struct-array */
- uint32_t providers;
- } __attribute__((packed));
- struct mbim_basic_connect_multicarrier_providers_s {
- uint32_t providerscount;
- /* array type: ref-struct-array */
- uint32_t providers;
- } __attribute__((packed));
- struct mbim_basic_connect_multicarrier_providers_n {
- uint32_t providerscount;
- /* array type: ref-struct-array */
- uint32_t providers;
- } __attribute__((packed));
|