Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 188c76c in mainline


Ignore:
Timestamp:
2012-08-13T22:59:29Z (9 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master
Children:
fd418d9
Parents:
e0cd9042
Message:

ns8250: Use 4-byte interrupt threshold to make buffer overruns less likely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ns8250/ns8250.c

    re0cd9042 r188c76c  
    706706        /* 8 bits, no parity, two stop bits. */
    707707        ns8250_port_set_com_props(ns->regs, SERIAL_NO_PARITY, 8, 2);
    708         /* Enable FIFO, clear them, with 14-byte threshold. */
     708        /*
     709         * Enable FIFO, clear them, with 4-byte threshold for greater
     710         * reliability.
     711         */
    709712        pio_write_8(&ns->regs->iid, NS8250_FCR_FIFOENABLE
    710             | NS8250_FCR_RXFIFORESET | NS8250_FCR_TXFIFORESET 
    711             | NS8250_FCR_RXTRIGGERLOW | NS8250_FCR_RXTRIGGERHI);
     713            | NS8250_FCR_RXFIFORESET | NS8250_FCR_TXFIFORESET
     714            | NS8250_FCR_RXTRIGGERLOW);
    712715        /*
    713716         * RTS/DSR set (Request to Send and Data Terminal Ready lines enabled),
Note: See TracChangeset for help on using the changeset viewer.