summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-09-22 01:10:45 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-09-22 01:10:45 +0000
commit013d363544b1bb5ecfa4a9df1a9cd12ff38f9ad0 (patch)
tree0884196d3d6f7251d3c1ed323ed370bdc989a0a6 /sys/arch/arm64/dev
parent95c7e60e9879c5e116079aeb710e7ca20e3a14c7 (diff)
move simplebusvar.h so it can be used without ifdef
ok kettenis@ phessler@
Diffstat (limited to 'sys/arch/arm64/dev')
-rw-r--r--sys/arch/arm64/dev/agintc.c4
-rw-r--r--sys/arch/arm64/dev/ampintc.c4
-rw-r--r--sys/arch/arm64/dev/apldc.c4
-rw-r--r--sys/arch/arm64/dev/simplebus.c6
-rw-r--r--sys/arch/arm64/dev/simplebusvar.h37
5 files changed, 9 insertions, 46 deletions
diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c
index 81fa97f70b2..944e5472592 100644
--- a/sys/arch/arm64/dev/agintc.c
+++ b/sys/arch/arm64/dev/agintc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agintc.c,v 1.53 2023/09/12 08:29:28 jmatthew Exp $ */
+/* $OpenBSD: agintc.c,v 1.54 2023/09/22 01:10:43 jsg Exp $ */
/*
* Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn <drahn@dalerahn.com>
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
@@ -35,7 +35,7 @@
#include <dev/ofw/fdt.h>
#include <dev/ofw/openfirm.h>
-#include <arm64/dev/simplebusvar.h>
+#include <machine/simplebusvar.h>
#define ICC_PMR s3_0_c4_c6_0
#define ICC_IAR0 s3_0_c12_c8_0
diff --git a/sys/arch/arm64/dev/ampintc.c b/sys/arch/arm64/dev/ampintc.c
index f7926fe1299..3c0ccb8ed47 100644
--- a/sys/arch/arm64/dev/ampintc.c
+++ b/sys/arch/arm64/dev/ampintc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ampintc.c,v 1.30 2022/12/21 22:30:42 kettenis Exp $ */
+/* $OpenBSD: ampintc.c,v 1.31 2023/09/22 01:10:43 jsg Exp $ */
/*
* Copyright (c) 2007,2009,2011 Dale Rahn <drahn@openbsd.org>
*
@@ -35,7 +35,7 @@
#include <dev/ofw/fdt.h>
#include <dev/ofw/openfirm.h>
-#include <arm64/dev/simplebusvar.h>
+#include <machine/simplebusvar.h>
/* registers */
#define ICD_DCR 0x000
diff --git a/sys/arch/arm64/dev/apldc.c b/sys/arch/arm64/dev/apldc.c
index 26edab2c20a..c11f0de0ea1 100644
--- a/sys/arch/arm64/dev/apldc.c
+++ b/sys/arch/arm64/dev/apldc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apldc.c,v 1.10 2023/09/05 11:04:06 tobhe Exp $ */
+/* $OpenBSD: apldc.c,v 1.11 2023/09/22 01:10:43 jsg Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
@@ -40,7 +40,7 @@
#include <dev/hid/hidmsvar.h>
#include <arm64/dev/rtkit.h>
-#include <arm64/dev/simplebusvar.h>
+#include <machine/simplebusvar.h>
#include "apldc.h"
diff --git a/sys/arch/arm64/dev/simplebus.c b/sys/arch/arm64/dev/simplebus.c
index 4bd468eaa10..7137ecc1278 100644
--- a/sys/arch/arm64/dev/simplebus.c
+++ b/sys/arch/arm64/dev/simplebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: simplebus.c,v 1.17 2023/07/19 20:26:11 kettenis Exp $ */
+/* $OpenBSD: simplebus.c,v 1.18 2023/09/22 01:10:43 jsg Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
@@ -26,8 +26,8 @@
#include <dev/ofw/fdt.h>
#include <dev/ofw/ofw_misc.h>
-#include <arm64/fdt.h>
-#include <arm64/dev/simplebusvar.h>
+#include <machine/fdt.h>
+#include <machine/simplebusvar.h>
int simplebus_match(struct device *, void *, void *);
void simplebus_attach(struct device *, struct device *, void *);
diff --git a/sys/arch/arm64/dev/simplebusvar.h b/sys/arch/arm64/dev/simplebusvar.h
deleted file mode 100644
index 5b236c1b162..00000000000
--- a/sys/arch/arm64/dev/simplebusvar.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* $OpenBSD: simplebusvar.h,v 1.3 2019/04/16 13:15:31 kettenis Exp $ */
-/*
- * Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-struct simplebus_softc {
- struct device sc_dev;
- int sc_node;
- bus_space_tag_t sc_iot;
- bus_dma_tag_t sc_dmat;
- int sc_acells;
- int sc_scells;
- int sc_pacells;
- int sc_pscells;
- struct bus_space sc_bus;
- struct machine_bus_dma_tag sc_dma;
- int *sc_ranges;
- int sc_rangeslen;
- int *sc_dmaranges;
- int sc_dmarangeslen;
- int sc_early;
- int sc_early_nodes[64];
-};
-
-extern void simplebus_attach(struct device *, struct device *, void *);