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.
19 * bfa_fcs_fdmi.h BFA fcs fdmi module public interface
22 #ifndef __BFA_FCS_FDMI_H__
23 #define __BFA_FCS_FDMI_H__
24 #include <bfa_os_inc.h>
25 #include <protocol/fdmi.h>
27 #define BFA_FCS_FDMI_SUPORTED_SPEEDS (FDMI_TRANS_SPEED_1G | \
28 FDMI_TRANS_SPEED_2G | \
29 FDMI_TRANS_SPEED_4G | \
33 * HBA Attribute Block : BFA internal representation. Note : Some variable
34 * sizes have been trimmed to suit BFA For Ex : Model will be "Brocade". Based
35 * on this the size has been reduced to 16 bytes from the standard's 64 bytes.
37 struct bfa_fcs_fdmi_hba_attr_s
{
45 u8 option_rom_ver
[BFA_VERSION_LEN
];
52 * Port Attribute Block
54 struct bfa_fcs_fdmi_port_attr_s
{
55 u8 supp_fc4_types
[32]; /* supported FC4 types */
56 u32 supp_speed
; /* supported speed */
57 u32 curr_speed
; /* current Speed */
58 u32 max_frm_size
; /* max frame size */
59 u8 os_device_name
[256]; /* OS device Name */
60 u8 host_name
[256]; /* host name */
63 #endif /* __BFA_FCS_FDMI_H__ */