mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Pass through the commands necessary to format USB floppy devices,
from within umass_ufi_transform(). This includes the 12-byte commands FORMAT_UNIT, WRITE_AND_VERIFY, VERIFY, and READ_FORMAT_CAPACITIES (sorted in numerical order). Reviewed by: ken, scottl MFC after: 2 weeks
This commit is contained in:
parent
c68a9309c3
commit
cdd2389652
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136424
@ -2890,6 +2890,7 @@ umass_ufi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen,
|
||||
|
||||
case REZERO_UNIT:
|
||||
case REQUEST_SENSE:
|
||||
case FORMAT_UNIT:
|
||||
case INQUIRY:
|
||||
case START_STOP_UNIT:
|
||||
case SEND_DIAGNOSTIC:
|
||||
@ -2898,18 +2899,16 @@ umass_ufi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen,
|
||||
case READ_10:
|
||||
case WRITE_10:
|
||||
case POSITION_TO_ELEMENT: /* SEEK_10 */
|
||||
case WRITE_AND_VERIFY:
|
||||
case VERIFY:
|
||||
case MODE_SELECT_10:
|
||||
case MODE_SENSE_10:
|
||||
case READ_12:
|
||||
case WRITE_12:
|
||||
case READ_FORMAT_CAPACITIES:
|
||||
memcpy(*rcmd, cmd, cmdlen);
|
||||
return 1;
|
||||
|
||||
/* Other UFI commands: FORMAT_UNIT, READ_FORMAT_CAPACITY,
|
||||
* VERIFY, WRITE_AND_VERIFY.
|
||||
* These should be checked whether they somehow can be made to fit.
|
||||
*/
|
||||
|
||||
default:
|
||||
printf("%s: Unsupported UFI command 0x%02x\n",
|
||||
USBDEVNAME(sc->sc_dev), cmd[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user