usb.c (792f94f5473beefd7baee437438b6450ac8a35b4) usb.c (050bc4e846af24e77af82d0fa5f718e0919d15a4)
1/*
2 * Driver for USB Mass Storage compliant devices
3 *
4 * Current development and maintenance by:
5 * (c) 1999-2003 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)

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

493 US_FL_FIX_CAPACITY | US_FL_IGNORE_UAS |
494 US_FL_CAPACITY_HEURISTICS | US_FL_IGNORE_DEVICE |
495 US_FL_NOT_LOCKABLE | US_FL_MAX_SECTORS_64 |
496 US_FL_CAPACITY_OK | US_FL_IGNORE_RESIDUE |
497 US_FL_SINGLE_LUN | US_FL_NO_WP_DETECT |
498 US_FL_NO_READ_DISC_INFO | US_FL_NO_READ_CAPACITY_16 |
499 US_FL_INITIAL_READ10 | US_FL_WRITE_CACHE |
500 US_FL_NO_ATA_1X | US_FL_NO_REPORT_OPCODES |
1/*
2 * Driver for USB Mass Storage compliant devices
3 *
4 * Current development and maintenance by:
5 * (c) 1999-2003 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)

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

493 US_FL_FIX_CAPACITY | US_FL_IGNORE_UAS |
494 US_FL_CAPACITY_HEURISTICS | US_FL_IGNORE_DEVICE |
495 US_FL_NOT_LOCKABLE | US_FL_MAX_SECTORS_64 |
496 US_FL_CAPACITY_OK | US_FL_IGNORE_RESIDUE |
497 US_FL_SINGLE_LUN | US_FL_NO_WP_DETECT |
498 US_FL_NO_READ_DISC_INFO | US_FL_NO_READ_CAPACITY_16 |
499 US_FL_INITIAL_READ10 | US_FL_WRITE_CACHE |
500 US_FL_NO_ATA_1X | US_FL_NO_REPORT_OPCODES |
501 US_FL_MAX_SECTORS_240 | US_FL_NO_REPORT_LUNS);
501 US_FL_MAX_SECTORS_240 | US_FL_NO_REPORT_LUNS |
502 US_FL_ALWAYS_SYNC);
502
503 p = quirks;
504 while (*p) {
505 /* Each entry consists of VID:PID:flags */
506 if (vid == simple_strtoul(p, &p, 16) &&
507 *p == ':' &&
508 pid == simple_strtoul(p+1, &p, 16) &&
509 *p == ':')

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

576 f |= US_FL_NO_ATA_1X;
577 break;
578 case 'u':
579 f |= US_FL_IGNORE_UAS;
580 break;
581 case 'w':
582 f |= US_FL_NO_WP_DETECT;
583 break;
503
504 p = quirks;
505 while (*p) {
506 /* Each entry consists of VID:PID:flags */
507 if (vid == simple_strtoul(p, &p, 16) &&
508 *p == ':' &&
509 pid == simple_strtoul(p+1, &p, 16) &&
510 *p == ':')

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

577 f |= US_FL_NO_ATA_1X;
578 break;
579 case 'u':
580 f |= US_FL_IGNORE_UAS;
581 break;
582 case 'w':
583 f |= US_FL_NO_WP_DETECT;
584 break;
585 case 'y':
586 f |= US_FL_ALWAYS_SYNC;
587 break;
584 /* Ignore unrecognized flag characters */
585 }
586 }
587 *fflags = (*fflags & ~mask) | f;
588}
589EXPORT_SYMBOL_GPL(usb_stor_adjust_quirks);
590
591/* Get the unusual_devs entries and the string descriptors */

--- 586 unchanged lines hidden ---
588 /* Ignore unrecognized flag characters */
589 }
590 }
591 *fflags = (*fflags & ~mask) | f;
592}
593EXPORT_SYMBOL_GPL(usb_stor_adjust_quirks);
594
595/* Get the unusual_devs entries and the string descriptors */

--- 586 unchanged lines hidden ---