aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_cmds.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2009-12-03 01:16:59 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-03 15:39:21 -0500
commit71d8d1b58aa4025ea73a66a130a98d0ed077f9b1 (patch)
tree36034463fa1b1438ad018fbaafbe9dac60159751 /drivers/net/benet/be_cmds.h
parentd744b44e21a2c908aae23a60da1b4ce35cd925ef (diff)
be2net: Support for WoL using magic packet after suspend.
Add support for WOL using Magic Packet after suspend is done. Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.h')
-rw-r--r--drivers/net/benet/be_cmds.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h
index 8ec6528cb054..e8512a144f5e 100644
--- a/drivers/net/benet/be_cmds.h
+++ b/drivers/net/benet/be_cmds.h
@@ -150,6 +150,7 @@ struct be_mcc_mailbox {
150#define OPCODE_ETH_RX_CREATE 8 150#define OPCODE_ETH_RX_CREATE 8
151#define OPCODE_ETH_TX_DESTROY 9 151#define OPCODE_ETH_TX_DESTROY 9
152#define OPCODE_ETH_RX_DESTROY 10 152#define OPCODE_ETH_RX_DESTROY 10
153#define OPCODE_ETH_ACPI_WOL_MAGIC_CONFIG 12
153 154
154struct be_cmd_req_hdr { 155struct be_cmd_req_hdr {
155 u8 opcode; /* dword 0 */ 156 u8 opcode; /* dword 0 */
@@ -788,6 +789,14 @@ struct be_cmd_write_flashrom {
788 struct flashrom_params params; 789 struct flashrom_params params;
789}; 790};
790 791
792/************************ WOL *******************************/
793struct be_cmd_req_acpi_wol_magic_config{
794 struct be_cmd_req_hdr hdr;
795 u32 rsvd0[145];
796 u8 magic_mac[6];
797 u8 rsvd2[2];
798} __packed;
799
791extern int be_pci_fnum_get(struct be_adapter *adapter); 800extern int be_pci_fnum_get(struct be_adapter *adapter);
792extern int be_cmd_POST(struct be_adapter *adapter); 801extern int be_cmd_POST(struct be_adapter *adapter);
793extern int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr, 802extern int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr,
@@ -851,5 +860,7 @@ extern int be_cmd_write_flashrom(struct be_adapter *adapter,
851 struct be_dma_mem *cmd, u32 flash_oper, 860 struct be_dma_mem *cmd, u32 flash_oper,
852 u32 flash_opcode, u32 buf_size); 861 u32 flash_opcode, u32 buf_size);
853extern int be_cmd_get_flash_crc(struct be_adapter *adapter, u8 *flashed_crc); 862extern int be_cmd_get_flash_crc(struct be_adapter *adapter, u8 *flashed_crc);
863extern int be_cmd_enable_magic_wol(struct be_adapter *adapter, u8 *mac,
864 struct be_dma_mem *nonemb_cmd);
854extern int be_cmd_fw_init(struct be_adapter *adapter); 865extern int be_cmd_fw_init(struct be_adapter *adapter);
855extern int be_cmd_fw_clean(struct be_adapter *adapter); 866extern int be_cmd_fw_clean(struct be_adapter *adapter);