* ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
UART_FIFO_WORKS is defined. Otherwise use outportb. From Francisco Pastor <fpastor.etra-id@etra.es>
This commit is contained in:
parent
a17b5c4efc
commit
cd42d3a86d
2 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
|
2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
|
||||||
|
|
||||||
|
* ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
|
||||||
|
UART_FIFO_WORKS is defined. Otherwise use outportb.
|
||||||
|
From Francisco Pastor <fpastor.etra-id@etra.es>
|
||||||
|
|
||||||
* go32-nat.c (go32_xfer_memory): Make the argument list consistent
|
* go32-nat.c (go32_xfer_memory): Make the argument list consistent
|
||||||
with target.h's `to_xfer_memory' member.
|
with target.h's `to_xfer_memory' member.
|
||||||
|
|
||||||
|
|
|
@ -796,9 +796,16 @@ dos_write (serial_t scb, const char *str, int len)
|
||||||
/* send the data, fifosize bytes at a time */
|
/* send the data, fifosize bytes at a time */
|
||||||
cnt = fifosize > len ? len : fifosize;
|
cnt = fifosize > len ? len : fifosize;
|
||||||
port->txbusy = 1;
|
port->txbusy = 1;
|
||||||
|
/* Francisco Pastor <fpastor.etra-id@etra.es> says OUTSB messes
|
||||||
|
up the communications with UARTs with FIFOs. */
|
||||||
|
#ifdef UART_FIFO_WORKS
|
||||||
outportsb (port->base + com_data, str, cnt);
|
outportsb (port->base + com_data, str, cnt);
|
||||||
str += cnt;
|
str += cnt;
|
||||||
len -= cnt;
|
len -= cnt;
|
||||||
|
#else
|
||||||
|
for ( ; cnt > 0; cnt--, len--)
|
||||||
|
outportb (port->base + com_data, *str++);
|
||||||
|
#endif
|
||||||
#ifdef DOS_STATS
|
#ifdef DOS_STATS
|
||||||
cnts[CNT_TX] += cnt;
|
cnts[CNT_TX] += cnt;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue