Deleted Added
full compact
ofwbus.c (205506) ofwbus.c (209298)
1/*-
2 * Copyright 1998 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

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

47 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * from: FreeBSD: src/sys/i386/i386/nexus.c,v 1.43 2001/02/09
54 *
1/*-
2 * Copyright 1998 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

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

47 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * from: FreeBSD: src/sys/i386/i386/nexus.c,v 1.43 2001/02/09
54 *
55 * $FreeBSD: head/sys/powerpc/aim/nexus.c 205506 2010-03-23 03:14:44Z nwhitehorn $
55 * $FreeBSD: head/sys/powerpc/aim/nexus.c 209298 2010-06-18 14:06:27Z nwhitehorn $
56 */
57#include "opt_psim.h"
58
59#include <sys/param.h>
60#include <sys/systm.h>
61#include <sys/module.h>
62#include <sys/bus.h>
63#include <sys/cons.h>

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

203 u_long start, end;
204
205 if ((root = OF_peer(0)) == -1)
206 panic("nexus_probe: OF_peer failed.");
207
208 sc = device_get_softc(dev);
209
210 start = 0;
56 */
57#include "opt_psim.h"
58
59#include <sys/param.h>
60#include <sys/systm.h>
61#include <sys/module.h>
62#include <sys/bus.h>
63#include <sys/cons.h>

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

203 u_long start, end;
204
205 if ((root = OF_peer(0)) == -1)
206 panic("nexus_probe: OF_peer failed.");
207
208 sc = device_get_softc(dev);
209
210 start = 0;
211 end = INTR_VECTORS - 1;
211 end = MAX_PICS*INTR_VECTORS - 1;
212
213 sc->sc_rman.rm_start = start;
214 sc->sc_rman.rm_end = end;
215 sc->sc_rman.rm_type = RMAN_ARRAY;
216 sc->sc_rman.rm_descr = "Interrupt request lines";
217 if (rman_init(&sc->sc_rman) ||
218 rman_manage_region(&sc->sc_rman, start, end))
219 panic("nexus_probe IRQ rman");

--- 282 unchanged lines hidden ---
212
213 sc->sc_rman.rm_start = start;
214 sc->sc_rman.rm_end = end;
215 sc->sc_rman.rm_type = RMAN_ARRAY;
216 sc->sc_rman.rm_descr = "Interrupt request lines";
217 if (rman_init(&sc->sc_rman) ||
218 rman_manage_region(&sc->sc_rman, start, end))
219 panic("nexus_probe IRQ rman");

--- 282 unchanged lines hidden ---