bfad_attr.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. * bfad_attr.h VMware driver configuration interface module.
  21. */
  22. /**
  23. * FC_transport_template FC transport template
  24. */
  25. struct Scsi_Host*
  26. bfad_os_dev_to_shost(struct scsi_target *starget);
  27. /**
  28. * FC transport template entry, get SCSI target port ID.
  29. */
  30. void
  31. bfad_im_get_starget_port_id(struct scsi_target *starget);
  32. /**
  33. * FC transport template entry, get SCSI target nwwn.
  34. */
  35. void
  36. bfad_im_get_starget_node_name(struct scsi_target *starget);
  37. /**
  38. * FC transport template entry, get SCSI target pwwn.
  39. */
  40. void
  41. bfad_im_get_starget_port_name(struct scsi_target *starget);
  42. /**
  43. * FC transport template entry, get SCSI host port ID.
  44. */
  45. void
  46. bfad_im_get_host_port_id(struct Scsi_Host *shost);
  47. /**
  48. * FC transport template entry, issue a LIP.
  49. */
  50. int
  51. bfad_im_issue_fc_host_lip(struct Scsi_Host *shost);
  52. struct Scsi_Host*
  53. bfad_os_starget_to_shost(struct scsi_target *starget);
  54. #endif /* __BFAD_ATTR_H__ */