Possible improvements for CPM UART

From: Joakim Tjernlund <hidden>
Date: 2005-11-09 11:07:31

Parts of these fixes in 2.4 doesn't seem to be in 2.6.
Maybe these are solved diffrently in 2.6 but I can't tell.
At least cpm_uart_console_write could use this.

http://linux.bkbits.net:8080/linux-2.4/diffs/arch/ppc/8xx_io/uart.c@1.23
?nav=3Dindex.html|src/.|src/arch|src/arch/ppc|src/arch/ppc/8xx_io|hist/ar=
c
h/ppc/8xx_io/uart.c

Another small improvement would to change:
#define RX_NUM_FIFO	4
#define RX_BUF_SIZE	32
#define TX_NUM_FIFO	4
#define TX_BUF_SIZE	32
to
#ifndef RX_NUM_FIFO
 #define RX_NUM_FIFO	4
#endif
#ifndef RX_BUF_SIZE
 #define RX_BUF_SIZE	32
#endif
#ifndef TX_NUM_FIFO
 #define TX_NUM_FIFO	4
#endif
#ifndef TX_BUF_SIZE
 #define TX_BUF_SIZE	32
#endif

This will allow custom changes to these constants

 Jocke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help