add some casts to (u_long) to shut up gcc

This commit is contained in:
mrg 2000-04-14 08:22:49 +00:00
parent f4be79ac40
commit dfe176302c
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lsi64854.c,v 1.8 1999/06/05 08:35:45 pk Exp $ */
/* $NetBSD: lsi64854.c,v 1.9 2000/04/14 08:27:17 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -287,7 +287,7 @@ lsi64854_setup(sc, addr, len, datain, dmasize)
panic("%s: cannot allocate DVMA address",
sc->sc_dev.dv_xname);
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
(bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
(bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
datain
? BUS_DMASYNC_PREREAD
: BUS_DMASYNC_PREWRITE);
@ -422,7 +422,7 @@ lsi64854_scsi_intr(arg)
if (sc->sc_dmamap->dm_nsegs > 0) {
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
(bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
(bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
(csr & D_WRITE) != 0
? BUS_DMASYNC_POSTREAD
: BUS_DMASYNC_POSTWRITE);
@ -522,7 +522,7 @@ lsi64854_setup_pp(sc, addr, len, datain, dmasize)
panic("%s: cannot allocate DVMA address",
sc->sc_dev.dv_xname);
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
(bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
(bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
datain
? BUS_DMASYNC_PREREAD
: BUS_DMASYNC_PREWRITE);
@ -597,7 +597,7 @@ lsi64854_pp_intr(arg)
if (sc->sc_dmamap->dm_nsegs > 0) {
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
(bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
(bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
(csr & D_WRITE) != 0
? BUS_DMASYNC_POSTREAD
: BUS_DMASYNC_POSTWRITE);

View File

@ -1,4 +1,4 @@
/* $NetBSD: cs4231_sbus.c,v 1.12 1999/11/21 15:01:51 pk Exp $ */
/* $NetBSD: cs4231_sbus.c,v 1.13 2000/04/14 08:22:49 mrg Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -119,7 +119,7 @@ cs4231_attach_sbus(parent, self, aux)
}
sc->sc_ad1848.sc_ioh = bh;
sc->sc_dmareg = (struct apc_dma *)(bh + CS4231_REG_SIZE);
sc->sc_dmareg = (struct apc_dma *)(u_long)(bh + CS4231_REG_SIZE);
cs4231_init(sc);

View File

@ -1,4 +1,4 @@
/* $NetBSD: lebuffer.c,v 1.6 2000/01/11 12:59:44 pk Exp $ */
/* $NetBSD: lebuffer.c,v 1.7 2000/04/14 08:22:49 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -116,7 +116,7 @@ lebufattach(parent, self, aux)
* Lance ring-buffers can be stored. Note the buffer's location
* and size, so the `le' driver can pick them up.
*/
sc->sc_buffer = (caddr_t)bh;
sc->sc_buffer = (caddr_t)(u_long)bh;
sc->sc_bufsiz = sa->sa_size;
node = sc->sc_node = sa->sa_node;