diff options
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_device.h | 13 | ||||
-rw-r--r-- | include/scsi/scsi_request.h | 15 |
2 files changed, 11 insertions, 17 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 835af8ecbb7c..9181068883ce 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -8,9 +8,17 @@ | |||
8 | 8 | ||
9 | struct request_queue; | 9 | struct request_queue; |
10 | struct scsi_cmnd; | 10 | struct scsi_cmnd; |
11 | struct scsi_mode_data; | ||
12 | struct scsi_lun; | 11 | struct scsi_lun; |
13 | 12 | ||
13 | struct scsi_mode_data { | ||
14 | __u32 length; | ||
15 | __u16 block_descriptor_length; | ||
16 | __u8 medium_type; | ||
17 | __u8 device_specific; | ||
18 | __u8 header_length; | ||
19 | __u8 longlba:1; | ||
20 | }; | ||
21 | |||
14 | /* | 22 | /* |
15 | * sdev state: If you alter this, you also need to alter scsi_sysfs.c | 23 | * sdev state: If you alter this, you also need to alter scsi_sysfs.c |
16 | * (for the ascii descriptions) and the state model enforcer: | 24 | * (for the ascii descriptions) and the state model enforcer: |
@@ -228,7 +236,8 @@ extern int scsi_set_medium_removal(struct scsi_device *, char); | |||
228 | 236 | ||
229 | extern int scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage, | 237 | extern int scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage, |
230 | unsigned char *buffer, int len, int timeout, | 238 | unsigned char *buffer, int len, int timeout, |
231 | int retries, struct scsi_mode_data *data); | 239 | int retries, struct scsi_mode_data *data, |
240 | char *sense); | ||
232 | extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout, | 241 | extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout, |
233 | int retries); | 242 | int retries); |
234 | extern int scsi_device_set_state(struct scsi_device *sdev, | 243 | extern int scsi_device_set_state(struct scsi_device *sdev, |
diff --git a/include/scsi/scsi_request.h b/include/scsi/scsi_request.h index d64903a617c3..f5dfdfec9fea 100644 --- a/include/scsi/scsi_request.h +++ b/include/scsi/scsi_request.h | |||
@@ -58,19 +58,4 @@ extern int scsi_execute_req(struct scsi_device *sdev, unsigned char *cmd, | |||
58 | int data_direction, void *buffer, unsigned bufflen, | 58 | int data_direction, void *buffer, unsigned bufflen, |
59 | unsigned char *sense, int timeout, int retries); | 59 | unsigned char *sense, int timeout, int retries); |
60 | 60 | ||
61 | struct scsi_mode_data { | ||
62 | __u32 length; | ||
63 | __u16 block_descriptor_length; | ||
64 | __u8 medium_type; | ||
65 | __u8 device_specific; | ||
66 | __u8 header_length; | ||
67 | __u8 longlba:1; | ||
68 | }; | ||
69 | |||
70 | extern int __scsi_mode_sense(struct scsi_request *SRpnt, int dbd, | ||
71 | int modepage, unsigned char *buffer, int len, | ||
72 | int timeout, int retries, | ||
73 | struct scsi_mode_data *data); | ||
74 | |||
75 | |||
76 | #endif /* _SCSI_SCSI_REQUEST_H */ | 61 | #endif /* _SCSI_SCSI_REQUEST_H */ |