Deleted Added
full compact
simplebus.c (261410) simplebus.c (261513)
1/*-
2 * Copyright (c) 2013 Nathan Whitehorn
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2013 Nathan Whitehorn
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/fdt/simplebus.c 261410 2014-02-02 19:17:28Z ian $");
28__FBSDID("$FreeBSD: head/sys/dev/fdt/simplebus.c 261513 2014-02-05 14:44:22Z nwhitehorn $");
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/module.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/rman.h>
36

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

116};
117
118static driver_t simplebus_driver = {
119 "simplebus",
120 simplebus_methods,
121 sizeof(struct simplebus_softc)
122};
123static devclass_t simplebus_devclass;
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/module.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/rman.h>
36

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

116};
117
118static driver_t simplebus_driver = {
119 "simplebus",
120 simplebus_methods,
121 sizeof(struct simplebus_softc)
122};
123static devclass_t simplebus_devclass;
124DRIVER_MODULE(simplebus, nexus, simplebus_driver, simplebus_devclass, 0, 0);
124DRIVER_MODULE(simplebus, ofwbus, simplebus_driver, simplebus_devclass, 0, 0);
125DRIVER_MODULE(simplebus, simplebus, simplebus_driver, simplebus_devclass, 0, 0);
126
127static int
128simplebus_probe(device_t dev)
129{
130
131 if (!ofw_bus_status_okay(dev))
132 return (ENXIO);

--- 296 unchanged lines hidden ---
125DRIVER_MODULE(simplebus, simplebus, simplebus_driver, simplebus_devclass, 0, 0);
126
127static int
128simplebus_probe(device_t dev)
129{
130
131 if (!ofw_bus_status_okay(dev))
132 return (ENXIO);

--- 296 unchanged lines hidden ---