bfa_fcs_fdmi.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. * bfa_fcs_fdmi.h BFA fcs fdmi module public interface
  19. */
  20. #ifndef __BFA_FCS_FDMI_H__
  21. #define __BFA_FCS_FDMI_H__
  22. #include <bfa_os_inc.h>
  23. #include <protocol/fdmi.h>
  24. #define BFA_FCS_FDMI_SUPORTED_SPEEDS (FDMI_TRANS_SPEED_1G | \
  25. FDMI_TRANS_SPEED_2G | \
  26. FDMI_TRANS_SPEED_4G | \
  27. FDMI_TRANS_SPEED_8G)
  28. /*
  29. * HBA Attribute Block : BFA internal representation. Note : Some variable
  30. * sizes have been trimmed to suit BFA For Ex : Model will be "Brocade". Based
  31. * on this the size has been reduced to 16 bytes from the standard's 64 bytes.
  32. */
  33. struct bfa_fcs_fdmi_hba_attr_s {
  34. wwn_t node_name;
  35. u8 manufacturer[64];
  36. u8 serial_num[64];
  37. u8 model[16];
  38. u8 model_desc[256];
  39. u8 hw_version[8];
  40. u8 driver_version[8];
  41. u8 option_rom_ver[BFA_VERSION_LEN];
  42. u8 fw_version[8];
  43. u8 os_name[256];
  44. u32 max_ct_pyld;
  45. };
  46. /*
  47. * Port Attribute Block
  48. */
  49. struct bfa_fcs_fdmi_port_attr_s {
  50. u8 supp_fc4_types[32]; /* supported FC4 types */
  51. u32 supp_speed; /* supported speed */
  52. u32 curr_speed; /* current Speed */
  53. u32 max_frm_size; /* max frame size */
  54. u8 os_device_name[256]; /* OS device Name */
  55. u8 host_name[256]; /* host name */
  56. };
  57. #endif /* __BFA_FCS_FDMI_H__ */