schizo.c (215349) | schizo.c (216961) |
---|---|
1/*- 2 * Copyright (c) 1999, 2000 Matthew R. Green 3 * Copyright (c) 2001 - 2003 by Thomas Moestl <tmm@FreeBSD.org> 4 * Copyright (c) 2005, 2007, 2008 by Marius Strobl <marius@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * from: NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp 31 * from: FreeBSD: psycho.c 183152 2008-09-18 19:45:22Z marius 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999, 2000 Matthew R. Green 3 * Copyright (c) 2001 - 2003 by Thomas Moestl <tmm@FreeBSD.org> 4 * Copyright (c) 2005, 2007, 2008 by Marius Strobl <marius@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * from: NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp 31 * from: FreeBSD: psycho.c 183152 2008-09-18 19:45:22Z marius 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/sparc64/pci/schizo.c 215349 2010-11-15 21:58:10Z marius $"); | 35__FBSDID("$FreeBSD: head/sys/sparc64/pci/schizo.c 216961 2011-01-04 16:11:32Z marius $"); |
36 37/* 38 * Driver for `Schizo' Fireplane/Safari to PCI 2.1 and `Tomatillo' JBus to 39 * PCI 2.2 bridges 40 */ 41 42#include "opt_ofw_pci.h" 43#include "opt_schizo.h" --- 696 unchanged lines hidden (view full) --- 740 rid = index; 741 sc->sc_irq_res[index] = bus_alloc_resource_any(sc->sc_dev, 742 SYS_RES_IRQ, &rid, RF_ACTIVE); 743 if (sc->sc_irq_res[index] == NULL || 744 INTINO(vec = rman_get_start(sc->sc_irq_res[index])) != ino || 745 INTIGN(vec) != sc->sc_ign || 746 intr_vectors[vec].iv_ic != &schizo_ic || 747 bus_setup_intr(sc->sc_dev, sc->sc_irq_res[index], | 36 37/* 38 * Driver for `Schizo' Fireplane/Safari to PCI 2.1 and `Tomatillo' JBus to 39 * PCI 2.2 bridges 40 */ 41 42#include "opt_ofw_pci.h" 43#include "opt_schizo.h" --- 696 unchanged lines hidden (view full) --- 740 rid = index; 741 sc->sc_irq_res[index] = bus_alloc_resource_any(sc->sc_dev, 742 SYS_RES_IRQ, &rid, RF_ACTIVE); 743 if (sc->sc_irq_res[index] == NULL || 744 INTINO(vec = rman_get_start(sc->sc_irq_res[index])) != ino || 745 INTIGN(vec) != sc->sc_ign || 746 intr_vectors[vec].iv_ic != &schizo_ic || 747 bus_setup_intr(sc->sc_dev, sc->sc_irq_res[index], |
748 INTR_TYPE_MISC | INTR_FAST, handler, NULL, sc, | 748 INTR_TYPE_MISC | INTR_BRIDGE, handler, NULL, sc, |
749 &sc->sc_ihand[index]) != 0) 750 panic("%s: failed to set up interrupt %d", __func__, index); 751} 752 753static int 754schizo_intr_register(struct schizo_softc *sc, u_int ino) 755{ 756 struct schizo_icarg *sica; --- 765 unchanged lines hidden --- | 749 &sc->sc_ihand[index]) != 0) 750 panic("%s: failed to set up interrupt %d", __func__, index); 751} 752 753static int 754schizo_intr_register(struct schizo_softc *sc, u_int ino) 755{ 756 struct schizo_icarg *sica; --- 765 unchanged lines hidden --- |