From 9f693fba83af62aaff8d52a3214df0c7e5ba6138 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Tue, 1 Sep 2020 12:17:55 +0000 Subject: 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) --- sys/dev/sdmmc/sdmmc_scsi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/dev/sdmmc/sdmmc_scsi.c') 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 @@ -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; -- cgit v1.2.3