drivers/usbhost/usbhost_cdcecm.c: Added support for Host CDC-ECM

Added support for USB host to use an USB CDC-ECM device.
This class is used for usb-ethernet adapters as well as many modems.

Signed-off-by: daniellizewski <daniellizewski@geotab.com>
This commit is contained in:
daniellizewski
2026-04-09 13:49:50 -04:00
committed by Lup Yuen Lee
parent 761c17f1e0
commit 9b18160893
9 changed files with 2373 additions and 0 deletions
+4
View File
@@ -47,6 +47,10 @@ if(CONFIG_USBHOST)
list(APPEND SRCS usbhost_cdcacm.c)
endif()
if(CONFIG_USBHOST_CDCECM)
list(APPEND SRCS usbhost_cdcecm.c)
endif()
if(CONFIG_USBHOST_CDCMBIM)
list(APPEND SRCS usbhost_cdcmbim.c)
endif()
+19
View File
@@ -304,6 +304,25 @@ config USBHOST_CDCACM_TXBUFSIZE
endif # USBHOST_CDCACM
config USBHOST_CDCECM
bool "CDC/ECM support"
default n
depends on USBHOST_HAVE_ASYNCH && !USBHOST_BULK_DISABLE && !USBHOST_INT_DISABLE
select USBHOST_ASYNCH
select NET_ETHERNET
---help---
Select this option to build in host support for CDC/ECM serial
devices.
config USBHOST_CDCECM_PACKET_PRINT
bool "Print raw CDC/ECM packets"
default n
depends on DEBUG_USB_INFO
---help---
Print all raw RX and TX packets send and received in the CDC/ECM driver.
This can be useful for analysing with programs such as wireshark.
config USBHOST_CDCMBIM
bool "CDC/MBIM support"
default n
+4
View File
@@ -48,6 +48,10 @@ ifeq ($(CONFIG_USBHOST_CDCACM),y)
CSRCS += usbhost_cdcacm.c
endif
ifeq ($(CONFIG_USBHOST_CDCECM),y)
CSRCS += usbhost_cdcecm.c
endif
ifeq ($(CONFIG_USBHOST_CDCMBIM),y)
CSRCS += usbhost_cdcmbim.c
endif
File diff suppressed because it is too large Load Diff