1/*- 2 * Copyright (C) 2009 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 --- 10 unchanged lines hidden (view full) --- 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/powerpc/ofw/ofw_cpu.c 255378 2013-09-07 20:52:31Z nwhitehorn $"); |
28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/malloc.h> 34#include <sys/bus.h> 35#include <sys/cpu.h> --- 117 unchanged lines hidden (view full) --- 153 DEVMETHOD(bus_activate_resource,bus_generic_activate_resource), 154 155 DEVMETHOD_END 156}; 157 158static driver_t ofw_cpu_driver = { 159 "cpu", 160 ofw_cpu_methods, |
161 sizeof(struct ofw_cpu_softc) |
162}; 163 164static devclass_t ofw_cpu_devclass; 165 166DRIVER_MODULE(ofw_cpu, cpulist, ofw_cpu_driver, ofw_cpu_devclass, 0, 0); 167 168static int 169ofw_cpu_probe(device_t dev) --- 45 unchanged lines hidden --- |