diff options
| author | Warner Losh <imp@FreeBSD.org> | 2003-10-23 03:42:47 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2003-10-23 03:42:47 +0000 |
| commit | 537db6f8b0464a061ab5bef552fe7395a0396874 (patch) | |
| tree | 7824eb1e1b20350a066242b6ad38c850674f243c /sys/dev/ep | |
| parent | 7c3e994d6023755c40f119fef826a71e49c5725f (diff) | |
Notes
Diffstat (limited to 'sys/dev/ep')
| -rw-r--r-- | sys/dev/ep/if_ep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index d325e88ee91c..db51b0003ef2 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -758,7 +758,7 @@ read_again: if (EP_FTST(sc, F_ACCESS_32_BITS)) { /* default for EISA configured cards */ EP_READ_MULTI_4(sc, EP_W1_RX_PIO_RD_1, - mtod(m, uint32_t *)+m->m_len, + (uint32_t *)(mtod(m, caddr_t)+m->m_len), lenthisone / 4); m->m_len += (lenthisone & ~3); if (lenthisone & 3) @@ -767,7 +767,8 @@ read_again: m->m_len += (lenthisone & 3); } else { EP_READ_MULTI_2(sc, EP_W1_RX_PIO_RD_1, - mtod(m, uint16_t *)+m->m_len, lenthisone / 2); + (uint16_t *)mtod(m, caddr_t)+m->m_len), + lenthisone / 2); m->m_len += lenthisone; if (lenthisone & 1) *(mtod(m, caddr_t)+m->m_len - 1) = |
