diff options
Diffstat (limited to 'drivers/net/benet/be_cmds.h')
-rw-r--r-- | drivers/net/benet/be_cmds.h | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index 747626da7b4e..70618064ae15 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h | |||
@@ -69,7 +69,7 @@ enum { | |||
69 | #define CQE_STATUS_EXTD_MASK 0xFFFF | 69 | #define CQE_STATUS_EXTD_MASK 0xFFFF |
70 | #define CQE_STATUS_EXTD_SHIFT 0 /* bits 0 - 15 */ | 70 | #define CQE_STATUS_EXTD_SHIFT 0 /* bits 0 - 15 */ |
71 | 71 | ||
72 | struct be_mcc_cq_entry { | 72 | struct be_mcc_compl { |
73 | u32 status; /* dword 0 */ | 73 | u32 status; /* dword 0 */ |
74 | u32 tag0; /* dword 1 */ | 74 | u32 tag0; /* dword 1 */ |
75 | u32 tag1; /* dword 2 */ | 75 | u32 tag1; /* dword 2 */ |
@@ -106,7 +106,7 @@ struct be_async_event_link_state { | |||
106 | 106 | ||
107 | struct be_mcc_mailbox { | 107 | struct be_mcc_mailbox { |
108 | struct be_mcc_wrb wrb; | 108 | struct be_mcc_wrb wrb; |
109 | struct be_mcc_cq_entry cqe; | 109 | struct be_mcc_compl compl; |
110 | }; | 110 | }; |
111 | 111 | ||
112 | #define CMD_SUBSYSTEM_COMMON 0x1 | 112 | #define CMD_SUBSYSTEM_COMMON 0x1 |
@@ -135,6 +135,7 @@ struct be_mcc_mailbox { | |||
135 | #define OPCODE_COMMON_QUERY_FIRMWARE_CONFIG 58 | 135 | #define OPCODE_COMMON_QUERY_FIRMWARE_CONFIG 58 |
136 | #define OPCODE_COMMON_NTWK_PMAC_ADD 59 | 136 | #define OPCODE_COMMON_NTWK_PMAC_ADD 59 |
137 | #define OPCODE_COMMON_NTWK_PMAC_DEL 60 | 137 | #define OPCODE_COMMON_NTWK_PMAC_DEL 60 |
138 | #define OPCODE_COMMON_FUNCTION_RESET 61 | ||
138 | 139 | ||
139 | #define OPCODE_ETH_ACPI_CONFIG 2 | 140 | #define OPCODE_ETH_ACPI_CONFIG 2 |
140 | #define OPCODE_ETH_PROMISCUOUS 3 | 141 | #define OPCODE_ETH_PROMISCUOUS 3 |
@@ -634,7 +635,6 @@ struct be_cmd_resp_link_status { | |||
634 | } __packed; | 635 | } __packed; |
635 | 636 | ||
636 | /******************** Get FW Version *******************/ | 637 | /******************** Get FW Version *******************/ |
637 | #define FW_VER_LEN 32 | ||
638 | struct be_cmd_req_get_fw_version { | 638 | struct be_cmd_req_get_fw_version { |
639 | struct be_cmd_req_hdr hdr; | 639 | struct be_cmd_req_hdr hdr; |
640 | u8 rsvd0[FW_VER_LEN]; | 640 | u8 rsvd0[FW_VER_LEN]; |
@@ -697,52 +697,53 @@ struct be_cmd_resp_query_fw_cfg { | |||
697 | u32 rsvd[26]; | 697 | u32 rsvd[26]; |
698 | }; | 698 | }; |
699 | 699 | ||
700 | extern int be_pci_fnum_get(struct be_ctrl_info *ctrl); | 700 | extern int be_pci_fnum_get(struct be_adapter *adapter); |
701 | extern int be_cmd_POST(struct be_ctrl_info *ctrl); | 701 | extern int be_cmd_POST(struct be_adapter *adapter); |
702 | extern int be_cmd_mac_addr_query(struct be_ctrl_info *ctrl, u8 *mac_addr, | 702 | extern int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr, |
703 | u8 type, bool permanent, u32 if_handle); | 703 | u8 type, bool permanent, u32 if_handle); |
704 | extern int be_cmd_pmac_add(struct be_ctrl_info *ctrl, u8 *mac_addr, | 704 | extern int be_cmd_pmac_add(struct be_adapter *adapter, u8 *mac_addr, |
705 | u32 if_id, u32 *pmac_id); | 705 | u32 if_id, u32 *pmac_id); |
706 | extern int be_cmd_pmac_del(struct be_ctrl_info *ctrl, u32 if_id, u32 pmac_id); | 706 | extern int be_cmd_pmac_del(struct be_adapter *adapter, u32 if_id, u32 pmac_id); |
707 | extern int be_cmd_if_create(struct be_ctrl_info *ctrl, u32 if_flags, u8 *mac, | 707 | extern int be_cmd_if_create(struct be_adapter *adapter, u32 if_flags, u8 *mac, |
708 | bool pmac_invalid, u32 *if_handle, u32 *pmac_id); | 708 | bool pmac_invalid, u32 *if_handle, u32 *pmac_id); |
709 | extern int be_cmd_if_destroy(struct be_ctrl_info *ctrl, u32 if_handle); | 709 | extern int be_cmd_if_destroy(struct be_adapter *adapter, u32 if_handle); |
710 | extern int be_cmd_eq_create(struct be_ctrl_info *ctrl, | 710 | extern int be_cmd_eq_create(struct be_adapter *adapter, |
711 | struct be_queue_info *eq, int eq_delay); | 711 | struct be_queue_info *eq, int eq_delay); |
712 | extern int be_cmd_cq_create(struct be_ctrl_info *ctrl, | 712 | extern int be_cmd_cq_create(struct be_adapter *adapter, |
713 | struct be_queue_info *cq, struct be_queue_info *eq, | 713 | struct be_queue_info *cq, struct be_queue_info *eq, |
714 | bool sol_evts, bool no_delay, | 714 | bool sol_evts, bool no_delay, |
715 | int num_cqe_dma_coalesce); | 715 | int num_cqe_dma_coalesce); |
716 | extern int be_cmd_mccq_create(struct be_ctrl_info *ctrl, | 716 | extern int be_cmd_mccq_create(struct be_adapter *adapter, |
717 | struct be_queue_info *mccq, | 717 | struct be_queue_info *mccq, |
718 | struct be_queue_info *cq); | 718 | struct be_queue_info *cq); |
719 | extern int be_cmd_txq_create(struct be_ctrl_info *ctrl, | 719 | extern int be_cmd_txq_create(struct be_adapter *adapter, |
720 | struct be_queue_info *txq, | 720 | struct be_queue_info *txq, |
721 | struct be_queue_info *cq); | 721 | struct be_queue_info *cq); |
722 | extern int be_cmd_rxq_create(struct be_ctrl_info *ctrl, | 722 | extern int be_cmd_rxq_create(struct be_adapter *adapter, |
723 | struct be_queue_info *rxq, u16 cq_id, | 723 | struct be_queue_info *rxq, u16 cq_id, |
724 | u16 frag_size, u16 max_frame_size, u32 if_id, | 724 | u16 frag_size, u16 max_frame_size, u32 if_id, |
725 | u32 rss); | 725 | u32 rss); |
726 | extern int be_cmd_q_destroy(struct be_ctrl_info *ctrl, struct be_queue_info *q, | 726 | extern int be_cmd_q_destroy(struct be_adapter *adapter, struct be_queue_info *q, |
727 | int type); | 727 | int type); |
728 | extern int be_cmd_link_status_query(struct be_ctrl_info *ctrl, | 728 | extern int be_cmd_link_status_query(struct be_adapter *adapter, |
729 | bool *link_up); | 729 | bool *link_up); |
730 | extern int be_cmd_reset(struct be_ctrl_info *ctrl); | 730 | extern int be_cmd_reset(struct be_adapter *adapter); |
731 | extern int be_cmd_get_stats(struct be_ctrl_info *ctrl, | 731 | extern int be_cmd_get_stats(struct be_adapter *adapter, |
732 | struct be_dma_mem *nonemb_cmd); | 732 | struct be_dma_mem *nonemb_cmd); |
733 | extern int be_cmd_get_fw_ver(struct be_ctrl_info *ctrl, char *fw_ver); | 733 | extern int be_cmd_get_fw_ver(struct be_adapter *adapter, char *fw_ver); |
734 | 734 | ||
735 | extern int be_cmd_modify_eqd(struct be_ctrl_info *ctrl, u32 eq_id, u32 eqd); | 735 | extern int be_cmd_modify_eqd(struct be_adapter *adapter, u32 eq_id, u32 eqd); |
736 | extern int be_cmd_vlan_config(struct be_ctrl_info *ctrl, u32 if_id, | 736 | extern int be_cmd_vlan_config(struct be_adapter *adapter, u32 if_id, |
737 | u16 *vtag_array, u32 num, bool untagged, | 737 | u16 *vtag_array, u32 num, bool untagged, |
738 | bool promiscuous); | 738 | bool promiscuous); |
739 | extern int be_cmd_promiscuous_config(struct be_ctrl_info *ctrl, | 739 | extern int be_cmd_promiscuous_config(struct be_adapter *adapter, |
740 | u8 port_num, bool en); | 740 | u8 port_num, bool en); |
741 | extern int be_cmd_multicast_set(struct be_ctrl_info *ctrl, u32 if_id, | 741 | extern int be_cmd_multicast_set(struct be_adapter *adapter, u32 if_id, |
742 | struct dev_mc_list *mc_list, u32 mc_count); | 742 | struct dev_mc_list *mc_list, u32 mc_count); |
743 | extern int be_cmd_set_flow_control(struct be_ctrl_info *ctrl, | 743 | extern int be_cmd_set_flow_control(struct be_adapter *adapter, |
744 | u32 tx_fc, u32 rx_fc); | 744 | u32 tx_fc, u32 rx_fc); |
745 | extern int be_cmd_get_flow_control(struct be_ctrl_info *ctrl, | 745 | extern int be_cmd_get_flow_control(struct be_adapter *adapter, |
746 | u32 *tx_fc, u32 *rx_fc); | 746 | u32 *tx_fc, u32 *rx_fc); |
747 | extern int be_cmd_query_fw_cfg(struct be_ctrl_info *ctrl, u32 *port_num); | 747 | extern int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num); |
748 | extern void be_process_mcc(struct be_ctrl_info *ctrl); | 748 | extern int be_cmd_reset_function(struct be_adapter *adapter); |
749 | extern void be_process_mcc(struct be_adapter *adapter); | ||