From 268eb959c4a0c3cc7229850ca096a7f6323ce457 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sat, 9 Jan 1999 03:16:17 +0000 Subject: [PATCH] Make this compile again after the void * arith changes. --- sys/dev/scsipi/atapi_wdc.c | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/sys/dev/scsipi/atapi_wdc.c b/sys/dev/scsipi/atapi_wdc.c index 502c7979d17d..3208e8a5a91e 100644 --- a/sys/dev/scsipi/atapi_wdc.c +++ b/sys/dev/scsipi/atapi_wdc.c @@ -1,4 +1,4 @@ -/* $NetBSD: atapi_wdc.c,v 1.13 1999/01/08 18:10:36 augustss Exp $ */ +/* $NetBSD: atapi_wdc.c,v 1.14 1999/01/09 03:16:17 thorpej Exp $ */ /* * Copyright (c) 1998 Manuel Bouyer. @@ -446,12 +446,14 @@ again: if ((chp->wdc->cap & WDC_CAPABILITY_ATAPI_NOSTREAM)) { bus_space_write_multi_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), xfer->c_bcount >> 1); } else { bus_space_write_multi_stream_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), xfer->c_bcount >> 1); } for (i = xfer->c_bcount; i < len; i += 2) @@ -464,12 +466,14 @@ again: if ((chp->wdc->cap & WDC_CAPABILITY_ATAPI_NOSTREAM)) bus_space_write_multi_4(chp->data32iot, chp->data32ioh, 0, - (char *)xfer->databuf + xfer->c_skip, + (u_int32_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 2); else bus_space_write_multi_stream_4(chp->data32iot, chp->data32ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int32_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 2); xfer->c_skip += len & 0xfffffffc; @@ -480,12 +484,14 @@ again: if ((chp->wdc->cap & WDC_CAPABILITY_ATAPI_NOSTREAM)) bus_space_write_multi_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 1); else bus_space_write_multi_stream_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 1); xfer->c_skip += len; xfer->c_bcount -= len; @@ -519,12 +525,14 @@ again: if ((chp->wdc->cap & WDC_CAPABILITY_ATAPI_NOSTREAM)) { bus_space_read_multi_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), xfer->c_bcount >> 1); } else { bus_space_read_multi_stream_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), xfer->c_bcount >> 1); } wdcbit_bucket(chp, len - xfer->c_bcount); @@ -535,12 +543,14 @@ again: if ((chp->wdc->cap & WDC_CAPABILITY_ATAPI_NOSTREAM)) bus_space_read_multi_4(chp->data32iot, chp->data32ioh, 0, - (char *)xfer->databuf + xfer->c_skip, + (u_int32_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 2); else bus_space_read_multi_stream_4(chp->data32iot, chp->data32ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int32_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 2); xfer->c_skip += len & 0xfffffffc; @@ -551,12 +561,14 @@ again: if ((chp->wdc->cap & WDC_CAPABILITY_ATAPI_NOSTREAM)) bus_space_read_multi_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 1); else bus_space_read_multi_stream_2(chp->cmd_iot, chp->cmd_ioh, wd_data, - (char *)xfer->databuf + xfer->c_skip, + (u_int16_t *)((char *)xfer->databuf + + xfer->c_skip), len >> 1); xfer->c_skip += len; xfer->c_bcount -=len;