ofw_cpu.c (255378) | ofw_cpu.c (261513) |
---|---|
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> | 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 $"); | 27__FBSDID("$FreeBSD: head/sys/powerpc/ofw/ofw_cpu.c 261513 2014-02-05 14:44:22Z 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> --- 33 unchanged lines hidden (view full) --- 69static driver_t ofw_cpulist_driver = { 70 "cpulist", 71 ofw_cpulist_methods, 72 0 73}; 74 75static devclass_t ofw_cpulist_devclass; 76 | 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> --- 33 unchanged lines hidden (view full) --- 69static driver_t ofw_cpulist_driver = { 70 "cpulist", 71 ofw_cpulist_methods, 72 0 73}; 74 75static devclass_t ofw_cpulist_devclass; 76 |
77DRIVER_MODULE(ofw_cpulist, nexus, ofw_cpulist_driver, ofw_cpulist_devclass, | 77DRIVER_MODULE(ofw_cpulist, ofwbus, ofw_cpulist_driver, ofw_cpulist_devclass, |
78 0, 0); 79 80static int 81ofw_cpulist_probe(device_t dev) 82{ 83 const char *name; 84 85 name = ofw_bus_get_name(dev); --- 129 unchanged lines hidden --- | 78 0, 0); 79 80static int 81ofw_cpulist_probe(device_t dev) 82{ 83 const char *name; 84 85 name = ofw_bus_get_name(dev); --- 129 unchanged lines hidden --- |