Deleted Added
full compact
if_tsec_fdt.c (218050) if_tsec_fdt.c (227843)
1/*-
2 * Copyright (C) 2007-2008 Semihalf, Rafal Jaworowski
3 * Copyright (C) 2006-2007 Semihalf, Piotr Kruszynski
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:

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

25 *
26 * From: FreeBSD: head/sys/dev/tsec/if_tsec_ocp.c 188712 2009-02-17 14:59:47Z raj
27 */
28
29/*
30 * FDT 'simple-bus' attachment for Freescale TSEC controller.
31 */
32#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 2007-2008 Semihalf, Rafal Jaworowski
3 * Copyright (C) 2006-2007 Semihalf, Piotr Kruszynski
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:

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

25 *
26 * From: FreeBSD: head/sys/dev/tsec/if_tsec_ocp.c 188712 2009-02-17 14:59:47Z raj
27 */
28
29/*
30 * FDT 'simple-bus' attachment for Freescale TSEC controller.
31 */
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/dev/tsec/if_tsec_fdt.c 218050 2011-01-28 23:40:13Z marcel $");
33__FBSDID("$FreeBSD: head/sys/dev/tsec/if_tsec_fdt.c 227843 2011-11-22 21:28:20Z marius $");
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/endian.h>
38#include <sys/mbuf.h>
39#include <sys/kernel.h>
40#include <sys/module.h>
41#include <sys/socket.h>

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

83 DEVMETHOD(device_probe, tsec_fdt_probe),
84 DEVMETHOD(device_attach, tsec_fdt_attach),
85 DEVMETHOD(device_detach, tsec_fdt_detach),
86
87 DEVMETHOD(device_shutdown, tsec_shutdown),
88 DEVMETHOD(device_suspend, tsec_suspend),
89 DEVMETHOD(device_resume, tsec_resume),
90
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/endian.h>
38#include <sys/mbuf.h>
39#include <sys/kernel.h>
40#include <sys/module.h>
41#include <sys/socket.h>

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

83 DEVMETHOD(device_probe, tsec_fdt_probe),
84 DEVMETHOD(device_attach, tsec_fdt_attach),
85 DEVMETHOD(device_detach, tsec_fdt_detach),
86
87 DEVMETHOD(device_shutdown, tsec_shutdown),
88 DEVMETHOD(device_suspend, tsec_suspend),
89 DEVMETHOD(device_resume, tsec_resume),
90
91 /* Bus interface */
92 DEVMETHOD(bus_print_child, bus_generic_print_child),
93 DEVMETHOD(bus_driver_added, bus_generic_driver_added),
94
95 /* MII interface */
96 DEVMETHOD(miibus_readreg, tsec_miibus_readreg),
97 DEVMETHOD(miibus_writereg, tsec_miibus_writereg),
98 DEVMETHOD(miibus_statchg, tsec_miibus_statchg),
91 /* MII interface */
92 DEVMETHOD(miibus_readreg, tsec_miibus_readreg),
93 DEVMETHOD(miibus_writereg, tsec_miibus_writereg),
94 DEVMETHOD(miibus_statchg, tsec_miibus_statchg),
99 { 0, 0 }
95
96 DEVMETHOD_END
100};
101
102static driver_t tsec_fdt_driver = {
103 "tsec",
104 tsec_methods,
105 sizeof(struct tsec_softc),
106};
107

--- 236 unchanged lines hidden ---
97};
98
99static driver_t tsec_fdt_driver = {
100 "tsec",
101 tsec_methods,
102 sizeof(struct tsec_softc),
103};
104

--- 236 unchanged lines hidden ---