Deleted Added
full compact
ofw_pcib.c (133589) ofw_pcib.c (153059)
1/*-
2 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier
3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 - 2003 Thomas Moestl <tmm@FreeBSD.org>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * from: FreeBSD: src/sys/dev/pci/pci_pci.c,v 1.3 2000/12/13
1/*-
2 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier
3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 - 2003 Thomas Moestl <tmm@FreeBSD.org>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * from: FreeBSD: src/sys/dev/pci/pci_pci.c,v 1.3 2000/12/13
32 *
33 * $FreeBSD: head/sys/sparc64/pci/ofw_pcib.c 133589 2004-08-12 17:41:33Z marius $
34 */
35
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/sparc64/pci/ofw_pcib.c 153059 2005-12-03 18:52:31Z marius $");
36
36#include "opt_ofw_pci.h"
37
38#include <sys/param.h>
39#include <sys/kernel.h>
40#include <sys/bus.h>
41#include <sys/module.h>
42
43#include <dev/ofw/ofw_bus.h>

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

110 return (0);
111 }
112 return (ENXIO);
113}
114
115static int
116ofw_pcib_attach(device_t dev)
117{
37#include "opt_ofw_pci.h"
38
39#include <sys/param.h>
40#include <sys/kernel.h>
41#include <sys/bus.h>
42#include <sys/module.h>
43
44#include <dev/ofw/ofw_bus.h>

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

111 return (0);
112 }
113 return (ENXIO);
114}
115
116static int
117ofw_pcib_attach(device_t dev)
118{
118 struct ofw_pcib_gen_softc *sc = device_get_softc(dev);
119 struct ofw_pcib_gen_softc *sc;
119
120
121 sc = device_get_softc(dev);
120 ofw_pcib_gen_setup(dev);
121 pcib_attach_common(dev);
122 device_add_child(dev, "pci", sc->ops_pcib_sc.secbus);
123 return (bus_generic_attach(dev));
124}
122 ofw_pcib_gen_setup(dev);
123 pcib_attach_common(dev);
124 device_add_child(dev, "pci", sc->ops_pcib_sc.secbus);
125 return (bus_generic_attach(dev));
126}