UartLite for MontaVista - virtex4
Martin, Tim
tim.martin at viasat.com
Thu Mar 15 08:29:48 EST 2007
> Could you tell me where exactly to get the "xuartlite_serial.c"
?
>
> I could not find "xuartlite_serial.c" in the drivers folder
generated by EDK .
>
(\ppc405_0\libsrc\linux_mvl31_v1_01_b\linux\drivers\char\xilinx_uartlite
)
Here's the relevant snippet for xulite_send_handler():
/*
* if(pxs->thr_chars[0] != 0) then
* throttle/unthrottle character was just sent;
* do not advance pgs->xmit_tail by ByteCount
* in this case.
*/
if (pxs->thr_chars[0] == 0) {
pxs->tx_int_cnt += ByteCount;
if (pgs->xmit_cnt >= ByteCount) {
pgs->xmit_cnt -= ByteCount;
pgs->xmit_tail += ByteCount;
} else {
pgs->xmit_tail += pgs->xmit_cnt;
pgs->xmit_cnt = 0;
}
if (pgs->xmit_tail >= SERIAL_XMIT_SIZE)
pgs->xmit_tail -= SERIAL_XMIT_SIZE;
} else {
pxs->tx_thr_cnt += ByteCount;
}
More information about the Linuxppc-embedded
mailing list