diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-11 01:55:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-11 01:55:03 -0500 |
commit | d4a66e752d0b19934dd208884f8605fe385aaaa9 (patch) | |
tree | 72fb727be1d7636aae9cddfe9aa93ac9dec75daf /drivers/net/benet/be_cmds.h | |
parent | bdbec4b86ee99b020e159f9bd604003a3ae3b0ab (diff) | |
parent | fa15e99b6bb44aa86b241a43ca8c509e91f80153 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/benet/be_cmds.h
include/linux/sysctl.h
Diffstat (limited to 'drivers/net/benet/be_cmds.h')
-rw-r--r-- | drivers/net/benet/be_cmds.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index 6eed512bb6d4..cb3188f8708d 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h | |||
@@ -156,6 +156,7 @@ struct be_mcc_mailbox { | |||
156 | 156 | ||
157 | #define OPCODE_LOWLEVEL_HOST_DDR_DMA 17 | 157 | #define OPCODE_LOWLEVEL_HOST_DDR_DMA 17 |
158 | #define OPCODE_LOWLEVEL_LOOPBACK_TEST 18 | 158 | #define OPCODE_LOWLEVEL_LOOPBACK_TEST 18 |
159 | #define OPCODE_LOWLEVEL_SET_LOOPBACK_MODE 19 | ||
159 | 160 | ||
160 | struct be_cmd_req_hdr { | 161 | struct be_cmd_req_hdr { |
161 | u8 opcode; /* dword 0 */ | 162 | u8 opcode; /* dword 0 */ |
@@ -822,6 +823,19 @@ struct be_cmd_resp_loopback_test { | |||
822 | u32 ticks_compl; | 823 | u32 ticks_compl; |
823 | }; | 824 | }; |
824 | 825 | ||
826 | struct be_cmd_req_set_lmode { | ||
827 | struct be_cmd_req_hdr hdr; | ||
828 | u8 src_port; | ||
829 | u8 dest_port; | ||
830 | u8 loopback_type; | ||
831 | u8 loopback_state; | ||
832 | }; | ||
833 | |||
834 | struct be_cmd_resp_set_lmode { | ||
835 | struct be_cmd_resp_hdr resp_hdr; | ||
836 | u8 rsvd0[4]; | ||
837 | }; | ||
838 | |||
825 | /********************** DDR DMA test *********************/ | 839 | /********************** DDR DMA test *********************/ |
826 | struct be_cmd_req_ddrdma_test { | 840 | struct be_cmd_req_ddrdma_test { |
827 | struct be_cmd_req_hdr hdr; | 841 | struct be_cmd_req_hdr hdr; |
@@ -928,3 +942,6 @@ extern int be_cmd_ddr_dma_test(struct be_adapter *adapter, u64 pattern, | |||
928 | u32 byte_cnt, struct be_dma_mem *cmd); | 942 | u32 byte_cnt, struct be_dma_mem *cmd); |
929 | extern int be_cmd_get_seeprom_data(struct be_adapter *adapter, | 943 | extern int be_cmd_get_seeprom_data(struct be_adapter *adapter, |
930 | struct be_dma_mem *nonemb_cmd); | 944 | struct be_dma_mem *nonemb_cmd); |
945 | extern int be_cmd_set_loopback(struct be_adapter *adapter, u8 port_num, | ||
946 | u8 loopback_type, u8 enable); | ||
947 | |||