xref: /linux/drivers/net/mctp/Kconfig (revision 91ec2035134982b98fab0609a9fd8480e8217dc1)
1
2if MCTP
3
4menu "MCTP Device Drivers"
5
6config MCTP_SERIAL
7	tristate "MCTP serial transport"
8	depends on TTY
9	select CRC_CCITT
10	help
11	  This driver provides an MCTP-over-serial interface, through a
12	  serial line-discipline, as defined by DMTF specification "DSP0253 -
13	  MCTP Serial Transport Binding". By attaching the ldisc to a serial
14	  device, we get a new net device to transport MCTP packets.
15
16	  This allows communication with external MCTP endpoints which use
17	  serial as their transport. It can also be used as an easy way to
18	  provide MCTP connectivity between virtual machines, by forwarding
19	  data between simple virtual serial devices.
20
21	  Say y here if you need to connect to MCTP endpoints over serial. To
22	  compile as a module, use m; the module will be called mctp-serial.
23
24config MCTP_SERIAL_TEST
25        bool "MCTP serial tests" if !KUNIT_ALL_TESTS
26        depends on MCTP_SERIAL=y && KUNIT=y
27        default KUNIT_ALL_TESTS
28
29config MCTP_TRANSPORT_I2C
30	tristate "MCTP SMBus/I2C transport"
31	# i2c-mux is optional, but we must build as a module if i2c-mux is a module
32	depends on I2C_MUX || !I2C_MUX
33	depends on I2C
34	depends on I2C_SLAVE
35	select MCTP_FLOWS
36	help
37	  Provides a driver to access MCTP devices over SMBus/I2C transport,
38	  from DMTF specification DSP0237. A MCTP protocol network device is
39	  created for each I2C bus that has been assigned a mctp-i2c device.
40
41config MCTP_TRANSPORT_I3C
42	tristate "MCTP I3C transport"
43	depends on I3C
44	help
45	  Provides a driver to access MCTP devices over I3C transport,
46	  from DMTF specification DSP0233.
47	  A MCTP protocol network device is created for each I3C bus
48	  having a "mctp-controller" devicetree property.
49
50config MCTP_TRANSPORT_USBLIB
51	tristate "MCTP over USB common library"
52	depends on USB
53	help
54	  Common protocol handling functions for MCTP-over-USB transport
55	  implementations, suitable for use in either host- or gadget-side
56	  transport driver
57
58	  This will be automatically enabled by the transport driver.
59
60config MCTP_TRANSPORT_USBLIB_TEST
61        bool "MCTP usblib tests" if !KUNIT_ALL_TESTS
62        depends on MCTP_TRANSPORT_USBLIB=y && KUNIT=y
63        default KUNIT_ALL_TESTS
64
65config MCTP_TRANSPORT_USB
66	tristate "MCTP USB transport"
67	depends on USB
68	select MCTP_TRANSPORT_USBLIB
69	help
70	  Provides a driver to access MCTP devices over USB transport,
71	  defined by DMTF specification DSP0283.
72
73	  MCTP-over-USB interfaces are peer-to-peer, so each interface
74	  represents a physical connection to one remote MCTP endpoint.
75
76endmenu
77
78endif
79