diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-06 21:19:17 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-06 21:19:17 +0000 |
commit | 5203196b0a0d022c510861b161a6d2439ccf76bb (patch) | |
tree | 61deb28e9db0aab73cd8f1a67eb4c228b070e74b | |
parent | 942047de14064dd816e1ce78681769e2cb9e9845 (diff) | |
download | FreeBSD-src-5203196b0a0d022c510861b161a6d2439ccf76bb.zip FreeBSD-src-5203196b0a0d022c510861b161a6d2439ccf76bb.tar.gz |
Use bus_addr_t instead of u_int32_t in functions to convert between
physical and virtual addresses.
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index 9fa12e5..9f28432 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -113,7 +113,7 @@ static __inline int dpt_wait(dpt_softc_t *dpt, u_int bits, static __inline struct dpt_ccb* dptgetccb(struct dpt_softc *dpt); static __inline void dptfreeccb(struct dpt_softc *dpt, struct dpt_ccb *dccb); -static __inline u_int32_t dptccbvtop(struct dpt_softc *dpt, +static __inline bus_addr_t dptccbvtop(struct dpt_softc *dpt, struct dpt_ccb *dccb); static __inline int dpt_send_immediate(dpt_softc_t *dpt, @@ -260,7 +260,7 @@ dptfreeccb(struct dpt_softc *dpt, struct dpt_ccb *dccb) splx(s); } -static __inline u_int32_t +static __inline bus_addr_t dptccbvtop(struct dpt_softc *dpt, struct dpt_ccb *dccb) { return (dpt->dpt_ccb_busbase @@ -268,7 +268,7 @@ dptccbvtop(struct dpt_softc *dpt, struct dpt_ccb *dccb) } static __inline struct dpt_ccb * -dptccbptov(struct dpt_softc *dpt, u_int32_t busaddr) +dptccbptov(struct dpt_softc *dpt, bus_addr_t busaddr) { return (dpt->dpt_dccbs + ((struct dpt_ccb *)busaddr |