bfad_attr.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 __BFAD_ATTR_H__
  18. #define __BFAD_ATTR_H__
  19. /**
  20. * FC_transport_template FC transport template
  21. */
  22. struct Scsi_Host*
  23. bfad_os_dev_to_shost(struct scsi_target *starget);
  24. /**
  25. * FC transport template entry, get SCSI target port ID.
  26. */
  27. void
  28. bfad_im_get_starget_port_id(struct scsi_target *starget);
  29. /**
  30. * FC transport template entry, get SCSI target nwwn.
  31. */
  32. void
  33. bfad_im_get_starget_node_name(struct scsi_target *starget);
  34. /**
  35. * FC transport template entry, get SCSI target pwwn.
  36. */
  37. void
  38. bfad_im_get_starget_port_name(struct scsi_target *starget);
  39. /**
  40. * FC transport template entry, get SCSI host port ID.
  41. */
  42. void
  43. bfad_im_get_host_port_id(struct Scsi_Host *shost);
  44. struct Scsi_Host*
  45. bfad_os_starget_to_shost(struct scsi_target *starget);
  46. #endif /* __BFAD_ATTR_H__ */