diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-05-07 01:42:49 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-05-07 01:42:49 +0000 |
commit | 8e81b341ff2aaa1f4adaa1d6d740c23177df8b65 (patch) | |
tree | 01d6d1bbb4ca4428d4e4dd154d0f391a6d011cee /sys/dev | |
parent | d4224f2387b3c6ec3c9777add7a93bb02bdb72c4 (diff) |
proper casts for vtophys. looked at by grange@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 0742b274ccb..51e330f4d9d 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.23 2004/04/07 15:47:52 mickey Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.24 2004/05/07 01:42:48 tedu Exp $ */ /* * Copyright (c) 1997, 1998 @@ -923,7 +923,7 @@ void rl_start(ifp) * Transmit the frame. */ CSR_WRITE_4(sc, RL_CUR_TXADDR(sc), - vtophys(mtod(RL_CUR_TXMBUF(sc), caddr_t))); + vtophys(mtod(RL_CUR_TXMBUF(sc), vaddr_t))); CSR_WRITE_4(sc, RL_CUR_TXSTAT(sc), RL_TXTHRESH(sc->rl_txthresh) | RL_CUR_TXMBUF(sc)->m_pkthdr.len); @@ -968,7 +968,7 @@ void rl_init(xsc) } /* Init the RX buffer pointer register. */ - CSR_WRITE_4(sc, RL_RXADDR, vtophys(sc->rl_cdata.rl_rx_buf)); + CSR_WRITE_4(sc, RL_RXADDR, vtophys((vaddr_t)sc->rl_cdata.rl_rx_buf)); /* Init TX descriptors. */ rl_list_tx_init(sc); |