1/*-
2 * Copyright (c) 2003 Jake Burkholder.
3 * Copyright (c) 2005 Marius Strobl <marius@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 12 unchanged lines hidden (view full) ---
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, 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: head/sys/sparc64/fhc/fhc.c 200874 2009-12-22 21:02:46Z marius $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/pcpu.h>
--- 76 unchanged lines hidden (view full) ---
114static driver_t fhc_driver = {
115 "fhc",
116 fhc_methods,
117 sizeof(struct fhc_softc),
118};
119
120static devclass_t fhc_devclass;
121
122EARLY_DRIVER_MODULE(fhc, central, fhc_driver, fhc_devclass, 0, 0,
123 BUS_PASS_BUS);
124MODULE_DEPEND(fhc, central, 1, 1, 1);
125EARLY_DRIVER_MODULE(fhc, nexus, fhc_driver, fhc_devclass, 0, 0,
126 BUS_PASS_BUS);
127MODULE_DEPEND(fhc, nexus, 1, 1, 1);
128MODULE_VERSION(fhc, 1);
129
130static const struct intr_controller fhc_ic = {
131 fhc_intr_enable,
132 fhc_intr_disable,
133 fhc_intr_assign,
134 fhc_intr_clear
--- 390 unchanged lines hidden ---
2 * Copyright (c) 2003 Jake Burkholder.
3 * Copyright (c) 2005 Marius Strobl <marius@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 12 unchanged lines hidden (view full) ---
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, 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: head/sys/sparc64/fhc/fhc.c 200874 2009-12-22 21:02:46Z marius $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/pcpu.h>
--- 76 unchanged lines hidden (view full) ---
114static driver_t fhc_driver = {
115 "fhc",
116 fhc_methods,
117 sizeof(struct fhc_softc),
118};
119
120static devclass_t fhc_devclass;
121
122EARLY_DRIVER_MODULE(fhc, central, fhc_driver, fhc_devclass, 0, 0,
123 BUS_PASS_BUS);
124MODULE_DEPEND(fhc, central, 1, 1, 1);
125EARLY_DRIVER_MODULE(fhc, nexus, fhc_driver, fhc_devclass, 0, 0,
126 BUS_PASS_BUS);
127MODULE_DEPEND(fhc, nexus, 1, 1, 1);
128MODULE_VERSION(fhc, 1);
129
130static const struct intr_controller fhc_ic = {
131 fhc_intr_enable,
132 fhc_intr_disable,
133 fhc_intr_assign,
134 fhc_intr_clear
--- 390 unchanged lines hidden ---