lport_priv.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #ifndef __VP_PRIV_H__
  18. #define __VP_PRIV_H__
  19. #include <fcs/bfa_fcs_lport.h>
  20. #include <fcs/bfa_fcs_vport.h>
  21. /*
  22. * Functions exported by vps
  23. */
  24. void bfa_fcs_vport_init(struct bfa_fcs_vport_s *vport);
  25. /*
  26. * Functions exported by vps
  27. */
  28. void bfa_fcs_vps_online(struct bfa_fcs_port_s *port);
  29. void bfa_fcs_vps_offline(struct bfa_fcs_port_s *port);
  30. void bfa_fcs_vps_lip(struct bfa_fcs_port_s *port);
  31. /*
  32. * Functions exported by port_fab
  33. */
  34. void bfa_fcs_port_fab_init(struct bfa_fcs_port_s *vport);
  35. void bfa_fcs_port_fab_online(struct bfa_fcs_port_s *vport);
  36. void bfa_fcs_port_fab_offline(struct bfa_fcs_port_s *vport);
  37. void bfa_fcs_port_fab_rx_frame(struct bfa_fcs_port_s *port,
  38. u8 *rx_frame, u32 len);
  39. /*
  40. * Functions exported by VP-NS.
  41. */
  42. void bfa_fcs_port_ns_init(struct bfa_fcs_port_s *vport);
  43. void bfa_fcs_port_ns_offline(struct bfa_fcs_port_s *vport);
  44. void bfa_fcs_port_ns_online(struct bfa_fcs_port_s *vport);
  45. void bfa_fcs_port_ns_query(struct bfa_fcs_port_s *port);
  46. /*
  47. * Functions exported by VP-SCN
  48. */
  49. void bfa_fcs_port_scn_init(struct bfa_fcs_port_s *vport);
  50. void bfa_fcs_port_scn_offline(struct bfa_fcs_port_s *vport);
  51. void bfa_fcs_port_scn_online(struct bfa_fcs_port_s *vport);
  52. void bfa_fcs_port_scn_process_rscn(struct bfa_fcs_port_s *port,
  53. struct fchs_s *rx_frame, u32 len);
  54. /*
  55. * Functions exported by VP-N2N
  56. */
  57. void bfa_fcs_port_n2n_init(struct bfa_fcs_port_s *port);
  58. void bfa_fcs_port_n2n_online(struct bfa_fcs_port_s *port);
  59. void bfa_fcs_port_n2n_offline(struct bfa_fcs_port_s *port);
  60. void bfa_fcs_port_n2n_rx_frame(struct bfa_fcs_port_s *port,
  61. u8 *rx_frame, u32 len);
  62. /*
  63. * Functions exported by VP-LOOP
  64. */
  65. void bfa_fcs_port_loop_init(struct bfa_fcs_port_s *port);
  66. void bfa_fcs_port_loop_online(struct bfa_fcs_port_s *port);
  67. void bfa_fcs_port_loop_offline(struct bfa_fcs_port_s *port);
  68. void bfa_fcs_port_loop_lip(struct bfa_fcs_port_s *port);
  69. void bfa_fcs_port_loop_rx_frame(struct bfa_fcs_port_s *port,
  70. u8 *rx_frame, u32 len);
  71. #endif /* __VP_PRIV_H__ */