Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/rpi Grab the DMA channel mask from the firmw...
details: https://anonhg.NetBSD.org/src/rev/df5da5c05c2d
branches: trunk
changeset: 332116:df5da5c05c2d
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Sep 07 15:28:24 2014 +0000
description:
Grab the DMA channel mask from the firmware.
diffstat:
sys/arch/evbarm/rpi/rpi_machdep.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r 04d3ca921812 -r df5da5c05c2d sys/arch/evbarm/rpi/rpi_machdep.c
--- a/sys/arch/evbarm/rpi/rpi_machdep.c Sun Sep 07 15:28:05 2014 +0000
+++ b/sys/arch/evbarm/rpi/rpi_machdep.c Sun Sep 07 15:28:24 2014 +0000
@@ -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 @@
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 @@
.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 @@
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__,
Home |
Main Index |
Thread Index |
Old Index