usb_cdc.h revision 90f050286227cf4c4f8aa425555d04723d331d48
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER START
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * The contents of this file are subject to the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Common Development and Distribution License (the "License").
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * You may not use this file except in compliance with the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * or http://www.opensolaris.org/os/licensing.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * See the License for the specific language governing permissions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * and limitations under the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * When distributing Covered Code, include this CDDL HEADER in each
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * If applicable, add the following below this CDDL HEADER, with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * fields enclosed by brackets "[]" replaced with your own identifying
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * information: Portions Copyright [yyyy] [name of copyright owner]
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER END
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Use is subject to license terms.
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#pragma ident "%Z%%M% %I% %E% SMI"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#include <sys/usb/clients/usbser/usbser_dsdi.h>
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * USB Communications Device Class
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Class-specific descriptors
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define USB_CDC_DESCR_TYPE_CALL_MANAGEMENT 0x01
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define USB_CDC_DESCR_TYPE_NETWORK_TERMINAL 0x0a
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* Header Functional Descriptor */
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy/* Call Management Descriptor */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define USB_CDC_CALL_MGMT_CAP_CALL_MGMT 0x01
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define USB_CDC_CALL_MGMT_CAP_DATA_INTERFACE 0x02
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* Abstract Control Management Descriptor */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define USB_CDC_ACM_CAP_NETWORK_CONNECTION 0x08
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* Union Functional Descriptor */
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy /* more slave interafce may follow */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Class-specific requests
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define USB_CDC_REQ_SEND_ENCAPSULATED_COMMAND 0x00
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define USB_CDC_REQ_GET_ENCAPSULATED_RESPONSE 0x01
typedef struct usb_cdc_line_coding {
#define USB_CDC_STOP_BITS_1 0
#define USB_CDC_PARITY_NO 0
typedef struct usb_cdc_notification {
#ifdef __cplusplus