scsi_tgt.h 807 B

12345678910111213141516171819202122
  1. /*
  2. * SCSI target definitions
  3. */
  4. #include <linux/dma-mapping.h>
  5. struct Scsi_Host;
  6. struct scsi_cmnd;
  7. struct scsi_lun;
  8. extern struct Scsi_Host *scsi_tgt_cmd_to_host(struct scsi_cmnd *);
  9. extern int scsi_tgt_alloc_queue(struct Scsi_Host *);
  10. extern void scsi_tgt_free_queue(struct Scsi_Host *);
  11. extern int scsi_tgt_queue_command(struct scsi_cmnd *, u64, struct scsi_lun *, u64);
  12. extern int scsi_tgt_tsk_mgmt_request(struct Scsi_Host *, u64, int, u64,
  13. struct scsi_lun *, void *);
  14. extern struct scsi_cmnd *scsi_host_get_command(struct Scsi_Host *,
  15. enum dma_data_direction, gfp_t);
  16. extern void scsi_host_put_command(struct Scsi_Host *, struct scsi_cmnd *);
  17. extern int scsi_tgt_it_nexus_create(struct Scsi_Host *, u64, char *);
  18. extern int scsi_tgt_it_nexus_destroy(struct Scsi_Host *, u64);