fcal.h 646 B

123456789101112131415161718192021222324252627
  1. /* fcal.h: Generic Fibre Channel Arbitrated Loop SCSI host adapter driver definitions.
  2. *
  3. * Copyright (C) 1998,1999 Jakub Jelinek (jj@ultra.linux.cz)
  4. */
  5. #ifndef _FCAL_H
  6. #define _FCAL_H
  7. #include "../fc4/fcp_impl.h"
  8. struct fcal {
  9. /* fc must be first */
  10. fc_channel *fc;
  11. unsigned char map[128];
  12. fc_wwn nport_wwn[128];
  13. fc_wwn node_wwn[128];
  14. };
  15. /* Arbitrary constant. Cannot be too large, as fc4 layer has limitations
  16. for a particular channel */
  17. #define FCAL_CAN_QUEUE 512
  18. int fcal_detect(struct scsi_host_template *);
  19. int fcal_release(struct Scsi_Host *);
  20. int fcal_slave_configure(struct scsi_device *);
  21. #endif /* !(_FCAL_H) */