scsi_transport_srp.h 678 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef SCSI_TRANSPORT_SRP_H
  2. #define SCSI_TRANSPORT_SRP_H
  3. #include <linux/transport_class.h>
  4. #include <linux/types.h>
  5. #include <linux/mutex.h>
  6. struct srp_rport_identifiers {
  7. u8 port_id[16];
  8. };
  9. struct srp_rport {
  10. struct device dev;
  11. u8 port_id[16];
  12. };
  13. struct srp_function_template {
  14. /* later */
  15. };
  16. extern struct scsi_transport_template *
  17. srp_attach_transport(struct srp_function_template *);
  18. extern void srp_release_transport(struct scsi_transport_template *);
  19. extern struct srp_rport *srp_rport_add(struct Scsi_Host *,
  20. struct srp_rport_identifiers *);
  21. extern void srp_rport_del(struct srp_rport *);
  22. extern void srp_remove_host(struct Scsi_Host *);
  23. #endif