git: dc273058cb0b - main - ure(4): Add support for ELECOM EDC-QUA3C

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Fri, 24 Jan 2025 19:25:54 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=dc273058cb0b6bef075e77272afc66f1a1fd3889

commit dc273058cb0b6bef075e77272afc66f1a1fd3889
Author:     FUKAUMI Naoki <naoki@radxa.com>
AuthorDate: 2025-01-23 01:43:59 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-01-24 19:25:11 +0000

    ure(4): Add support for ELECOM EDC-QUA3C
    
    ELECOM EDC-QUA3C is a USB3.1 Gen1 Type-A/C 2.5GBASE-T network adapter.
    This also works as a cdce(4) device by:
    
    usbconfig -d X.Y set_config 1
      or
    usbconfig -d X.Y set_config 2
    
    Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
    
    MFC after:      2 weeks
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1578
---
 sys/dev/usb/net/if_ure.c | 1 +
 sys/dev/usb/usbdevs      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys/dev/usb/net/if_ure.c b/sys/dev/usb/net/if_ure.c
index 8e307daccfad..7c9b74334b58 100644
--- a/sys/dev/usb/net/if_ure.c
+++ b/sys/dev/usb/net/if_ure.c
@@ -96,6 +96,7 @@ static const STRUCT_USB_HOST_ID ure_devs[] = {
   USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, i), \
   USB_IFACE_CLASS(UICLASS_VENDOR), \
   USB_IFACE_SUBCLASS(UISUBCLASS_VENDOR) }
+	URE_DEV(ELECOM, EDCQUA3C, 0),
 	URE_DEV(LENOVO, RTL8153, URE_FLAG_8153),
 	URE_DEV(LENOVO, TBT3LANGEN2, 0),
 	URE_DEV(LENOVO, ONELINK, 0),
diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index c71ebbaf9405..61f563ca1aa6 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -1944,6 +1944,7 @@ product ELECOM WDC150SU2M	0x4008	WDC-150SU2M
 product ELECOM LDUSBTX2		0x400b	LD-USB/TX
 product ELECOM WDB433SU2M2	0x400f	WDB-433SU2M2
 product ELECOM LDUSB20		0x4010	LD-USB20
+product ELECOM EDCQUA3C		0x4017	EDC-QUA3C
 product ELECOM UCSGT		0x5003	UC-SGT
 product ELECOM UCSGT0		0x5004	UC-SGT
 product ELECOM LDUSBTX3		0xabc1	LD-USB/TX