xref: /openbmc/linux/drivers/usb/gadget/function/ndis.h (revision 55fd7e02)
1 /*
2  * ndis.h
3  *
4  * ntddndis.h modified by Benedikt Spranger <b.spranger@pengutronix.de>
5  *
6  * Thanks to the cygwin development team,
7  * espacially to Casper S. Hornstrup <chorns@users.sourceforge.net>
8  *
9  * THIS SOFTWARE IS NOT COPYRIGHTED
10  *
11  * This source code is offered for use in the public domain. You may
12  * use, modify or distribute it freely.
13  */
14 
15 #ifndef _LINUX_NDIS_H
16 #define _LINUX_NDIS_H
17 
18 enum NDIS_DEVICE_POWER_STATE {
19 	NdisDeviceStateUnspecified = 0,
20 	NdisDeviceStateD0,
21 	NdisDeviceStateD1,
22 	NdisDeviceStateD2,
23 	NdisDeviceStateD3,
24 	NdisDeviceStateMaximum
25 };
26 
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;
31 };
32 
33 struct NDIS_PNP_CAPABILITIES {
34 	__le32					Flags;
35 	struct NDIS_PM_WAKE_UP_CAPABILITIES	WakeUpCapabilities;
36 };
37 
38 struct NDIS_PM_PACKET_PATTERN {
39 	__le32	Priority;
40 	__le32	Reserved;
41 	__le32	MaskSize;
42 	__le32	PatternOffset;
43 	__le32	PatternSize;
44 	__le32	PatternFlags;
45 };
46 
47 #endif /* _LINUX_NDIS_H */
48