From: Ben Chan <benchan@chromium.org>
To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
netdev@vger.kernel.org, Oliver Neukum <oliver@neukum.org>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"David Miller" <davem@davemloft.net>,
"Bjørn Mork" <bjorn@mork.no>,
"Greg Suarez" <gsuarez@smithmicro.com>
Subject: [PATCH net-next v4 1/2] USB: cdc: add MBIM extended functional descriptor structure
Date: Wed, 19 Mar 2014 14:00:05 -0700 [thread overview]
Message-ID: <1395262806-19237-2-git-send-email-benchan@chromium.org> (raw)
In-Reply-To: <1395262806-19237-1-git-send-email-benchan@chromium.org>
This patch adds the MBIM extended functional descriptor structure
defined in "Universal Serial Bus Communications Class Subclass
Specification for Mobile Broadband Interface Model, Revision 1.0,
Errata-1" published by USB-IF.
Signed-off-by: Ben Chan <benchan@chromium.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
include/uapi/linux/usb/cdc.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/uapi/linux/usb/cdc.h b/include/uapi/linux/usb/cdc.h
index f35aa0a..b6a9cdd 100644
--- a/include/uapi/linux/usb/cdc.h
+++ b/include/uapi/linux/usb/cdc.h
@@ -56,6 +56,7 @@
#define USB_CDC_OBEX_TYPE 0x15
#define USB_CDC_NCM_TYPE 0x1a
#define USB_CDC_MBIM_TYPE 0x1b
+#define USB_CDC_MBIM_EXTENDED_TYPE 0x1c
/* "Header Functional Descriptor" from CDC spec 5.2.3.1 */
struct usb_cdc_header_desc {
@@ -205,6 +206,17 @@ struct usb_cdc_mbim_desc {
__u8 bmNetworkCapabilities;
} __attribute__ ((packed));
+/* "MBIM Extended Functional Descriptor" from CDC MBIM spec 1.0 errata-1 */
+struct usb_cdc_mbim_extended_desc {
+ __u8 bLength;
+ __u8 bDescriptorType;
+ __u8 bDescriptorSubType;
+
+ __le16 bcdMBIMExtendedVersion;
+ __u8 bMaxOutstandingCommandMessages;
+ __le16 wMTU;
+} __attribute__ ((packed));
+
/*-------------------------------------------------------------------------*/
/*
--
1.9.0.279.gdc9e3eb
next prev parent reply other threads:[~2014-03-19 21:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 21:00 [PATCH net-next v4 0/2] adjust MTU as indicated by MBIM extended functional descriptor Ben Chan
2014-03-19 21:00 ` Ben Chan [this message]
2014-03-19 21:00 ` [PATCH net-next v4 2/2] net: cdc_ncm: respect operator preferred MTU reported by MBIM Ben Chan
2014-03-20 20:58 ` [PATCH net-next v4 0/2] adjust MTU as indicated by MBIM extended functional descriptor David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1395262806-19237-2-git-send-email-benchan@chromium.org \
--to=benchan@chromium.org \
--cc=bjorn@mork.no \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=gsuarez@smithmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oliver@neukum.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).