treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / usb / gadget / function / ndis.h
bloba19f72dec0cd1561b20165bfa8b11fdee8a20c3b
1 /*
2 * ndis.h
4 * ntddndis.h modified by Benedikt Spranger <b.spranger@pengutronix.de>
6 * Thanks to the cygwin development team,
7 * espacially to Casper S. Hornstrup <chorns@users.sourceforge.net>
9 * THIS SOFTWARE IS NOT COPYRIGHTED
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
15 #ifndef _LINUX_NDIS_H
16 #define _LINUX_NDIS_H
18 enum NDIS_DEVICE_POWER_STATE {
19 NdisDeviceStateUnspecified = 0,
20 NdisDeviceStateD0,
21 NdisDeviceStateD1,
22 NdisDeviceStateD2,
23 NdisDeviceStateD3,
24 NdisDeviceStateMaximum
27 struct NDIS_PM_WAKE_UP_CAPABILITIES {
28 enum NDIS_DEVICE_POWER_STATE MinMagicPacketWakeUp;
29 enum NDIS_DEVICE_POWER_STATE MinPatternWakeUp;
30 enum NDIS_DEVICE_POWER_STATE MinLinkChangeWakeUp;
33 struct NDIS_PNP_CAPABILITIES {
34 __le32 Flags;
35 struct NDIS_PM_WAKE_UP_CAPABILITIES WakeUpCapabilities;
38 struct NDIS_PM_PACKET_PATTERN {
39 __le32 Priority;
40 __le32 Reserved;
41 __le32 MaskSize;
42 __le32 PatternOffset;
43 __le32 PatternSize;
44 __le32 PatternFlags;
47 #endif /* _LINUX_NDIS_H */