require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_MBIM_H_)) {
    eval 'sub _MBIM_H_ () {1;}' unless defined(&_MBIM_H_);
    eval 'sub UDESCSUB_MBIM () {27;}' unless defined(&UDESCSUB_MBIM);
    eval 'sub MBIM_INTERFACE_ALTSETTING () {1;}' unless defined(&MBIM_INTERFACE_ALTSETTING);
    eval 'sub MBIM_RESET_FUNCTION () {0x5;}' unless defined(&MBIM_RESET_FUNCTION);
    eval 'sub MBIM_REGSTATE_UNKNOWN () {0;}' unless defined(&MBIM_REGSTATE_UNKNOWN);
    eval 'sub MBIM_REGSTATE_DEREGISTERED () {1;}' unless defined(&MBIM_REGSTATE_DEREGISTERED);
    eval 'sub MBIM_REGSTATE_SEARCHING () {2;}' unless defined(&MBIM_REGSTATE_SEARCHING);
    eval 'sub MBIM_REGSTATE_HOME () {3;}' unless defined(&MBIM_REGSTATE_HOME);
    eval 'sub MBIM_REGSTATE_ROAMING () {4;}' unless defined(&MBIM_REGSTATE_ROAMING);
    eval 'sub MBIM_REGSTATE_PARTNER () {5;}' unless defined(&MBIM_REGSTATE_PARTNER);
    eval 'sub MBIM_REGSTATE_DENIED () {6;}' unless defined(&MBIM_REGSTATE_DENIED);
    eval 'sub MBIM_DATACLASS_NONE () {0x;}' unless defined(&MBIM_DATACLASS_NONE);
    eval 'sub MBIM_DATACLASS_GPRS () {0x1;}' unless defined(&MBIM_DATACLASS_GPRS);
    eval 'sub MBIM_DATACLASS_EDGE () {0x2;}' unless defined(&MBIM_DATACLASS_EDGE);
    eval 'sub MBIM_DATACLASS_UMTS () {0x4;}' unless defined(&MBIM_DATACLASS_UMTS);
    eval 'sub MBIM_DATACLASS_HSDPA () {0x8;}' unless defined(&MBIM_DATACLASS_HSDPA);
    eval 'sub MBIM_DATACLASS_HSUPA () {0x10;}' unless defined(&MBIM_DATACLASS_HSUPA);
    eval 'sub MBIM_DATACLASS_LTE () {0x20;}' unless defined(&MBIM_DATACLASS_LTE);
    eval 'sub MBIM_DATACLASS_1XRTT () {0x10000;}' unless defined(&MBIM_DATACLASS_1XRTT);
    eval 'sub MBIM_DATACLASS_1XEVDO () {0x20000;}' unless defined(&MBIM_DATACLASS_1XEVDO);
    eval 'sub MBIM_DATACLASS_1XEVDO_REV_A () {0x40000;}' unless defined(&MBIM_DATACLASS_1XEVDO_REV_A);
    eval 'sub MBIM_DATACLASS_1XEVDV () {0x80000;}' unless defined(&MBIM_DATACLASS_1XEVDV);
    eval 'sub MBIM_DATACLASS_3XRTT () {0x100000;}' unless defined(&MBIM_DATACLASS_3XRTT);
    eval 'sub MBIM_DATACLASS_1XEVDO_REV_B () {0x200000;}' unless defined(&MBIM_DATACLASS_1XEVDO_REV_B);
    eval 'sub MBIM_DATACLASS_UMB () {0x400000;}' unless defined(&MBIM_DATACLASS_UMB);
    eval 'sub MBIM_DATACLASS_CUSTOM () {0x80000000;}' unless defined(&MBIM_DATACLASS_CUSTOM);
    eval 'sub MBIM_CELLCLASS_GSM () {0x1;}' unless defined(&MBIM_CELLCLASS_GSM);
    eval 'sub MBIM_CELLCLASS_CDMA () {0x2;}' unless defined(&MBIM_CELLCLASS_CDMA);
    eval 'sub MBIM_UUID_LEN () {16;}' unless defined(&MBIM_UUID_LEN);
    eval 'sub MBIM_UUID_BASIC_CONNECT () {{ 0xa2, 0x89, 0xcc, 0x33, 0xbc, 0xbb, 0x8b, 0x4f, 0xb6, 0xb0, 0x13, 0x3e, 0xc2, 0xaa, 0xe6, 0xdf };}' unless defined(&MBIM_UUID_BASIC_CONNECT);
    eval 'sub MBIM_UUID_CONTEXT_INTERNET () {{ 0x7e, 0x5e, 0x2a, 0x7e, 0x4e, 0x6f, 0x72, 0x72, 0x73, 0x6b, 0x65, 0x6e, 0x7e, 0x5e, 0x2a, 0x7e };}' unless defined(&MBIM_UUID_CONTEXT_INTERNET);
    eval 'sub MBIM_UUID_CONTEXT_VPN () {{ 0x9b, 0x9f, 0x7b, 0xbe, 0x89, 0x52, 0x44, 0xb7, 0x83, 0xac, 0xca, 0x41, 0x31, 0x8d, 0xf7, 0xa0 };}' unless defined(&MBIM_UUID_CONTEXT_VPN);
    eval 'sub MBIM_UUID_QMI_MBIM () {{ 0xd1, 0xa3, 0xb, 0xc2, 0xf9, 0x7a, 0x6e, 0x43, 0xbf, 0x65, 0xc7, 0xe2, 0x4f, 0xb0, 0xf0, 0xd3 };}' unless defined(&MBIM_UUID_QMI_MBIM);
    eval 'sub MBIM_CTRLMSG_MINLEN () {64;}' unless defined(&MBIM_CTRLMSG_MINLEN);
    eval 'sub MBIM_CTRLMSG_MAXLEN () {(4* 1204);}' unless defined(&MBIM_CTRLMSG_MAXLEN);
    eval 'sub MBIM_MAXSEGSZ_MINVAL () {(2* 1024);}' unless defined(&MBIM_MAXSEGSZ_MINVAL);
    eval 'sub MBIM_OPEN_MSG () {1;}' unless defined(&MBIM_OPEN_MSG);
    eval 'sub MBIM_CLOSE_MSG () {2;}' unless defined(&MBIM_CLOSE_MSG);
    eval 'sub MBIM_COMMAND_MSG () {3;}' unless defined(&MBIM_COMMAND_MSG);
    eval 'sub MBIM_HOST_ERROR_MSG () {4;}' unless defined(&MBIM_HOST_ERROR_MSG);
    eval 'sub MBIM_OPEN_DONE () {0x80000001;}' unless defined(&MBIM_OPEN_DONE);
    eval 'sub MBIM_CLOSE_DONE () {0x80000002;}' unless defined(&MBIM_CLOSE_DONE);
    eval 'sub MBIM_COMMAND_DONE () {0x80000003;}' unless defined(&MBIM_COMMAND_DONE);
    eval 'sub MBIM_FUNCTION_ERROR_MSG () {0x80000004;}' unless defined(&MBIM_FUNCTION_ERROR_MSG);
    eval 'sub MBIM_INDICATE_STATUS_MSG () {0x80000007;}' unless defined(&MBIM_INDICATE_STATUS_MSG);
    eval 'sub MBIM_STATUS_SUCCESS () {0;}' unless defined(&MBIM_STATUS_SUCCESS);
    eval 'sub MBIM_STATUS_BUSY () {1;}' unless defined(&MBIM_STATUS_BUSY);
    eval 'sub MBIM_STATUS_FAILURE () {2;}' unless defined(&MBIM_STATUS_FAILURE);
    eval 'sub MBIM_STATUS_SIM_NOT_INSERTED () {3;}' unless defined(&MBIM_STATUS_SIM_NOT_INSERTED);
    eval 'sub MBIM_STATUS_BAD_SIM () {4;}' unless defined(&MBIM_STATUS_BAD_SIM);
    eval 'sub MBIM_STATUS_PIN_REQUIRED () {5;}' unless defined(&MBIM_STATUS_PIN_REQUIRED);
    eval 'sub MBIM_STATUS_PIN_DISABLED () {6;}' unless defined(&MBIM_STATUS_PIN_DISABLED);
    eval 'sub MBIM_STATUS_NOT_REGISTERED () {7;}' unless defined(&MBIM_STATUS_NOT_REGISTERED);
    eval 'sub MBIM_STATUS_PROVIDERS_NOT_FOUND () {8;}' unless defined(&MBIM_STATUS_PROVIDERS_NOT_FOUND);
    eval 'sub MBIM_STATUS_NO_DEVICE_SUPPORT () {9;}' unless defined(&MBIM_STATUS_NO_DEVICE_SUPPORT);
    eval 'sub MBIM_STATUS_PROVIDER_NOT_VISIBLE () {10;}' unless defined(&MBIM_STATUS_PROVIDER_NOT_VISIBLE);
    eval 'sub MBIM_STATUS_DATA_CLASS_NOT_AVAILABLE () {11;}' unless defined(&MBIM_STATUS_DATA_CLASS_NOT_AVAILABLE);
    eval 'sub MBIM_STATUS_PACKET_SERVICE_DETACHED () {12;}' unless defined(&MBIM_STATUS_PACKET_SERVICE_DETACHED);
    eval 'sub MBIM_STATUS_MAX_ACTIVATED_CONTEXTS () {13;}' unless defined(&MBIM_STATUS_MAX_ACTIVATED_CONTEXTS);
    eval 'sub MBIM_STATUS_NOT_INITIALIZED () {14;}' unless defined(&MBIM_STATUS_NOT_INITIALIZED);
    eval 'sub MBIM_STATUS_VOICE_CALL_IN_PROGRESS () {15;}' unless defined(&MBIM_STATUS_VOICE_CALL_IN_PROGRESS);
    eval 'sub MBIM_STATUS_CONTEXT_NOT_ACTIVATED () {16;}' unless defined(&MBIM_STATUS_CONTEXT_NOT_ACTIVATED);
    eval 'sub MBIM_STATUS_SERVICE_NOT_ACTIVATED () {17;}' unless defined(&MBIM_STATUS_SERVICE_NOT_ACTIVATED);
    eval 'sub MBIM_STATUS_INVALID_ACCESS_STRING () {18;}' unless defined(&MBIM_STATUS_INVALID_ACCESS_STRING);
    eval 'sub MBIM_STATUS_INVALID_USER_NAME_PWD () {19;}' unless defined(&MBIM_STATUS_INVALID_USER_NAME_PWD);
    eval 'sub MBIM_STATUS_RADIO_POWER_OFF () {20;}' unless defined(&MBIM_STATUS_RADIO_POWER_OFF);
    eval 'sub MBIM_STATUS_INVALID_PARAMETERS () {21;}' unless defined(&MBIM_STATUS_INVALID_PARAMETERS);
    eval 'sub MBIM_STATUS_READ_FAILURE () {22;}' unless defined(&MBIM_STATUS_READ_FAILURE);
    eval 'sub MBIM_STATUS_WRITE_FAILURE () {23;}' unless defined(&MBIM_STATUS_WRITE_FAILURE);
    eval 'sub MBIM_STATUS_NO_PHONEBOOK () {25;}' unless defined(&MBIM_STATUS_NO_PHONEBOOK);
    eval 'sub MBIM_STATUS_PARAMETER_TOO_LONG () {26;}' unless defined(&MBIM_STATUS_PARAMETER_TOO_LONG);
    eval 'sub MBIM_STATUS_STK_BUSY () {27;}' unless defined(&MBIM_STATUS_STK_BUSY);
    eval 'sub MBIM_STATUS_OPERATION_NOT_ALLOWED () {28;}' unless defined(&MBIM_STATUS_OPERATION_NOT_ALLOWED);
    eval 'sub MBIM_STATUS_MEMORY_FAILURE () {29;}' unless defined(&MBIM_STATUS_MEMORY_FAILURE);
    eval 'sub MBIM_STATUS_INVALID_MEMORY_INDEX () {30;}' unless defined(&MBIM_STATUS_INVALID_MEMORY_INDEX);
    eval 'sub MBIM_STATUS_MEMORY_FULL () {31;}' unless defined(&MBIM_STATUS_MEMORY_FULL);
    eval 'sub MBIM_STATUS_FILTER_NOT_SUPPORTED () {32;}' unless defined(&MBIM_STATUS_FILTER_NOT_SUPPORTED);
    eval 'sub MBIM_STATUS_DSS_INSTANCE_LIMIT () {33;}' unless defined(&MBIM_STATUS_DSS_INSTANCE_LIMIT);
    eval 'sub MBIM_STATUS_INVALID_DEVICE_SERVICE_OPERATION () {34;}' unless defined(&MBIM_STATUS_INVALID_DEVICE_SERVICE_OPERATION);
    eval 'sub MBIM_STATUS_AUTH_INCORRECT_AUTN () {35;}' unless defined(&MBIM_STATUS_AUTH_INCORRECT_AUTN);
    eval 'sub MBIM_STATUS_AUTH_SYNC_FAILURE () {36;}' unless defined(&MBIM_STATUS_AUTH_SYNC_FAILURE);
    eval 'sub MBIM_STATUS_AUTH_AMF_NOT_SET () {37;}' unless defined(&MBIM_STATUS_AUTH_AMF_NOT_SET);
    eval 'sub MBIM_STATUS_CONTEXT_NOT_SUPPORTED () {38;}' unless defined(&MBIM_STATUS_CONTEXT_NOT_SUPPORTED);
    eval 'sub MBIM_STATUS_SMS_UNKNOWN_SMSC_ADDRESS () {100;}' unless defined(&MBIM_STATUS_SMS_UNKNOWN_SMSC_ADDRESS);
    eval 'sub MBIM_STATUS_SMS_NETWORK_TIMEOUT () {101;}' unless defined(&MBIM_STATUS_SMS_NETWORK_TIMEOUT);
    eval 'sub MBIM_STATUS_SMS_LANG_NOT_SUPPORTED () {102;}' unless defined(&MBIM_STATUS_SMS_LANG_NOT_SUPPORTED);
    eval 'sub MBIM_STATUS_SMS_ENCODING_NOT_SUPPORTED () {103;}' unless defined(&MBIM_STATUS_SMS_ENCODING_NOT_SUPPORTED);
    eval 'sub MBIM_STATUS_SMS_FORMAT_NOT_SUPPORTED () {104;}' unless defined(&MBIM_STATUS_SMS_FORMAT_NOT_SUPPORTED);
    eval 'sub MBIM_CMDOP_QRY () {0;}' unless defined(&MBIM_CMDOP_QRY);
    eval 'sub MBIM_CMDOP_SET () {1;}' unless defined(&MBIM_CMDOP_SET);
    eval 'sub MBIM_ERROR_TIMEOUT_FRAGMENT () {1;}' unless defined(&MBIM_ERROR_TIMEOUT_FRAGMENT);
    eval 'sub MBIM_ERROR_FRAGMENT_OUT_OF_SEQUENCE () {2;}' unless defined(&MBIM_ERROR_FRAGMENT_OUT_OF_SEQUENCE);
    eval 'sub MBIM_ERROR_LENGTH_MISMATCH () {3;}' unless defined(&MBIM_ERROR_LENGTH_MISMATCH);
    eval 'sub MBIM_ERROR_DUPLICATED_TID () {4;}' unless defined(&MBIM_ERROR_DUPLICATED_TID);
    eval 'sub MBIM_ERROR_NOT_OPENED () {5;}' unless defined(&MBIM_ERROR_NOT_OPENED);
    eval 'sub MBIM_ERROR_UNKNOWN () {6;}' unless defined(&MBIM_ERROR_UNKNOWN);
    eval 'sub MBIM_ERROR_CANCEL () {7;}' unless defined(&MBIM_ERROR_CANCEL);
    eval 'sub MBIM_ERROR_MAX_TRANSFER () {8;}' unless defined(&MBIM_ERROR_MAX_TRANSFER);
    eval 'sub MBIM_CID_DEVICE_CAPS () {1;}' unless defined(&MBIM_CID_DEVICE_CAPS);
    eval 'sub MBIM_CID_SUBSCRIBER_READY_STATUS () {2;}' unless defined(&MBIM_CID_SUBSCRIBER_READY_STATUS);
    eval 'sub MBIM_CID_RADIO_STATE () {3;}' unless defined(&MBIM_CID_RADIO_STATE);
    eval 'sub MBIM_CID_PIN () {4;}' unless defined(&MBIM_CID_PIN);
    eval 'sub MBIM_CID_PIN_LIST () {5;}' unless defined(&MBIM_CID_PIN_LIST);
    eval 'sub MBIM_CID_HOME_PROVIDER () {6;}' unless defined(&MBIM_CID_HOME_PROVIDER);
    eval 'sub MBIM_CID_PREFERRED_PROVIDERS () {7;}' unless defined(&MBIM_CID_PREFERRED_PROVIDERS);
    eval 'sub MBIM_CID_VISIBLE_PROVIDERS () {8;}' unless defined(&MBIM_CID_VISIBLE_PROVIDERS);
    eval 'sub MBIM_CID_REGISTER_STATE () {9;}' unless defined(&MBIM_CID_REGISTER_STATE);
    eval 'sub MBIM_CID_PACKET_SERVICE () {10;}' unless defined(&MBIM_CID_PACKET_SERVICE);
    eval 'sub MBIM_CID_SIGNAL_STATE () {11;}' unless defined(&MBIM_CID_SIGNAL_STATE);
    eval 'sub MBIM_CID_CONNECT () {12;}' unless defined(&MBIM_CID_CONNECT);
    eval 'sub MBIM_CID_PROVISIONED_CONTEXTS () {13;}' unless defined(&MBIM_CID_PROVISIONED_CONTEXTS);
    eval 'sub MBIM_CID_SERVICE_ACTIVATION () {14;}' unless defined(&MBIM_CID_SERVICE_ACTIVATION);
    eval 'sub MBIM_CID_IP_CONFIGURATION () {15;}' unless defined(&MBIM_CID_IP_CONFIGURATION);
    eval 'sub MBIM_CID_DEVICE_SERVICES () {16;}' unless defined(&MBIM_CID_DEVICE_SERVICES);
    eval 'sub MBIM_CID_DEVICE_SERVICE_SUBSCRIBE_LIST () {19;}' unless defined(&MBIM_CID_DEVICE_SERVICE_SUBSCRIBE_LIST);
    eval 'sub MBIM_CID_PACKET_STATISTICS () {20;}' unless defined(&MBIM_CID_PACKET_STATISTICS);
    eval 'sub MBIM_CID_NETWORK_IDLE_HINT () {21;}' unless defined(&MBIM_CID_NETWORK_IDLE_HINT);
    eval 'sub MBIM_CID_EMERGENCY_MODE () {22;}' unless defined(&MBIM_CID_EMERGENCY_MODE);
    eval 'sub MBIM_CID_IP_PACKET_FILTERS () {23;}' unless defined(&MBIM_CID_IP_PACKET_FILTERS);
    eval 'sub MBIM_CID_MULTICARRIER_PROVIDERS () {24;}' unless defined(&MBIM_CID_MULTICARRIER_PROVIDERS);
    eval 'sub MBIM_SIMSTATE_NOTINITIALIZED () {0;}' unless defined(&MBIM_SIMSTATE_NOTINITIALIZED);
    eval 'sub MBIM_SIMSTATE_INITIALIZED () {1;}' unless defined(&MBIM_SIMSTATE_INITIALIZED);
    eval 'sub MBIM_SIMSTATE_NOTINSERTED () {2;}' unless defined(&MBIM_SIMSTATE_NOTINSERTED);
    eval 'sub MBIM_SIMSTATE_BADSIM () {3;}' unless defined(&MBIM_SIMSTATE_BADSIM);
    eval 'sub MBIM_SIMSTATE_FAILURE () {4;}' unless defined(&MBIM_SIMSTATE_FAILURE);
    eval 'sub MBIM_SIMSTATE_NOTACTIVATED () {5;}' unless defined(&MBIM_SIMSTATE_NOTACTIVATED);
    eval 'sub MBIM_SIMSTATE_LOCKED () {6;}' unless defined(&MBIM_SIMSTATE_LOCKED);
    eval 'sub MBIM_SIMUNIQEID_NONE () {0;}' unless defined(&MBIM_SIMUNIQEID_NONE);
    eval 'sub MBIM_SIMUNIQEID_PROTECT () {1;}' unless defined(&MBIM_SIMUNIQEID_PROTECT);
    eval 'sub MBIM_RADIO_STATE_OFF () {0;}' unless defined(&MBIM_RADIO_STATE_OFF);
    eval 'sub MBIM_RADIO_STATE_ON () {1;}' unless defined(&MBIM_RADIO_STATE_ON);
    eval 'sub MBIM_PIN_TYPE_NONE () {0;}' unless defined(&MBIM_PIN_TYPE_NONE);
    eval 'sub MBIM_PIN_TYPE_CUSTOM () {1;}' unless defined(&MBIM_PIN_TYPE_CUSTOM);
    eval 'sub MBIM_PIN_TYPE_PIN1 () {2;}' unless defined(&MBIM_PIN_TYPE_PIN1);
    eval 'sub MBIM_PIN_TYPE_PIN2 () {3;}' unless defined(&MBIM_PIN_TYPE_PIN2);
    eval 'sub MBIM_PIN_TYPE_DEV_SIM_PIN () {4;}' unless defined(&MBIM_PIN_TYPE_DEV_SIM_PIN);
    eval 'sub MBIM_PIN_TYPE_DEV_FIRST_SIM_PIN () {5;}' unless defined(&MBIM_PIN_TYPE_DEV_FIRST_SIM_PIN);
    eval 'sub MBIM_PIN_TYPE_NETWORK_PIN () {6;}' unless defined(&MBIM_PIN_TYPE_NETWORK_PIN);
    eval 'sub MBIM_PIN_TYPE_NETWORK_SUBSET_PIN () {7;}' unless defined(&MBIM_PIN_TYPE_NETWORK_SUBSET_PIN);
    eval 'sub MBIM_PIN_TYPE_SERVICE_PROVIDER_PIN () {8;}' unless defined(&MBIM_PIN_TYPE_SERVICE_PROVIDER_PIN);
    eval 'sub MBIM_PIN_TYPE_CORPORATE_PIN () {9;}' unless defined(&MBIM_PIN_TYPE_CORPORATE_PIN);
    eval 'sub MBIM_PIN_TYPE_SUBSIDY_LOCK () {10;}' unless defined(&MBIM_PIN_TYPE_SUBSIDY_LOCK);
    eval 'sub MBIM_PIN_TYPE_PUK1 () {11;}' unless defined(&MBIM_PIN_TYPE_PUK1);
    eval 'sub MBIM_PIN_TYPE_PUK2 () {12;}' unless defined(&MBIM_PIN_TYPE_PUK2);
    eval 'sub MBIM_PIN_TYPE_DEV_FIRST_SIM_PUK () {13;}' unless defined(&MBIM_PIN_TYPE_DEV_FIRST_SIM_PUK);
    eval 'sub MBIM_PIN_TYPE_NETWORK_PUK () {14;}' unless defined(&MBIM_PIN_TYPE_NETWORK_PUK);
    eval 'sub MBIM_PIN_TYPE_NETWORK_SUBSET_PUK () {15;}' unless defined(&MBIM_PIN_TYPE_NETWORK_SUBSET_PUK);
    eval 'sub MBIM_PIN_TYPE_SERVICE_PROVIDER_PUK () {16;}' unless defined(&MBIM_PIN_TYPE_SERVICE_PROVIDER_PUK);
    eval 'sub MBIM_PIN_TYPE_CORPORATE_PUK () {17;}' unless defined(&MBIM_PIN_TYPE_CORPORATE_PUK);
    eval 'sub MBIM_PIN_OP_ENTER () {0;}' unless defined(&MBIM_PIN_OP_ENTER);
    eval 'sub MBIM_PIN_OP_ENABLE () {1;}' unless defined(&MBIM_PIN_OP_ENABLE);
    eval 'sub MBIM_PIN_OP_DISABLE () {2;}' unless defined(&MBIM_PIN_OP_DISABLE);
    eval 'sub MBIM_PIN_OP_CHANGE () {3;}' unless defined(&MBIM_PIN_OP_CHANGE);
    eval 'sub MBIM_PIN_MAXLEN () {32;}' unless defined(&MBIM_PIN_MAXLEN);
    eval 'sub MBIM_PIN_STATE_UNLOCKED () {0;}' unless defined(&MBIM_PIN_STATE_UNLOCKED);
    eval 'sub MBIM_PIN_STATE_LOCKED () {1;}' unless defined(&MBIM_PIN_STATE_LOCKED);
    eval 'sub MBIM_PINMODE_NOTSUPPORTED () {0;}' unless defined(&MBIM_PINMODE_NOTSUPPORTED);
    eval 'sub MBIM_PINMODE_ENABLED () {1;}' unless defined(&MBIM_PINMODE_ENABLED);
    eval 'sub MBIM_PINMODE_DISABLED () {2;}' unless defined(&MBIM_PINMODE_DISABLED);
    eval 'sub MBIM_PINFORMAT_UNKNOWN () {0;}' unless defined(&MBIM_PINFORMAT_UNKNOWN);
    eval 'sub MBIM_PINFORMAT_NUMERIC () {1;}' unless defined(&MBIM_PINFORMAT_NUMERIC);
    eval 'sub MBIM_PINFORMAT_ALPHANUMERIC () {2;}' unless defined(&MBIM_PINFORMAT_ALPHANUMERIC);
    eval 'sub MBIM_DEVTYPE_UNKNOWN () {0;}' unless defined(&MBIM_DEVTYPE_UNKNOWN);
    eval 'sub MBIM_DEVTYPE_EMBEDDED () {1;}' unless defined(&MBIM_DEVTYPE_EMBEDDED);
    eval 'sub MBIM_DEVTYPE_REMOVABLE () {2;}' unless defined(&MBIM_DEVTYPE_REMOVABLE);
    eval 'sub MBIM_DEVTYPE_REMOTE () {3;}' unless defined(&MBIM_DEVTYPE_REMOTE);
    eval 'sub MBIM_REGACTION_AUTOMATIC () {0;}' unless defined(&MBIM_REGACTION_AUTOMATIC);
    eval 'sub MBIM_REGACTION_MANUAL () {1;}' unless defined(&MBIM_REGACTION_MANUAL);
    eval 'sub MBIM_REGMODE_UNKNOWN () {0;}' unless defined(&MBIM_REGMODE_UNKNOWN);
    eval 'sub MBIM_REGMODE_AUTOMATIC () {1;}' unless defined(&MBIM_REGMODE_AUTOMATIC);
    eval 'sub MBIM_REGMODE_MANUAL () {2;}' unless defined(&MBIM_REGMODE_MANUAL);
    eval 'sub MBIM_REGFLAGS_NONE () {0;}' unless defined(&MBIM_REGFLAGS_NONE);
    eval 'sub MBIM_REGFLAGS_MANUAL_NOT_AVAILABLE () {1;}' unless defined(&MBIM_REGFLAGS_MANUAL_NOT_AVAILABLE);
    eval 'sub MBIM_REGFLAGS_PACKETSERVICE_AUTOATTACH () {2;}' unless defined(&MBIM_REGFLAGS_PACKETSERVICE_AUTOATTACH);
    eval 'sub MBIM_PKTSERVICE_ACTION_ATTACH () {0;}' unless defined(&MBIM_PKTSERVICE_ACTION_ATTACH);
    eval 'sub MBIM_PKTSERVICE_ACTION_DETACH () {1;}' unless defined(&MBIM_PKTSERVICE_ACTION_DETACH);
    eval 'sub MBIM_PKTSERVICE_STATE_UNKNOWN () {0;}' unless defined(&MBIM_PKTSERVICE_STATE_UNKNOWN);
    eval 'sub MBIM_PKTSERVICE_STATE_ATTACHING () {1;}' unless defined(&MBIM_PKTSERVICE_STATE_ATTACHING);
    eval 'sub MBIM_PKTSERVICE_STATE_ATTACHED () {2;}' unless defined(&MBIM_PKTSERVICE_STATE_ATTACHED);
    eval 'sub MBIM_PKTSERVICE_STATE_DETACHING () {3;}' unless defined(&MBIM_PKTSERVICE_STATE_DETACHING);
    eval 'sub MBIM_PKTSERVICE_STATE_DETACHED () {4;}' unless defined(&MBIM_PKTSERVICE_STATE_DETACHED);
    eval 'sub MBIM_CONNECT_DEACTIVATE () {0;}' unless defined(&MBIM_CONNECT_DEACTIVATE);
    eval 'sub MBIM_CONNECT_ACTIVATE () {1;}' unless defined(&MBIM_CONNECT_ACTIVATE);
    eval 'sub MBIM_ACCESS_MAXLEN () {200;}' unless defined(&MBIM_ACCESS_MAXLEN);
    eval 'sub MBIM_USER_MAXLEN () {510;}' unless defined(&MBIM_USER_MAXLEN);
    eval 'sub MBIM_PASSWD_MAXLEN () {510;}' unless defined(&MBIM_PASSWD_MAXLEN);
    eval 'sub MBIM_COMPRESSION_NONE () {0;}' unless defined(&MBIM_COMPRESSION_NONE);
    eval 'sub MBIM_COMPRESSION_ENABLE () {1;}' unless defined(&MBIM_COMPRESSION_ENABLE);
    eval 'sub MBIM_AUTHPROT_NONE () {0;}' unless defined(&MBIM_AUTHPROT_NONE);
    eval 'sub MBIM_AUTHPROT_PAP () {1;}' unless defined(&MBIM_AUTHPROT_PAP);
    eval 'sub MBIM_AUTHPROT_CHAP () {2;}' unless defined(&MBIM_AUTHPROT_CHAP);
    eval 'sub MBIM_AUTHPROT_MSCHAP () {3;}' unless defined(&MBIM_AUTHPROT_MSCHAP);
    eval 'sub MBIM_CONTEXT_IPTYPE_DEFAULT () {0;}' unless defined(&MBIM_CONTEXT_IPTYPE_DEFAULT);
    eval 'sub MBIM_CONTEXT_IPTYPE_IPV4 () {1;}' unless defined(&MBIM_CONTEXT_IPTYPE_IPV4);
    eval 'sub MBIM_CONTEXT_IPTYPE_IPV6 () {2;}' unless defined(&MBIM_CONTEXT_IPTYPE_IPV6);
    eval 'sub MBIM_CONTEXT_IPTYPE_IPV4V6 () {3;}' unless defined(&MBIM_CONTEXT_IPTYPE_IPV4V6);
    eval 'sub MBIM_CONTEXT_IPTYPE_IPV4ANDV6 () {4;}' unless defined(&MBIM_CONTEXT_IPTYPE_IPV4ANDV6);
    eval 'sub MBIM_ACTIVATION_STATE_UNKNOWN () {0;}' unless defined(&MBIM_ACTIVATION_STATE_UNKNOWN);
    eval 'sub MBIM_ACTIVATION_STATE_ACTIVATED () {1;}' unless defined(&MBIM_ACTIVATION_STATE_ACTIVATED);
    eval 'sub MBIM_ACTIVATION_STATE_ACTIVATING () {2;}' unless defined(&MBIM_ACTIVATION_STATE_ACTIVATING);
    eval 'sub MBIM_ACTIVATION_STATE_DEACTIVATED () {3;}' unless defined(&MBIM_ACTIVATION_STATE_DEACTIVATED);
    eval 'sub MBIM_ACTIVATION_STATE_DEACTIVATING () {4;}' unless defined(&MBIM_ACTIVATION_STATE_DEACTIVATING);
    eval 'sub MBIM_IPCONF_HAS_ADDRINFO () {0x1;}' unless defined(&MBIM_IPCONF_HAS_ADDRINFO);
    eval 'sub MBIM_IPCONF_HAS_GWINFO () {0x2;}' unless defined(&MBIM_IPCONF_HAS_GWINFO);
    eval 'sub MBIM_IPCONF_HAS_DNSINFO () {0x4;}' unless defined(&MBIM_IPCONF_HAS_DNSINFO);
    eval 'sub MBIM_IPCONF_HAS_MTUINFO () {0x8;}' unless defined(&MBIM_IPCONF_HAS_MTUINFO);
    if(defined(&_KERNEL)) {
	eval 'sub MBIM_VER_MAJOR {
	    my($v) = @_;
    	    eval q(((($v) >> 8) & 0xf));
	}' unless defined(&MBIM_VER_MAJOR);
	eval 'sub MBIM_VER_MINOR {
	    my($v) = @_;
    	    eval q((($v) & 0xf));
	}' unless defined(&MBIM_VER_MINOR);
	eval 'sub NCM_GET_NTB_PARAMETERS () {0x80;}' unless defined(&NCM_GET_NTB_PARAMETERS);
	eval 'sub NCM_FORMAT_NTB16 () {0x1;}' unless defined(&NCM_FORMAT_NTB16);
	eval 'sub NCM_FORMAT_NTB32 () {0x2;}' unless defined(&NCM_FORMAT_NTB32);
	eval 'sub MBIM_HDR16_LEN () {($sizeof{\'struct ncm_header16\'} + $sizeof{\'struct ncm_pointer16\'});}' unless defined(&MBIM_HDR16_LEN);
	eval 'sub MBIM_HDR32_LEN () {($sizeof{\'struct ncm_header32\'} + $sizeof{\'struct ncm_pointer32\'});}' unless defined(&MBIM_HDR32_LEN);
	eval 'sub NCM_HDR16_SIG () {0x484d434e;}' unless defined(&NCM_HDR16_SIG);
	eval 'sub NCM_HDR32_SIG () {0x686d636e;}' unless defined(&NCM_HDR32_SIG);
	eval 'sub MBIM_NCM_NTH_SIDSHIFT () {24;}' unless defined(&MBIM_NCM_NTH_SIDSHIFT);
	eval 'sub MBIM_NCM_NTH_GETSID {
	    my($s) = @_;
    	    eval q(((($s) >  &MBIM_NCM_NTH_SIDSHIFT) & 0xff));
	}' unless defined(&MBIM_NCM_NTH_GETSID);
	eval 'sub MBIM_NCM_NTH16_IPS () {0x535049;}' unless defined(&MBIM_NCM_NTH16_IPS);
	eval 'sub MBIM_NCM_NTH16_ISISG {
	    my($s) = @_;
    	    eval q(((($s) & 0xffffff) ==  &MBIM_NCM_NTH16_IPS));
	}' unless defined(&MBIM_NCM_NTH16_ISISG);
	eval 'sub MBIM_NCM_NTH16_SIG {
	    my($s) = @_;
    	    eval q((((($s) & 0xff) <<  &MBIM_NCM_NTH_SIDSHIFT) |  &MBIM_NCM_NTH16_IPS));
	}' unless defined(&MBIM_NCM_NTH16_SIG);
	eval 'sub MBIM_NCM_NTH32_IPS () {0x737069;}' unless defined(&MBIM_NCM_NTH32_IPS);
	eval 'sub MBIM_NCM_NTH32_ISISG {
	    my($s) = @_;
    	    eval q(((($s) & 0xffffff) ==  &MBIM_NCM_NTH32_IPS));
	}' unless defined(&MBIM_NCM_NTH32_ISISG);
	eval 'sub MBIM_NCM_NTH32_SIG {
	    my($s) = @_;
    	    eval q((((($s) & 0xff) <<  &MBIM_NCM_NTH_SIDSHIFT) |  &MBIM_NCM_NTH32_IPS));
	}' unless defined(&MBIM_NCM_NTH32_SIG);
    }
}
1;
