diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-09-01 12:17:55 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-09-01 12:17:55 +0000 |
commit | 9f693fba83af62aaff8d52a3214df0c7e5ba6138 (patch) | |
tree | 15a61a8eddf28daa114bcde60cec667847dd655d /sys/dev/sdmmc/sdmmc_scsi.c | |
parent | 80e02d9fa05c9c7b91d522c884c529721492d968 (diff) |
Rename [READ|WRITE]_BIG to [READ|WRITE]_10. Rename struct scsi_rw_big to
struct scsi_rw_10.
ok gnezdo@ jmatthew@ (who also did sparc64 compile test)
Diffstat (limited to 'sys/dev/sdmmc/sdmmc_scsi.c')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_scsi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c index a7281352a00..537dcf9755f 100644 --- a/sys/dev/sdmmc/sdmmc_scsi.c +++ b/sys/dev/sdmmc/sdmmc_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_scsi.c,v 1.53 2020/07/25 16:34:30 krw Exp $ */ +/* $OpenBSD: sdmmc_scsi.c,v 1.54 2020/09/01 12:17:53 krw Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -287,16 +287,16 @@ sdmmc_scsi_decode_rw(struct scsi_xfer *xs, u_int32_t *blocknop, u_int32_t *blockcntp) { struct scsi_rw *rw; - struct scsi_rw_big *rwb; - + struct scsi_rw_10 *rw10; + if (xs->cmdlen == 6) { rw = (struct scsi_rw *)xs->cmd; *blocknop = _3btol(rw->addr) & (SRW_TOPADDR << 16 | 0xffff); *blockcntp = rw->length ? rw->length : 0x100; } else { - rwb = (struct scsi_rw_big *)xs->cmd; - *blocknop = _4btol(rwb->addr); - *blockcntp = _2btol(rwb->length); + rw10 = (struct scsi_rw_10 *)xs->cmd; + *blocknop = _4btol(rw10->addr); + *blockcntp = _2btol(rw10->length); } } @@ -330,9 +330,9 @@ sdmmc_scsi_cmd(struct scsi_xfer *xs) switch (xs->cmd->opcode) { case READ_COMMAND: - case READ_BIG: + case READ_10: case WRITE_COMMAND: - case WRITE_BIG: + case WRITE_10: /* Deal with I/O outside the switch. */ break; |