Deleted Added
full compact
uart_bus_ar71xx.c (191079) uart_bus_ar71xx.c (191840)
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org>
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

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

67uart_ar71xx_probe(device_t dev)
68{
69 struct uart_softc *sc;
70
71 sc = device_get_softc(dev);
72 sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
73 sc->sc_class = &uart_ns8250_class;
74 bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org>
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

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

67uart_ar71xx_probe(device_t dev)
68{
69 struct uart_softc *sc;
70
71 sc = device_get_softc(dev);
72 sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
73 sc->sc_class = &uart_ns8250_class;
74 bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
75 sc->sc_sysdev->bas.regshft = 2;
76 sc->sc_sysdev->bas.bst = mips_bus_space_generic;
77 sc->sc_sysdev->bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR) + 3;
78 sc->sc_bas.regshft = 2;
79 sc->sc_bas.bst = mips_bus_space_generic;
80 sc->sc_bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR) + 3;
75
76 return (uart_bus_probe(dev, 2, 85000000, 0, 0));
77}
78
79DRIVER_MODULE(uart, apb, uart_ar71xx_driver, uart_devclass, 0, 0);
81
82 return (uart_bus_probe(dev, 2, 85000000, 0, 0));
83}
84
85DRIVER_MODULE(uart, apb, uart_ar71xx_driver, uart_devclass, 0, 0);