X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/54d4b877c72b90fe057143b1bc6e49718a3cb82a..2d34b5d2cb94b7976fa40e954bcf060bdb5856c2:/net/3c90x.c diff --git a/net/3c90x.c b/net/3c90x.c index 3a6c958..30283a2 100644 --- a/net/3c90x.c +++ b/net/3c90x.c @@ -480,7 +480,7 @@ a3c90x_transmit(struct pbuf *p) unsigned char status; static unsigned int stillwaiting = 0; unsigned int n, len; - + if (stillwaiting) { while (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_TXCOMPLETE) && oneshot_running()) @@ -503,7 +503,7 @@ a3c90x_transmit(struct pbuf *p) n = 0; for (; p; p = p->next) { - INF_3C90X.TransmitDPD.segments[n].addr = (unsigned int)p->payload; + INF_3C90X.TransmitDPD.segments[n].addr = v2p(p->payload); INF_3C90X.TransmitDPD.segments[n].len = p->len | (p->next ? 0 : (1 << 31)); len += p->len; n++;