Module Name: src
Committed By: skrll
Date: Sun Sep 7 15:28:24 UTC 2014
Modified Files:
src/sys/arch/evbarm/rpi: rpi_machdep.c
Log Message:
Grab the DMA channel mask from the firmware.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/evbarm/rpi/rpi_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/rpi/rpi_machdep.c
diff -u src/sys/arch/evbarm/rpi/rpi_machdep.c:1.45 src/sys/arch/evbarm/rpi/rpi_machdep.c:1.46
--- src/sys/arch/evbarm/rpi/rpi_machdep.c:1.45 Fri Sep 5 21:22:35 2014
+++ src/sys/arch/evbarm/rpi/rpi_machdep.c Sun Sep 7 15:28:24 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: rpi_machdep.c,v 1.45 2014/09/05 21:22:35 macallan Exp $ */
+/* $NetBSD: rpi_machdep.c,v 1.46 2014/09/07 15:28:24 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.45 2014/09/05 21:22:35 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.46 2014/09/07 15:28:24 skrll Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_ddb.h"
@@ -177,6 +177,7 @@ static struct __aligned(16) {
struct vcprop_tag_macaddr vbt_macaddr;
struct vcprop_tag_memory vbt_memory;
struct vcprop_tag_boardserial vbt_serial;
+ struct vcprop_tag_dmachan vbt_dmachan;
struct vcprop_tag_cmdline vbt_cmdline;
struct vcprop_tag_clockrate vbt_emmcclockrate;
struct vcprop_tag_clockrate vbt_armclockrate;
@@ -229,6 +230,13 @@ static struct __aligned(16) {
.vpt_rcode = VCPROPTAG_REQUEST
},
},
+ .vbt_dmachan = {
+ .tag = {
+ .vpt_tag = VCPROPTAG_GET_DMACHAN,
+ .vpt_len = VCPROPTAG_LEN(vb.vbt_dmachan),
+ .vpt_rcode = VCPROPTAG_REQUEST
+ },
+ },
.vbt_cmdline = {
.tag = {
.vpt_tag = VCPROPTAG_GET_CMDLINE,
@@ -457,6 +465,9 @@ rpi_bootparams(void)
if (vcprop_tag_success_p(&vb.vbt_serial.tag))
printf("%s: board serial %llx\n", __func__,
vb.vbt_serial.sn);
+ if (vcprop_tag_success_p(&vb.vbt_dmachan.tag))
+ printf("%s: DMA channel mask 0x%08x\n", __func__,
+ vb.vbt_dmachan.mask);
if (vcprop_tag_success_p(&vb.vbt_cmdline.tag))
printf("%s: cmdline %s\n", __func__,