Deleted Added
full compact
uart_bus_pci.c (232967) uart_bus_pci.c (246243)
1/*-
2 * Copyright (c) 2006 Marcel Moolenaar
3 * Copyright (c) 2001 M. Warner Losh
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 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) 2006 Marcel Moolenaar
3 * Copyright (c) 2001 M. Warner Losh
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 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_bus_pci.c 232967 2012-03-14 14:01:51Z kib $");
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_bus_pci.c 246243 2013-02-02 11:38:26Z avg $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <machine/bus.h>

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

46
47static int uart_pci_probe(device_t dev);
48
49static device_method_t uart_pci_methods[] = {
50 /* Device interface */
51 DEVMETHOD(device_probe, uart_pci_probe),
52 DEVMETHOD(device_attach, uart_bus_attach),
53 DEVMETHOD(device_detach, uart_bus_detach),
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <machine/bus.h>

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

46
47static int uart_pci_probe(device_t dev);
48
49static device_method_t uart_pci_methods[] = {
50 /* Device interface */
51 DEVMETHOD(device_probe, uart_pci_probe),
52 DEVMETHOD(device_attach, uart_bus_attach),
53 DEVMETHOD(device_detach, uart_bus_detach),
54 DEVMETHOD(device_resume, uart_bus_resume),
54 { 0, 0 }
55};
56
57static driver_t uart_pci_driver = {
58 uart_driver_name,
59 uart_pci_methods,
60 sizeof(struct uart_softc),
61};

--- 119 unchanged lines hidden ---
55 { 0, 0 }
56};
57
58static driver_t uart_pci_driver = {
59 uart_driver_name,
60 uart_pci_methods,
61 sizeof(struct uart_softc),
62};

--- 119 unchanged lines hidden ---