bfi_pbc.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) 2005-2010 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. #ifndef __BFI_PBC_H__
  18. #define __BFI_PBC_H__
  19. #pragma pack(1)
  20. #define BFI_PBC_MAX_BLUNS 8
  21. #define BFI_PBC_MAX_VPORTS 16
  22. #define BFI_PBC_PORT_DISABLED 2
  23. /**
  24. * PBC boot lun configuration
  25. */
  26. struct bfi_pbc_blun_s {
  27. wwn_t tgt_pwwn;
  28. lun_t tgt_lun;
  29. };
  30. /**
  31. * PBC virtual port configuration
  32. */
  33. struct bfi_pbc_vport_s {
  34. wwn_t vp_pwwn;
  35. wwn_t vp_nwwn;
  36. };
  37. /**
  38. * BFI pre-boot configuration information
  39. */
  40. struct bfi_pbc_s {
  41. u8 port_enabled;
  42. u8 boot_enabled;
  43. u8 nbluns;
  44. u8 nvports;
  45. u8 port_speed;
  46. u8 rsvd_a;
  47. u16 hss;
  48. wwn_t pbc_pwwn;
  49. wwn_t pbc_nwwn;
  50. struct bfi_pbc_blun_s blun[BFI_PBC_MAX_BLUNS];
  51. struct bfi_pbc_vport_s vport[BFI_PBC_MAX_VPORTS];
  52. };
  53. #pragma pack()
  54. #endif /* __BFI_PBC_H__ */