diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-01-25 09:56:47 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 13:58:06 -0400 |
commit | 95b05a7db5865855c32e0bb8b244c3a7aac1cfeb (patch) | |
tree | 48f1af3fb003ff537f6288a169e863ba194dba70 /include/scsi | |
parent | 02941a530ef736210b4cf8b24dd34c238d5d5a40 (diff) |
[SCSI] osd_uld: OSD scsi ULD
Add a Linux driver module that registers as a SCSI ULD and probes
for OSD type SCSI devices.
When an OSD-type SCSI device is found a character device is created
in the form of /dev/osdX - where X goes from 0 up to hard coded 64.
The Major character device number used is 260.
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')
-rw-r--r-- | include/scsi/osd_initiator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/osd_initiator.h b/include/scsi/osd_initiator.h index 1d92247f820b..a5dbbddcf73b 100644 --- a/include/scsi/osd_initiator.h +++ b/include/scsi/osd_initiator.h | |||
@@ -33,6 +33,12 @@ struct osd_dev { | |||
33 | unsigned def_timeout; | 33 | unsigned def_timeout; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | /* Add/remove test ioctls from external modules */ | ||
37 | typedef int (do_test_fn)(struct osd_dev *od, unsigned cmd, unsigned long arg); | ||
38 | int osduld_register_test(unsigned ioctl, do_test_fn *do_test); | ||
39 | void osduld_unregister_test(unsigned ioctl); | ||
40 | |||
41 | /* These are called by uld at probe time */ | ||
36 | void osd_dev_init(struct osd_dev *od, struct scsi_device *scsi_device); | 42 | void osd_dev_init(struct osd_dev *od, struct scsi_device *scsi_device); |
37 | void osd_dev_fini(struct osd_dev *od); | 43 | void osd_dev_fini(struct osd_dev *od); |
38 | 44 | ||