diff options
| author | soren <soren@NetBSD.org> | 2001-12-15 11:41:09 +0000 |
|---|---|---|
| committer | soren <soren@NetBSD.org> | 2001-12-15 11:41:09 +0000 |
| commit | df984ecc5201bcffbb072e1b7b222ead4a643972 (patch) | |
| tree | bda3a9dced957d1c6cc1a54560737e894e4cbd95 /sys/dev | |
| parent | 505a7027b69a885e393a3a79f75944440db9e122 (diff) | |
Use bus_size_t's for bus space read/write offsets.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/elink3.c | 12 | ||||
| -rw-r--r-- | sys/dev/pcmcia/if_xi.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/ic/elink3.c b/sys/dev/ic/elink3.c index c3eaaca5921..c50d2886f5a 100644 --- a/sys/dev/ic/elink3.c +++ b/sys/dev/ic/elink3.c @@ -1,4 +1,4 @@ -/* $NetBSD: elink3.c,v 1.100 2001/11/13 13:14:37 lukem Exp $ */ +/* $NetBSD: elink3.c,v 1.101 2001/12/15 11:41:09 soren Exp $ */ /*- * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. @@ -69,7 +69,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.100 2001/11/13 13:14:37 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.101 2001/12/15 11:41:09 soren Exp $"); #include "opt_inet.h" #include "opt_ns.h" @@ -1135,7 +1135,7 @@ epstart(ifp) bus_space_handle_t ioh = sc->sc_ioh; struct mbuf *m, *m0; int sh, len, pad; - bus_addr_t txreg; + bus_size_t txreg; /* Don't transmit if interface is busy or not running */ if ((ifp->if_flags & (IFF_RUNNING | IFF_OACTIVE)) != IFF_RUNNING) @@ -1603,7 +1603,7 @@ epget(sc, totlen) bus_space_handle_t ioh = sc->sc_ioh; struct ifnet *ifp = &sc->sc_ethercom.ec_if; struct mbuf *m; - bus_addr_t rxreg; + bus_size_t rxreg; int len, remaining; int s; caddr_t newdata; @@ -1906,7 +1906,7 @@ epbusyeeprom(sc) { bus_space_tag_t iot = sc->sc_iot; bus_space_handle_t ioh = sc->sc_ioh; - bus_addr_t eecmd; + bus_size_t eecmd; int i = 100, j; uint16_t busybit; @@ -1950,7 +1950,7 @@ ep_read_eeprom(sc, offset) struct ep_softc *sc; u_int16_t offset; { - bus_addr_t eecmd, eedata; + bus_size_t eecmd, eedata; u_int16_t readcmd; if (sc->ep_chipset == ELINK_CHIPSET_CORKSCREW) { diff --git a/sys/dev/pcmcia/if_xi.c b/sys/dev/pcmcia/if_xi.c index 66e2215e5c5..dec07170d2c 100644 --- a/sys/dev/pcmcia/if_xi.c +++ b/sys/dev/pcmcia/if_xi.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_xi.c,v 1.18 2001/11/13 07:26:33 lukem Exp $ */ +/* $NetBSD: if_xi.c,v 1.19 2001/12/15 11:45:11 soren Exp $ */ /* OpenBSD: if_xe.c,v 1.9 1999/09/16 11:28:42 niklas Exp */ /* @@ -49,7 +49,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_xi.c,v 1.18 2001/11/13 07:26:33 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_xi.c,v 1.19 2001/12/15 11:45:11 soren Exp $"); #include "opt_inet.h" #include "bpfilter.h" @@ -155,7 +155,7 @@ struct xi_softc { bus_space_tag_t sc_bst; /* Bus cookie */ bus_space_handle_t sc_bsh; /* Bus I/O handle */ - bus_addr_t sc_offset; /* Offset of registers */ + bus_size_t sc_offset; /* Offset of registers */ u_int8_t sc_rev; /* Chip revision */ u_int32_t sc_flags; /* Misc. flags */ @@ -1075,7 +1075,7 @@ xi_mdi_probe(sc) { bus_space_tag_t bst = sc->sc_bst; bus_space_handle_t bsh = sc->sc_bsh; - bus_addr_t offset = sc->sc_offset; + bus_size_t offset = sc->sc_offset; u_int8_t x; /* Pull clock bit MDCK low... */ |
