1294288Sdelphij/*-
2141261Sdelphij * Copyright (c) 2015 Andrew Turner
3141261Sdelphij * All rights reserved.
4141261Sdelphij *
5158795Sdelphij * Redistribution and use in source and binary forms, with or without
6141261Sdelphij * modification, are permitted provided that the following conditions
7141261Sdelphij * are met:
8141261Sdelphij * 1. Redistributions of source code must retain the above copyright
9141261Sdelphij *    notice, this list of conditions and the following disclaimer.
10141261Sdelphij * 2. Redistributions in binary form must reproduce the above copyright
11141261Sdelphij *    notice, this list of conditions and the following disclaimer in the
12141261Sdelphij *    documentation and/or other materials provided with the distribution.
13141261Sdelphij *
14141261Sdelphij * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15141261Sdelphij * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16141261Sdelphij * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17141261Sdelphij * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18141261Sdelphij * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19141261Sdelphij * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20141261Sdelphij * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21141261Sdelphij * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22141261Sdelphij * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23141261Sdelphij * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24141261Sdelphij * SUCH DAMAGE.
25141261Sdelphij *
26141261Sdelphij */
27141261Sdelphij
28141261Sdelphij#include <sys/cdefs.h>
29141261Sdelphij__FBSDID("$FreeBSD: releng/11.0/sys/arm/qemu/virt_common.c 298068 2016-04-15 16:05:41Z andrew $");
30141261Sdelphij
31141261Sdelphij#include "opt_platform.h"
32141261Sdelphij
33141261Sdelphij#include <sys/param.h>
34141261Sdelphij#include <sys/systm.h>
35141261Sdelphij
36141261Sdelphij#include <dev/fdt/fdt_common.h>
37141261Sdelphij
38141261Sdelphij#include <machine/intr.h>
39141261Sdelphij
40158795Sdelphijstruct fdt_fixup_entry fdt_fixup_table[] = {
41158795Sdelphij	{ NULL, NULL }
42158795Sdelphij};
43141261Sdelphij
44141261Sdelphij#ifndef INTRNG
45141261Sdelphijfdt_pic_decode_t fdt_pic_table[] = {
46141261Sdelphij	&gic_decode_fdt,
47141261Sdelphij	NULL
48141261Sdelphij};
49141261Sdelphij#endif
50141261Sdelphij