usbecm.h revision 0035018c6da861f1b758fb9bf6b50245c52b48e2
1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License (the "License"). 1N/A * You may not use this file except in compliance with the License. 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * When distributing Covered Code, include this CDDL HEADER in each 1N/A * If applicable, add the following below this CDDL HEADER, with the 1N/A * fields enclosed by brackets "[]" replaced with your own identifying 1N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1N/A * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 1N/A * Use is subject to license terms. /* Device specific initialization and deinitialization */ * per bulk in/out structure void *
ecm_priv;
/* device private data */ /* hardware definitions */ /* Bit offset for ECM statistics capabilities, CDC ECM Rev 1.2, Table 4 */ /* ECM class-specific request codes, Table 6 */ /* ECM Ethernet Pakcet Filter Bitmap, Table 8 */ /* Turn a little endian byte array to a uint32_t */ #
define isdigit(c) ((c) >=
'0' && c <=
'9')
#
define toupper(C) (((C) >=
'a' && (C) <=
'z')? ((C) -
'a' +
'A'): (C))
/* #define NELEM(a) (sizeof (a) / sizeof (*(a))) */ #
endif /* _SYS_USB_USBETH_H */