openpic_ofw.c (265969) | openpic_ofw.c (266160) |
---|---|
1/*- 2 * Copyright 2003 by Peter Grehan. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 13 unchanged lines hidden (view full) --- 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright 2003 by Peter Grehan. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 13 unchanged lines hidden (view full) --- 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: stable/10/sys/powerpc/ofw/openpic_ofw.c 265969 2014-05-13 18:06:26Z ian $"); | 30__FBSDID("$FreeBSD: stable/10/sys/powerpc/ofw/openpic_ofw.c 266160 2014-05-15 17:30:16Z ian $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/module.h> 35#include <sys/bus.h> 36#include <sys/conf.h> 37#include <sys/kernel.h> 38 --- 46 unchanged lines hidden (view full) --- 85}; 86 87static driver_t openpic_ofw_driver = { 88 "openpic", 89 openpic_ofw_methods, 90 sizeof(struct openpic_softc), 91}; 92 | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/module.h> 35#include <sys/bus.h> 36#include <sys/conf.h> 37#include <sys/kernel.h> 38 --- 46 unchanged lines hidden (view full) --- 85}; 86 87static driver_t openpic_ofw_driver = { 88 "openpic", 89 openpic_ofw_methods, 90 sizeof(struct openpic_softc), 91}; 92 |
93DRIVER_MODULE(openpic, nexus, openpic_ofw_driver, openpic_devclass, 0, 0); | 93DRIVER_MODULE(openpic, ofwbus, openpic_ofw_driver, openpic_devclass, 0, 0); |
94DRIVER_MODULE(openpic, simplebus, openpic_ofw_driver, openpic_devclass, 0, 0); 95DRIVER_MODULE(openpic, macio, openpic_ofw_driver, openpic_devclass, 0, 0); 96 97static int 98openpic_ofw_probe(device_t dev) 99{ 100 const char *type = ofw_bus_get_type(dev); 101 --- 64 unchanged lines hidden --- | 94DRIVER_MODULE(openpic, simplebus, openpic_ofw_driver, openpic_devclass, 0, 0); 95DRIVER_MODULE(openpic, macio, openpic_ofw_driver, openpic_devclass, 0, 0); 96 97static int 98openpic_ofw_probe(device_t dev) 99{ 100 const char *type = ofw_bus_get_type(dev); 101 --- 64 unchanged lines hidden --- |