diff options
author | Anna Neal <anna@cozybit.com> | 2008-10-20 19:46:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-21 11:06:03 -0500 |
commit | 582c1b538fb47a2d6a41dbdadb031086c49446c1 (patch) | |
tree | 04c84b61e6af5256e685c69bc195aee0b948adc5 /drivers/net/wireless/libertas/hostcmd.h | |
parent | 50da3ead624d46f1b9f1007a184691bbb841eba7 (diff) |
libertas: Fine grained configuration of wake-on-lan.
Based on a patch from Shailendra Govardhan <shailen@marvell.com>.
This patch allows implementation of more specific wake-on-lan rules than those
of ethtool.
Please note that only firmware 5.110.22.p20 and above supports this feature.
This patch only implements the driver/firmware interface, not the
userspace/driver interface.
Signed-off-by: Anna Neal <anna@cozybit.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/hostcmd.h')
-rw-r--r-- | drivers/net/wireless/libertas/hostcmd.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/hostcmd.h b/drivers/net/wireless/libertas/hostcmd.h index d9f9a12a739e..e173b1b46c23 100644 --- a/drivers/net/wireless/libertas/hostcmd.h +++ b/drivers/net/wireless/libertas/hostcmd.h | |||
@@ -580,13 +580,37 @@ struct MrvlIEtype_keyParamSet { | |||
580 | u8 key[32]; | 580 | u8 key[32]; |
581 | }; | 581 | }; |
582 | 582 | ||
583 | #define MAX_WOL_RULES 16 | ||
584 | |||
585 | struct host_wol_rule { | ||
586 | uint8_t rule_no; | ||
587 | uint8_t rule_ops; | ||
588 | __le16 sig_offset; | ||
589 | __le16 sig_length; | ||
590 | __le16 reserve; | ||
591 | __be32 sig_mask; | ||
592 | __be32 signature; | ||
593 | }; | ||
594 | |||
595 | struct wol_config { | ||
596 | uint8_t action; | ||
597 | uint8_t pattern; | ||
598 | uint8_t no_rules_in_cmd; | ||
599 | uint8_t result; | ||
600 | struct host_wol_rule rule[MAX_WOL_RULES]; | ||
601 | }; | ||
602 | |||
603 | |||
583 | struct cmd_ds_host_sleep { | 604 | struct cmd_ds_host_sleep { |
584 | struct cmd_header hdr; | 605 | struct cmd_header hdr; |
585 | __le32 criteria; | 606 | __le32 criteria; |
586 | uint8_t gpio; | 607 | uint8_t gpio; |
587 | uint8_t gap; | 608 | uint16_t gap; |
609 | struct wol_config wol_conf; | ||
588 | } __attribute__ ((packed)); | 610 | } __attribute__ ((packed)); |
589 | 611 | ||
612 | |||
613 | |||
590 | struct cmd_ds_802_11_key_material { | 614 | struct cmd_ds_802_11_key_material { |
591 | struct cmd_header hdr; | 615 | struct cmd_header hdr; |
592 | 616 | ||