Deleted Added
full compact
rtas_pci.c (259257) rtas_pci.c (266160)
1/*-
2 * Copyright (c) 2011 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) 2011 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: stable/10/sys/powerpc/pseries/rtas_pci.c 259257 2013-12-12 12:36:40Z andreast $");
28__FBSDID("$FreeBSD: stable/10/sys/powerpc/pseries/rtas_pci.c 266160 2014-05-15 17:30:16Z ian $");
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
36#include <dev/ofw/openfirm.h>

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

94 cell_t read_pci_config, write_pci_config;
95 cell_t ex_read_pci_config, ex_write_pci_config;
96 int sc_extended_config;
97};
98
99static devclass_t rtaspci_devclass;
100DEFINE_CLASS_1(pcib, rtaspci_driver, rtaspci_methods,
101 sizeof(struct rtaspci_softc), ofw_pci_driver);
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
36#include <dev/ofw/openfirm.h>

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

94 cell_t read_pci_config, write_pci_config;
95 cell_t ex_read_pci_config, ex_write_pci_config;
96 int sc_extended_config;
97};
98
99static devclass_t rtaspci_devclass;
100DEFINE_CLASS_1(pcib, rtaspci_driver, rtaspci_methods,
101 sizeof(struct rtaspci_softc), ofw_pci_driver);
102DRIVER_MODULE(rtaspci, nexus, rtaspci_driver, rtaspci_devclass, 0, 0);
102DRIVER_MODULE(rtaspci, ofwbus, rtaspci_driver, rtaspci_devclass, 0, 0);
103
104static int
105rtaspci_probe(device_t dev)
106{
107 const char *type;
108
109 if (!rtas_exists())
110 return (ENXIO);

--- 95 unchanged lines hidden ---
103
104static int
105rtaspci_probe(device_t dev)
106{
107 const char *type;
108
109 if (!rtas_exists())
110 return (ENXIO);

--- 95 unchanged lines hidden ---