fcs_rport.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. * fcs_rport.h FCS rport interfaces and defines
  19. */
  20. #ifndef __FCS_RPORT_H__
  21. #define __FCS_RPORT_H__
  22. #include <fcs/bfa_fcs_rport.h>
  23. void bfa_fcs_rport_modinit(struct bfa_fcs_s *fcs);
  24. void bfa_fcs_rport_modexit(struct bfa_fcs_s *fcs);
  25. void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
  26. u16 len);
  27. void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport);
  28. struct bfa_fcs_rport_s *bfa_fcs_rport_create(struct bfa_fcs_port_s *port,
  29. u32 pid);
  30. void bfa_fcs_rport_delete(struct bfa_fcs_rport_s *rport);
  31. void bfa_fcs_rport_online(struct bfa_fcs_rport_s *rport);
  32. void bfa_fcs_rport_offline(struct bfa_fcs_rport_s *rport);
  33. void bfa_fcs_rport_start(struct bfa_fcs_port_s *port, struct fchs_s *rx_fchs,
  34. struct fc_logi_s *plogi_rsp);
  35. void bfa_fcs_rport_plogi_create(struct bfa_fcs_port_s *port,
  36. struct fchs_s *rx_fchs,
  37. struct fc_logi_s *plogi);
  38. void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
  39. struct fc_logi_s *plogi);
  40. void bfa_fcs_rport_logo_imp(struct bfa_fcs_rport_s *rport);
  41. void bfa_fcs_rport_itnim_ack(struct bfa_fcs_rport_s *rport);
  42. void bfa_fcs_rport_itntm_ack(struct bfa_fcs_rport_s *rport);
  43. void bfa_fcs_rport_tin_ack(struct bfa_fcs_rport_s *rport);
  44. void bfa_fcs_rport_fcptm_offline_done(struct bfa_fcs_rport_s *rport);
  45. int bfa_fcs_rport_get_state(struct bfa_fcs_rport_s *rport);
  46. struct bfa_fcs_rport_s *bfa_fcs_rport_create_by_wwn(struct bfa_fcs_port_s *port,
  47. wwn_t wwn);
  48. /* Rport Features */
  49. void bfa_fcs_rpf_init(struct bfa_fcs_rport_s *rport);
  50. void bfa_fcs_rpf_rport_online(struct bfa_fcs_rport_s *rport);
  51. void bfa_fcs_rpf_rport_offline(struct bfa_fcs_rport_s *rport);
  52. #endif /* __FCS_RPORT_H__ */