Added registration for EC801E

This commit is contained in:
KirisameMashiro 2024-12-25 17:34:51 +08:00
parent 6c704a3638
commit 935b990667
1 changed files with 18 additions and 0 deletions

View File

@ -32,6 +32,10 @@ extern AdapterProductInfoType Ec200aAttach(struct Adapter *adapter);
extern AdapterProductInfoType Gm800tfAttach(struct Adapter *adapter); extern AdapterProductInfoType Gm800tfAttach(struct Adapter *adapter);
#endif #endif
#ifdef ADAPTER_EC801E
extern AdapterProductInfoType Ec801eAttach(struct Adapter *adapter);
#endif
static int Adapter4GRegister(struct Adapter *adapter) static int Adapter4GRegister(struct Adapter *adapter)
{ {
int ret = 0; int ret = 0;
@ -70,6 +74,20 @@ int Adapter4GInit(void)
return -1; return -1;
} }
#ifdef ADAPTER_EC801E
AdapterProductInfoType product_info = Ec801eAttach(adapter);
if (!product_info) {
printf("Adapter4GInit ec801e attach error\n");
PrivFree(adapter);
return -1;
}
adapter->product_info_flag = 1;
adapter->info = product_info;
adapter->done = product_info->model_done;
#endif
#ifdef ADAPTER_EC200T #ifdef ADAPTER_EC200T
AdapterProductInfoType product_info = Ec200tAttach(adapter); AdapterProductInfoType product_info = Ec200tAttach(adapter);
if (!product_info) { if (!product_info) {