Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
David Brownell | 15b2d2b | 2008-06-19 18:19:16 -0700 | [diff] [blame] | 2 | * ndis.h |
| 3 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | * ntddndis.h modified by Benedikt Spranger <b.spranger@pengutronix.de> |
David Brownell | 15b2d2b | 2008-06-19 18:19:16 -0700 | [diff] [blame] | 5 | * |
| 6 | * Thanks to the cygwin development team, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | * espacially to Casper S. Hornstrup <chorns@users.sourceforge.net> |
David Brownell | 15b2d2b | 2008-06-19 18:19:16 -0700 | [diff] [blame] | 8 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef _LINUX_NDIS_H |
| 16 | #define _LINUX_NDIS_H |
| 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | struct NDIS_PNP_CAPABILITIES { |
David Brownell | 340600a | 2005-04-28 13:45:25 -0700 | [diff] [blame] | 34 | __le32 Flags; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | struct NDIS_PM_WAKE_UP_CAPABILITIES WakeUpCapabilities; |
| 36 | }; |
| 37 | |
| 38 | struct NDIS_PM_PACKET_PATTERN { |
David Brownell | 340600a | 2005-04-28 13:45:25 -0700 | [diff] [blame] | 39 | __le32 Priority; |
| 40 | __le32 Reserved; |
| 41 | __le32 MaskSize; |
| 42 | __le32 PatternOffset; |
| 43 | __le32 PatternSize; |
| 44 | __le32 PatternFlags; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | }; |
| 46 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | #endif /* _LINUX_NDIS_H */ |