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())
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++;