Deleted Added
full compact
mv_localbus.c (266000) mv_localbus.c (266160)
1/*-
2 * Copyright (c) 2012 Semihalf.
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) 2012 Semihalf.
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: stable/10/sys/arm/mv/mv_localbus.c 266000 2014-05-14 01:53:20Z ian $");
28__FBSDID("$FreeBSD: stable/10/sys/arm/mv/mv_localbus.c 266160 2014-05-15 17:30:16Z ian $");
29
30#include "opt_platform.h"
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/ktr.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/bus.h>

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

151
152 { -1, 0, 0 }
153};
154
155static struct localbus_bank localbus_banks[MV_LOCALBUS_MAX_BANKS];
156
157devclass_t localbus_devclass;
158
29
30#include "opt_platform.h"
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/ktr.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/bus.h>

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

151
152 { -1, 0, 0 }
153};
154
155static struct localbus_bank localbus_banks[MV_LOCALBUS_MAX_BANKS];
156
157devclass_t localbus_devclass;
158
159DRIVER_MODULE(localbus, nexus, localbus_driver, localbus_devclass, 0, 0);
159DRIVER_MODULE(localbus, ofwbus, localbus_driver, localbus_devclass, 0, 0);
160
161static int
162fdt_localbus_reg_decode(phandle_t node, struct localbus_softc *sc,
163 struct localbus_devinfo *di)
164{
165 u_long start, end, count;
166 pcell_t *reg, *regptr;
167 pcell_t addr_cells, size_cells;

--- 326 unchanged lines hidden ---
160
161static int
162fdt_localbus_reg_decode(phandle_t node, struct localbus_softc *sc,
163 struct localbus_devinfo *di)
164{
165 u_long start, end, count;
166 pcell_t *reg, *regptr;
167 pcell_t addr_cells, size_cells;

--- 326 unchanged lines hidden ---