1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_MODE_ADAPTER_H
17 #define OHOS_MODE_ADAPTER_H
18 
19 typedef struct {
20     int32_t idVendor;
21     int32_t idProduct;
22     char *libPath; // vendorlib path.
23 } UsbDeviceInfo;
24 
25 #define MEIG_VENDOR_ID 0x2DEE
26 #define MEIG_PRODUCT_ID_SLM790 0x4D20
27 
28 #define FIBOCOM_VENDOR_ID 0x1508
29 #define FIBOCOM_PRODUCT_ID_NL668 0x1001
30 
31 /* The USB modem automatically recognizes the configuration. */
32 #define DEFAULT_MODE_INDEX 0
33 UsbDeviceInfo g_usbModemVendorInfo[] = {
34     // MEIG modem
35     {.idVendor = MEIG_VENDOR_ID, .idProduct = MEIG_PRODUCT_ID_SLM790, .libPath = "libril_vendor.z.so"},
36     // Fibocom modem
37     {.idVendor = FIBOCOM_VENDOR_ID, .idProduct = FIBOCOM_PRODUCT_ID_NL668, .libPath = "libfibocom_ril.z.so"},
38 };
39 
40 #endif // OHOS_MODE_ADAPTER_H
41