Deleted Added
full compact
uart_dev_ns8250.c (119815) uart_dev_ns8250.c (119943)
1/*
2 * Copyright (c) 2003 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2003 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_ns8250.c 119815 2003-09-06 23:13:47Z marcel $");
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_ns8250.c 119943 2003-09-10 05:01:08Z marcel $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <machine/bus.h>
35
36#include <dev/uart/uart.h>

--- 596 unchanged lines hidden (view full) ---

633 device_set_desc(sc->sc_dev, "16650 or compatible");
634 } else if (count >= 56 && count < 64) {
635 sc->sc_rxfifosz = 64;
636 device_set_desc(sc->sc_dev, "16750 or compatible");
637 } else if (count >= 112 && count < 128) {
638 sc->sc_rxfifosz = 128;
639 device_set_desc(sc->sc_dev, "16950 or compatible");
640 } else {
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <machine/bus.h>
35
36#include <dev/uart/uart.h>

--- 596 unchanged lines hidden (view full) ---

633 device_set_desc(sc->sc_dev, "16650 or compatible");
634 } else if (count >= 56 && count < 64) {
635 sc->sc_rxfifosz = 64;
636 device_set_desc(sc->sc_dev, "16750 or compatible");
637 } else if (count >= 112 && count < 128) {
638 sc->sc_rxfifosz = 128;
639 device_set_desc(sc->sc_dev, "16950 or compatible");
640 } else {
641 sc->sc_rxfifosz = 1;
641 sc->sc_rxfifosz = 16;
642 device_set_desc(sc->sc_dev,
643 "Non-standard ns8250 class UART with FIFOs");
644 }
645
646 /*
647 * Force the Tx FIFO size to 16 bytes for now. We don't program the
648 * Tx trigger. Also, we assume that all data has been sent when the
649 * interrupt happens.

--- 77 unchanged lines hidden ---
642 device_set_desc(sc->sc_dev,
643 "Non-standard ns8250 class UART with FIFOs");
644 }
645
646 /*
647 * Force the Tx FIFO size to 16 bytes for now. We don't program the
648 * Tx trigger. Also, we assume that all data has been sent when the
649 * interrupt happens.

--- 77 unchanged lines hidden ---