bfa_fcb_fcpim.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. * : bfad_fcpim.h - BFA FCS initiator mode remote port callbacks
  19. */
  20. #ifndef __BFAD_FCB_FCPIM_H__
  21. #define __BFAD_FCB_FCPIM_H__
  22. struct bfad_itnim_s;
  23. /*
  24. * RPIM callbacks
  25. */
  26. /**
  27. * Memory allocation for remote port instance. Called before PRLI is
  28. * initiated to the remote target port.
  29. *
  30. * @param[in] bfad - driver instance
  31. * @param[out] itnim - FCS remote port (IM) instance
  32. * @param[out] itnim_drv - driver remote port (IM) instance
  33. *
  34. * @return None
  35. */
  36. void bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim,
  37. struct bfad_itnim_s **itnim_drv);
  38. /**
  39. * Free remote port (IM) instance.
  40. *
  41. * @param[in] bfad - driver instance
  42. * @param[in] itnim_drv - driver remote port instance
  43. *
  44. * @return None
  45. */
  46. void bfa_fcb_itnim_free(struct bfad_s *bfad,
  47. struct bfad_itnim_s *itnim_drv);
  48. /**
  49. * Notification of when login with a remote target device is complete.
  50. *
  51. * @param[in] itnim_drv - driver remote port instance
  52. *
  53. * @return None
  54. */
  55. void bfa_fcb_itnim_online(struct bfad_itnim_s *itnim_drv);
  56. /**
  57. * Notification when login with the remote device is severed.
  58. *
  59. * @param[in] itnim_drv - driver remote port instance
  60. *
  61. * @return None
  62. */
  63. void bfa_fcb_itnim_offline(struct bfad_itnim_s *itnim_drv);
  64. void bfa_fcb_itnim_tov_begin(struct bfad_itnim_s *itnim_drv);
  65. void bfa_fcb_itnim_tov(struct bfad_itnim_s *itnim_drv);
  66. #endif /* __BFAD_FCB_FCPIM_H__ */