1# netusb configuration options
2
3# Copyright (c) 2017 Intel Corp.
4# SPDX-License-Identifier: Apache-2.0
5
6menu "USB Device Networking support"
7
8config USB_DEVICE_NETWORK
9	bool
10	select NET_L2_ETHERNET
11
12config USB_DEVICE_NETWORK_ECM
13	bool "USB Ethernet Control Model (ECM) Networking device"
14	select USB_DEVICE_NETWORK
15	help
16	  Ethernet Control Model (ECM) is a part of  Communications Device
17	  Class (CDC) USB protocol specified by USB-IF.
18
19config USB_DEVICE_NETWORK_EEM
20	bool "USB Ethernet Emulation Model (EEM) Networking device"
21	select USB_DEVICE_NETWORK
22	help
23	  Ethernet Emulation Model (EEM) is part of  Communications Device
24	  Class (CDC) USB protocol and can be used to encapsulate Ethernet
25	  frames for transport over USB.
26
27config USB_DEVICE_NETWORK_RNDIS
28	bool "USB Remote NDIS (RNDIS) Networking device"
29	select USB_DEVICE_NETWORK
30	help
31	  Remote NDIS (RNDIS) is commonly used Microsoft vendor protocol with
32	  Specification available from Microsoft web site.
33
34if USB_DEVICE_NETWORK_ECM
35
36config CDC_ECM_INTERRUPT_EP_MPS
37	int
38	default 16
39	help
40	  CDC ECM class interrupt endpoint size
41
42config CDC_ECM_BULK_EP_MPS
43	int
44	default 64
45	help
46	  CDC ECM class bulk endpoint size
47
48config USB_DEVICE_NETWORK_ECM_MAC
49	string "USB ECM Host OS MAC Address"
50	default "00005E005301"
51	help
52	  MAC Host OS Address string.
53	  MAC Address which would be assigned to network device, created in
54	  the Host's Operating System. Use RFC 7042 Documentation values as
55	  default MAC.
56
57endif # USB_DEVICE_NETWORK_ECM
58
59config CDC_EEM_BULK_EP_MPS
60	int
61	default 64
62	depends on USB_DEVICE_NETWORK_EEM
63
64if USB_DEVICE_NETWORK_RNDIS
65
66config RNDIS_INTERRUPT_EP_MPS
67	int
68	default 16
69	help
70	  RNDIS interrupt endpoint size
71
72config RNDIS_BULK_EP_MPS
73	int
74	default 64
75	help
76	  RNDIS bulk endpoint size
77
78endif # USB_DEVICE_NETWORK_RNDIS
79
80if USB_DEVICE_NETWORK
81
82module = USB_DEVICE_NETWORK
83module-dep = LOG
84module-str = USB Device Network log level
85source "subsys/net/Kconfig.template.log_config.net"
86
87endif # USB_DEVICE_NETWORK
88
89endmenu # USB Device Networking support
90