Deleted Added
full compact
vdevice.c (266128) vdevice.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/vdevice.c 266128 2014-05-15 14:26:11Z ian $");
28__FBSDID("$FreeBSD: stable/10/sys/powerpc/pseries/vdevice.c 266160 2014-05-15 17:30:16Z ian $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/malloc.h>
35#include <sys/bus.h>
36#include <sys/cpu.h>

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

98static driver_t vdevice_driver = {
99 "vdevice",
100 vdevice_methods,
101 0
102};
103
104static devclass_t vdevice_devclass;
105
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/malloc.h>
35#include <sys/bus.h>
36#include <sys/cpu.h>

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

98static driver_t vdevice_driver = {
99 "vdevice",
100 vdevice_methods,
101 0
102};
103
104static devclass_t vdevice_devclass;
105
106DRIVER_MODULE(vdevice, nexus, vdevice_driver, vdevice_devclass, 0, 0);
106DRIVER_MODULE(vdevice, ofwbus, vdevice_driver, vdevice_devclass, 0, 0);
107
108static int
109vdevice_probe(device_t dev)
110{
111 const char *name;
112
113 name = ofw_bus_get_name(dev);
114

--- 119 unchanged lines hidden ---
107
108static int
109vdevice_probe(device_t dev)
110{
111 const char *name;
112
113 name = ofw_bus_get_name(dev);
114

--- 119 unchanged lines hidden ---