1/*-
2 * Copyright (c) 2003 Jake Burkholder.
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: head/sys/sparc64/central/central.c 200815 2009-12-21 21:29:16Z marius $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35#include <sys/module.h>
36
--- 63 unchanged lines hidden (view full) ---
100static driver_t central_driver = {
101 "central",
102 central_methods,
103 sizeof(struct central_softc),
104};
105
106static devclass_t central_devclass;
107
108DRIVER_MODULE(central, nexus, central_driver, central_devclass, 0, 0);
109MODULE_DEPEND(fhc, nexus, 1, 1, 1);
110MODULE_VERSION(central, 1);
111
112static int
113central_probe(device_t dev)
114{
115
116 if (strcmp(ofw_bus_get_name(dev), "central") == 0) {
--- 171 unchanged lines hidden ---
2 * Copyright (c) 2003 Jake Burkholder.
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: head/sys/sparc64/central/central.c 200815 2009-12-21 21:29:16Z marius $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35#include <sys/module.h>
36
--- 63 unchanged lines hidden (view full) ---
100static driver_t central_driver = {
101 "central",
102 central_methods,
103 sizeof(struct central_softc),
104};
105
106static devclass_t central_devclass;
107
108DRIVER_MODULE(central, nexus, central_driver, central_devclass, 0, 0);
109MODULE_DEPEND(fhc, nexus, 1, 1, 1);
110MODULE_VERSION(central, 1);
111
112static int
113central_probe(device_t dev)
114{
115
116 if (strcmp(ofw_bus_get_name(dev), "central") == 0) {
--- 171 unchanged lines hidden ---