1/* 2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc. 3 * All rights reserved 4 * www.brocade.com 5 * 6 * Linux driver for Brocade Fibre Channel Host Bus Adapter. 7 * 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 11 * 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. 16 */ 17 18/** 19 * bfa_fcs_fdmi.h BFA fcs fdmi module public interface 20 */ 21 22#ifndef __BFA_FCS_FDMI_H__ 23#define __BFA_FCS_FDMI_H__ 24#include <bfa_os_inc.h> 25#include <protocol/fdmi.h> 26 27#define BFA_FCS_FDMI_SUPORTED_SPEEDS (FDMI_TRANS_SPEED_1G | \ 28 FDMI_TRANS_SPEED_2G | \ 29 FDMI_TRANS_SPEED_4G | \ 30 FDMI_TRANS_SPEED_8G) 31 32/* 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. 36 */ 37struct bfa_fcs_fdmi_hba_attr_s { 38 wwn_t node_name; 39 u8 manufacturer[64]; 40 u8 serial_num[64]; 41 u8 model[16]; 42 u8 model_desc[256]; 43 u8 hw_version[8]; 44 u8 driver_version[8]; 45 u8 option_rom_ver[BFA_VERSION_LEN]; 46 u8 fw_version[8]; 47 u8 os_name[256]; 48 u32 max_ct_pyld; 49}; 50 51/* 52 * Port Attribute Block 53 */ 54struct 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 */ 61}; 62 63#endif /* __BFA_FCS_FDMI_H__ */ 64