X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fscsi%2Fscsi_transport.h;h=f6e0bb484c63efb9194c8be4ce90bc7b5da0d482;hb=f8e38dde33b839bb9e9f98e88688bfac1811d57a;hp=a4f1837a33b150b925e471e1c2938d35a6c4eded;hpb=3237ee78fc00f786d5f5aec6f9310b0e39069f15;p=linux-2.6 diff --git a/include/scsi/scsi_transport.h b/include/scsi/scsi_transport.h index a4f1837a33..f6e0bb484c 100644 --- a/include/scsi/scsi_transport.h +++ b/include/scsi/scsi_transport.h @@ -29,6 +29,14 @@ struct scsi_transport_template { struct transport_container target_attrs; struct transport_container device_attrs; + /* + * If set, call target_parent prior to allocating a scsi_target, + * so we get the appropriate parent for the target. This function + * is required for transports like FC and iSCSI that do not put the + * scsi_target under scsi_host. + */ + struct device *(*target_parent)(struct Scsi_Host *, int, uint); + /* The size of the specific transport attribute structure (a * space of this size will be left at the end of the * scsi_* structure */