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