Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm Do not attac...
details: https://anonhg.NetBSD.org/src/rev/ef16d2eeed3e
branches: trunk
changeset: 957522:ef16d2eeed3e
user: rin <rin%NetBSD.org@localhost>
date: Tue Dec 01 04:19:04 2020 +0000
description:
Do not attach vchiq(4) in big-endian mode.
For big-endian mode, all data written to and read from DMA buffer must be
byte-swapped. This requires heavy modifications to third party codes.
Also, we will switch to vc4 drm driver, hopefully soon.
diffstat:
sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_acpi.c | 9 +++++++--
sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_fdt.c | 9 +++++++--
2 files changed, 14 insertions(+), 4 deletions(-)
diffs (60 lines):
diff -r 6a362a3d4b0a -r ef16d2eeed3e sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_acpi.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_acpi.c Tue Dec 01 04:18:26 2020 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_acpi.c Tue Dec 01 04:19:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vchiq_netbsd_acpi.c,v 1.2 2020/02/22 19:37:31 jmcneill Exp $ */
+/* $NetBSD: vchiq_netbsd_acpi.c,v 1.3 2020/12/01 04:19:04 rin Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vchiq_netbsd_acpi.c,v 1.2 2020/02/22 19:37:31 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vchiq_netbsd_acpi.c,v 1.3 2020/12/01 04:19:04 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -93,6 +93,11 @@
sc->sc_iot = aa->aa_memt;
asc->sc_handle = aa->aa_node->ad_handle;
+#if BYTE_ORDER == BIG_ENDIAN
+ aprint_error_dev(sc->sc_dev, "not supported yet in big-endian mode\n");
+ return;
+#endif
+
rv = acpi_resource_parse(self, aa->aa_node->ad_handle, "_CRS",
&res, &acpi_resource_parse_ops_default);
if (ACPI_FAILURE(rv))
diff -r 6a362a3d4b0a -r ef16d2eeed3e sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_fdt.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_fdt.c Tue Dec 01 04:18:26 2020 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_fdt.c Tue Dec 01 04:19:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vchiq_netbsd_fdt.c,v 1.2 2020/12/01 03:28:08 rin Exp $ */
+/* $NetBSD: vchiq_netbsd_fdt.c,v 1.3 2020/12/01 04:19:04 rin Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vchiq_netbsd_fdt.c,v 1.2 2020/12/01 03:28:08 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vchiq_netbsd_fdt.c,v 1.3 2020/12/01 04:19:04 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -89,6 +89,11 @@
sc->sc_iot = faa->faa_bst;
fsc->sc_phandle = phandle;
+#if BYTE_ORDER == BIG_ENDIAN
+ aprint_error_dev(sc->sc_dev, "not supported yet in big-endian mode\n");
+ return;
+#endif
+
bus_addr_t addr;
bus_size_t size;
Home |
Main Index |
Thread Index |
Old Index