diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-01-25 17:13:38 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 12:58:08 -0500 |
commit | 1b9dce94c8a24a3f1a01fcdf688f2d903b32acdf (patch) | |
tree | c0e17494a5eb8f8701d3674afff26b91ccf593b3 /include/scsi/osd_initiator.h | |
parent | c6572c983726fe3f3bb5f07e9afe3a9b8e402d1b (diff) | |
download | kernel_goldelico_gta04-1b9dce94c8a24a3f1a01fcdf688f2d903b32acdf.zip kernel_goldelico_gta04-1b9dce94c8a24a3f1a01fcdf688f2d903b32acdf.tar.gz kernel_goldelico_gta04-1b9dce94c8a24a3f1a01fcdf688f2d903b32acdf.tar.bz2 |
[SCSI] libosd: OSDv2 auto detection
Auto detect an OSDv2 or OSDv1 target at run time. Note how none
of the OSD API calls change. The tests do not know what device
version it is.
This test now passes against both the IBM-OSD-SIM OSD1 target
as well as OSC's OSD2 target.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Reviewed-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/osd_initiator.h')
-rw-r--r-- | include/scsi/osd_initiator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/osd_initiator.h b/include/scsi/osd_initiator.h index 8482777..24edeae 100644 --- a/include/scsi/osd_initiator.h +++ b/include/scsi/osd_initiator.h @@ -67,6 +67,9 @@ void osduld_unregister_test(unsigned ioctl); void osd_dev_init(struct osd_dev *od, struct scsi_device *scsi_device); void osd_dev_fini(struct osd_dev *od); +/* some hi level device operations */ +int osd_auto_detect_ver(struct osd_dev *od, void *caps); /* GFP_KERNEL */ + /* we might want to use function vector in the future */ static inline void osd_dev_set_ver(struct osd_dev *od, enum osd_std_version v) { |