2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 #ifndef __BFI_PORT_H__
18 #define __BFI_PORT_H__
21 #include <defs/bfa_defs_pport.h>
26 BFI_PORT_H2I_ENABLE_REQ
= (1),
27 BFI_PORT_H2I_DISABLE_REQ
= (2),
28 BFI_PORT_H2I_GET_STATS_REQ
= (3),
29 BFI_PORT_H2I_CLEAR_STATS_REQ
= (4),
33 BFI_PORT_I2H_ENABLE_RSP
= BFA_I2HM(1),
34 BFI_PORT_I2H_DISABLE_RSP
= BFA_I2HM(2),
35 BFI_PORT_I2H_GET_STATS_RSP
= BFA_I2HM(3),
36 BFI_PORT_I2H_CLEAR_STATS_RSP
= BFA_I2HM(4),
42 struct bfi_port_generic_req_s
{
43 struct bfi_mhdr_s mh
; /* msg header */
44 u32 msgtag
; /* msgtag for reply */
51 struct bfi_port_generic_rsp_s
{
52 struct bfi_mhdr_s mh
; /* common msg header */
53 u8 status
; /* port enable status */
55 u32 msgtag
; /* msgtag for reply */
60 * BFI_PORT_H2I_ENABLE_REQ
65 * BFI_PORT_I2H_ENABLE_RSP
69 * BFI_PORT_H2I_DISABLE_REQ
73 * BFI_PORT_I2H_DISABLE_RSP
77 * BFI_PORT_H2I_GET_STATS_REQ
79 struct bfi_port_get_stats_req_s
{
80 struct bfi_mhdr_s mh
; /* common msg header */
81 union bfi_addr_u dma_addr
;
85 * BFI_PORT_I2H_GET_STATS_RSP
89 * BFI_PORT_H2I_CLEAR_STATS_REQ
93 * BFI_PORT_I2H_CLEAR_STATS_RSP
96 union bfi_port_h2i_msg_u
{
98 struct bfi_port_generic_req_s enable_req
;
99 struct bfi_port_generic_req_s disable_req
;
100 struct bfi_port_get_stats_req_s getstats_req
;
101 struct bfi_port_generic_req_s clearstats_req
;
104 union bfi_port_i2h_msg_u
{
105 struct bfi_mhdr_s mh
;
106 struct bfi_port_generic_rsp_s enable_rsp
;
107 struct bfi_port_generic_rsp_s disable_rsp
;
108 struct bfi_port_generic_rsp_s getstats_rsp
;
109 struct bfi_port_generic_rsp_s clearstats_rsp
;
114 #endif /* __BFI_PORT_H__ */