Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
764 B
C
31 lines
764 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* mctp-usb.h - MCTP USB transport binding: common definitions,
|
|
* based on DMTF0283 specification:
|
|
* https://www.dmtf.org/sites/default/files/standards/documents/DSP0283_1.0.1.pdf
|
|
*
|
|
* These are protocol-level definitions, that may be shared between host
|
|
* and gadget drivers.
|
|
*
|
|
* Copyright (C) 2024-2025 Code Construct Pty Ltd
|
|
*/
|
|
|
|
#ifndef __LINUX_USB_MCTP_USB_H
|
|
#define __LINUX_USB_MCTP_USB_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct mctp_usb_hdr {
|
|
__be16 id;
|
|
u8 rsvd;
|
|
u8 len;
|
|
} __packed;
|
|
|
|
#define MCTP_USB_XFER_SIZE 512
|
|
#define MCTP_USB_BTU 68
|
|
#define MCTP_USB_MTU_MIN MCTP_USB_BTU
|
|
#define MCTP_USB_MTU_MAX (U8_MAX - sizeof(struct mctp_usb_hdr))
|
|
#define MCTP_USB_DMTF_ID 0x1ab4
|
|
|
|
#endif /* __LINUX_USB_MCTP_USB_H */
|