scsiglue.c (8fa7fd74ef398370383df276ca41082ba35aafd8) scsiglue.c (ae38c78a03e1b77ad45248fcf097e4568e740209)
1/* Driver for USB Mass Storage compliant devices
2 * SCSI layer glue code
3 *
4 * Current development and maintenance by:
5 * (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
6 *
7 * Developed with the assistance of:
8 * (c) 2000 David L. Brown, Jr. (usb-storage@davidb.org)

--- 239 unchanged lines hidden (view full) ---

248 us->protocol == USB_PR_BULK)
249 us->use_last_sector_hacks = 1;
250 } else {
251
252 /* Non-disk-type devices don't need to blacklist any pages
253 * or to force 192-byte transfer lengths for MODE SENSE.
254 * But they do need to use MODE SENSE(10). */
255 sdev->use_10_for_ms = 1;
1/* Driver for USB Mass Storage compliant devices
2 * SCSI layer glue code
3 *
4 * Current development and maintenance by:
5 * (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
6 *
7 * Developed with the assistance of:
8 * (c) 2000 David L. Brown, Jr. (usb-storage@davidb.org)

--- 239 unchanged lines hidden (view full) ---

248 us->protocol == USB_PR_BULK)
249 us->use_last_sector_hacks = 1;
250 } else {
251
252 /* Non-disk-type devices don't need to blacklist any pages
253 * or to force 192-byte transfer lengths for MODE SENSE.
254 * But they do need to use MODE SENSE(10). */
255 sdev->use_10_for_ms = 1;
256
257 /* Some (fake) usb cdrom devices don't like READ_DISC_INFO */
258 if (us->fflags & US_FL_NO_READ_DISC_INFO)
259 sdev->no_read_disc_info = 1;
256 }
257
258 /* The CB and CBI transports have no way to pass LUN values
259 * other than the bits in the second byte of a CDB. But those
260 * bits don't get set to the LUN value if the device reports
261 * scsi_level == 0 (UNKNOWN). Hence such devices must necessarily
262 * be single-LUN.
263 */

--- 309 unchanged lines hidden ---
260 }
261
262 /* The CB and CBI transports have no way to pass LUN values
263 * other than the bits in the second byte of a CDB. But those
264 * bits don't get set to the LUN value if the device reports
265 * scsi_level == 0 (UNKNOWN). Hence such devices must necessarily
266 * be single-LUN.
267 */

--- 309 unchanged lines hidden ---