]> err.no Git - linux-2.6/blobdiff - include/scsi/scsi_device.h
[PATCH] Add the vgetcpu vsyscall
[linux-2.6] / include / scsi / scsi_device.h
index 1ec17ee1281589ab8f955fec57d5333f8c048f20..895d212864cd99bafaaa0240e17b915133beaad1 100644 (file)
@@ -261,6 +261,11 @@ extern int scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage,
                           unsigned char *buffer, int len, int timeout,
                           int retries, struct scsi_mode_data *data,
                           struct scsi_sense_hdr *);
+extern int scsi_mode_select(struct scsi_device *sdev, int pf, int sp,
+                           int modepage, unsigned char *buffer, int len,
+                           int timeout, int retries,
+                           struct scsi_mode_data *data,
+                           struct scsi_sense_hdr *);
 extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout,
                                int retries);
 extern int scsi_device_set_state(struct scsi_device *sdev,
@@ -293,6 +298,11 @@ extern int scsi_execute_async(struct scsi_device *sdev,
                              void (*done)(void *, char *, int, int),
                              gfp_t gfp);
 
+static inline void scsi_device_reprobe(struct scsi_device *sdev)
+{
+       device_reprobe(&sdev->sdev_gendev);
+}
+
 static inline unsigned int sdev_channel(struct scsi_device *sdev)
 {
        return sdev->channel;