Commit 6bedd6fe authored by James Bottomley's avatar James Bottomley

scsi: LLDD dynamic scan aids

From: 	James.Smart@Emulex.Com

With rejection fixes around the removal of scsi_syms.c
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent fffdcfe4
......@@ -1230,6 +1230,7 @@ int scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel,
return 0;
}
EXPORT_SYMBOL(scsi_scan_host_selected);
/**
* scsi_scan_host - scan the given adapter
......@@ -1242,6 +1243,18 @@ void scsi_scan_host(struct Scsi_Host *shost)
}
EXPORT_SYMBOL(scsi_scan_host);
/**
* scsi_scan_single_target - scan the given SCSI target
* @shost: adapter to scan
* @chan: channel to scan
* @id: target id to scan
**/
void scsi_scan_single_target(struct Scsi_Host *shost,
unsigned int chan, unsigned int id)
{
scsi_scan_host_selected(shost, chan, id, SCAN_WILD_CARD, 1);
}
void scsi_forget_host(struct Scsi_Host *shost)
{
struct scsi_device *sdev, *tmp;
......
......@@ -527,6 +527,9 @@ struct Scsi_Host {
extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int);
extern int __must_check scsi_add_host(struct Scsi_Host *, struct device *);
extern void scsi_scan_host(struct Scsi_Host *);
extern void scsi_scan_single_target(struct Scsi_Host *, unsigned int,
unsigned int);
extern void scsi_rescan_device(struct device *);
extern void scsi_remove_host(struct Scsi_Host *);
extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *);
extern void scsi_host_put(struct Scsi_Host *t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment