Deleted Added
full compact
uart_dev_oct16550.c (232812) uart_dev_oct16550.c (242273)
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 *

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

50 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
51 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 *
53 *
54 */
55
56
57#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 *

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

50 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
51 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 *
53 *
54 */
55
56
57#include <sys/cdefs.h>
58__FBSDID("$FreeBSD: head/sys/mips/cavium/uart_dev_oct16550.c 232812 2012-03-11 06:17:49Z jmallett $");
58__FBSDID("$FreeBSD: head/sys/mips/cavium/uart_dev_oct16550.c 242273 2012-10-29 00:51:53Z jmallett $");
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/bus.h>
63#include <sys/conf.h>
64#include <machine/bus.h>
65#include <machine/pcpu.h>
66

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

627 ipend |= SER_INT_SIGCHG;
628
629 } else if (iir == IIR_BUSY) {
630 (void) uart_getreg(bas, REG_USR);
631 }
632 }
633 uart_unlock(sc->sc_hwmtx);
634
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/bus.h>
63#include <sys/conf.h>
64#include <machine/bus.h>
65#include <machine/pcpu.h>
66

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

627 ipend |= SER_INT_SIGCHG;
628
629 } else if (iir == IIR_BUSY) {
630 (void) uart_getreg(bas, REG_USR);
631 }
632 }
633 uart_unlock(sc->sc_hwmtx);
634
635//#define OCTEON_VISUAL_UART 1
636#ifdef OCTEON_VISUAL_UART
637 static int where1 = 0;
638
639 if (ipend) octeon_led_run_wheel(&where1, 6 + device_get_unit(sc->sc_dev));
640#endif
641
642 return (ipend);
643}
644
645static int
646oct16550_bus_param (struct uart_softc *sc, int baudrate, int databits,
647 int stopbits, int parity)
648{
649 struct uart_bas *bas;

--- 170 unchanged lines hidden ---
635 return (ipend);
636}
637
638static int
639oct16550_bus_param (struct uart_softc *sc, int baudrate, int databits,
640 int stopbits, int parity)
641{
642 struct uart_bas *bas;

--- 170 unchanged lines hidden ---