Deleted Added
full compact
uart_bus_sbusart.c (182901) uart_bus_sbusart.c (202036)
1/*-
2 * Copyright (c) 2007 Bruce M. Simpson.
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 * 1. Redistributions of source code must retain the above copyright

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

30
31/*
32 * XXXMIPS: This file is hacked from arm/... . XXXMIPS here means this file is
33 * experimental and was written for MIPS32 port.
34 */
35#include "opt_uart.h"
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007 Bruce M. Simpson.
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 * 1. Redistributions of source code must retain the above copyright

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

30
31/*
32 * XXXMIPS: This file is hacked from arm/... . XXXMIPS here means this file is
33 * experimental and was written for MIPS32 port.
34 */
35#include "opt_uart.h"
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/mips/sentry5/uart_bus_sbusart.c 182901 2008-09-10 03:49:08Z gonzo $");
38__FBSDID("$FreeBSD: head/sys/mips/sentry5/uart_bus_sbusart.c 202036 2010-01-10 20:09:30Z imp $");
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/bus.h>
43#include <sys/conf.h>
44#include <sys/kernel.h>
45#include <sys/module.h>
46#include <machine/bus.h>

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

80uart_malta_probe(device_t dev)
81{
82 struct uart_softc *sc;
83
84 sc = device_get_softc(dev);
85 sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
86 sc->sc_class = &uart_ns8250_class;
87 bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/bus.h>
43#include <sys/conf.h>
44#include <sys/kernel.h>
45#include <sys/module.h>
46#include <machine/bus.h>

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

80uart_malta_probe(device_t dev)
81{
82 struct uart_softc *sc;
83
84 sc = device_get_softc(dev);
85 sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
86 sc->sc_class = &uart_ns8250_class;
87 bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
88 sc->sc_sysdev->bas.bst = 0;
88 sc->sc_sysdev->bas.bst = mips_bus_space_generic;
89 sc->sc_sysdev->bas.bsh = MIPS_PHYS_TO_KSEG1(SENTRY5_UART1ADR);
89 sc->sc_sysdev->bas.bsh = MIPS_PHYS_TO_KSEG1(SENTRY5_UART1ADR);
90 sc->sc_bas.bst = 0;
90 sc->sc_bas.bst = mips_bus_space_generic;
91 sc->sc_bas.bsh = MIPS_PHYS_TO_KSEG1(SENTRY5_UART1ADR);
92 return(uart_bus_probe(dev, 0, 0, 0, 0));
93}
94
95DRIVER_MODULE(uart, obio, uart_malta_driver, uart_devclass, 0, 0);
91 sc->sc_bas.bsh = MIPS_PHYS_TO_KSEG1(SENTRY5_UART1ADR);
92 return(uart_bus_probe(dev, 0, 0, 0, 0));
93}
94
95DRIVER_MODULE(uart, obio, uart_malta_driver, uart_devclass, 0, 0);