forked from ROMEO/obsw
xilinx eth lwip version xilinx_v2024.1
This commit is contained in:
@ -538,7 +538,6 @@ void emacps_recv_handler(void *arg)
|
||||
}
|
||||
|
||||
for (k = 0, curbdptr=rxbdset; k < bd_processed; k++) {
|
||||
// outbyte('r');
|
||||
|
||||
bdindex = XEMACPS_BD_TO_INDEX(rxring, curbdptr);
|
||||
p = (struct pbuf *)rx_pbufs_storage[index + bdindex];
|
||||
@ -553,8 +552,6 @@ void emacps_recv_handler(void *arg)
|
||||
#endif
|
||||
pbuf_realloc(p, rx_bytes);
|
||||
|
||||
// xil_printf("reading bd index %i bdindex %i p %p payload %p len %i\n", index, bdindex, p, p->payload, p->len);
|
||||
|
||||
/* Invalidate RX frame before queuing to handle
|
||||
* L1 cache prefetch conditions on any architecture.
|
||||
*/
|
||||
@ -579,12 +576,10 @@ void emacps_recv_handler(void *arg)
|
||||
setup_rx_bds(xemacpsif, rxring);
|
||||
}
|
||||
#if !NO_SYS
|
||||
// BaseType_t xHigherPriorityTaskWoken;
|
||||
// xSemaphoreGiveFromISR(xemac->sem_rx_data_available.sem, &xHigherPriorityTaskWoken);
|
||||
// portYIELD_FROM_ISR(xHigherPriorityTaskWoken); //TODO delay this?
|
||||
sys_sem_signal(&xemac->sem_rx_data_available);
|
||||
xInsideISR--;
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -777,8 +772,6 @@ XStatus init_dma(struct xemac_s *xemac)
|
||||
#endif
|
||||
XEmacPs_BdSetAddressRx(rxbd, (UINTPTR)p->payload);
|
||||
|
||||
xil_printf("setting bd index %i bdindex %i p %p payload %p\n", index, bdindex, p, p->payload);
|
||||
|
||||
rx_pbufs_storage[index + bdindex] = (UINTPTR)p;
|
||||
}
|
||||
XEmacPs_SetQueuePtr(&(xemacpsif->emacps), xemacpsif->emacps.RxBdRing.BaseBdAddr, 0, XEMACPS_RECV);
|
||||
@ -808,18 +801,18 @@ XStatus init_dma(struct xemac_s *xemac)
|
||||
XEmacPs_Out32((xemacpsif->emacps.Config.BaseAddress + XEMACPS_TXQBASE_OFFSET),
|
||||
(UINTPTR)bdtxterminate);
|
||||
}
|
||||
// #if !NO_SYS
|
||||
// #ifdef SDT
|
||||
// xPortInstallInterruptHandler(xemacpsif->emacps.Config.IntrId,
|
||||
// ( Xil_InterruptHandler ) XEmacPs_IntrHandler,
|
||||
// (void *)&xemacpsif->emacps);
|
||||
// #else
|
||||
// xPortInstallInterruptHandler(xtopologyp->scugic_emac_intr,
|
||||
// ( Xil_InterruptHandler ) XEmacPs_IntrHandler,
|
||||
// (void *)&xemacpsif->emacps);
|
||||
#if !NO_SYS
|
||||
#ifdef SDT
|
||||
xPortInstallInterruptHandler(xemacpsif->emacps.Config.IntrId,
|
||||
( Xil_InterruptHandler ) XEmacPs_IntrHandler,
|
||||
(void *)&xemacpsif->emacps);
|
||||
#else
|
||||
xPortInstallInterruptHandler(xtopologyp->scugic_emac_intr,
|
||||
( Xil_InterruptHandler ) XEmacPs_IntrHandler,
|
||||
(void *)&xemacpsif->emacps);
|
||||
|
||||
// #endif
|
||||
// #else
|
||||
#endif
|
||||
#else
|
||||
#ifndef SDT
|
||||
/*
|
||||
* Connect the device driver handler that will be called when an
|
||||
@ -830,7 +823,7 @@ XStatus init_dma(struct xemac_s *xemac)
|
||||
(Xil_ExceptionHandler)XEmacPs_IntrHandler,
|
||||
(void *)&xemacpsif->emacps);
|
||||
#endif
|
||||
// #endif
|
||||
#endif
|
||||
/*
|
||||
* Enable the interrupt for emacps.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user