grackle.c (266019) | grackle.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. --- 12 unchanged lines hidden (view full) --- 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 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#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. --- 12 unchanged lines hidden (view full) --- 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 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#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/10/sys/powerpc/powermac/grackle.c 266019 2014-05-14 14:08:45Z ian $"); | 29__FBSDID("$FreeBSD: stable/10/sys/powerpc/powermac/grackle.c 266160 2014-05-15 17:30:16Z ian $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/module.h> 34#include <sys/bus.h> 35#include <sys/conf.h> 36#include <sys/kernel.h> 37#include <sys/proc.h> --- 59 unchanged lines hidden (view full) --- 97 DEVMETHOD(pcib_write_config, grackle_write_config), 98 99 DEVMETHOD_END 100}; 101 102static devclass_t grackle_devclass; 103DEFINE_CLASS_1(pcib, grackle_driver, grackle_methods, 104 sizeof(struct grackle_softc), ofw_pci_driver); | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/module.h> 34#include <sys/bus.h> 35#include <sys/conf.h> 36#include <sys/kernel.h> 37#include <sys/proc.h> --- 59 unchanged lines hidden (view full) --- 97 DEVMETHOD(pcib_write_config, grackle_write_config), 98 99 DEVMETHOD_END 100}; 101 102static devclass_t grackle_devclass; 103DEFINE_CLASS_1(pcib, grackle_driver, grackle_methods, 104 sizeof(struct grackle_softc), ofw_pci_driver); |
105DRIVER_MODULE(grackle, nexus, grackle_driver, grackle_devclass, 0, 0); | 105DRIVER_MODULE(grackle, ofwbus, grackle_driver, grackle_devclass, 0, 0); |
106 107static int 108grackle_probe(device_t dev) 109{ 110 const char *type, *compatible; 111 112 type = ofw_bus_get_type(dev); 113 compatible = ofw_bus_get_compat(dev); --- 212 unchanged lines hidden --- | 106 107static int 108grackle_probe(device_t dev) 109{ 110 const char *type, *compatible; 111 112 type = ofw_bus_get_type(dev); 113 compatible = ofw_bus_get_compat(dev); --- 212 unchanged lines hidden --- |