Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner add MMC IDMA descriptor
details: https://anonhg.NetBSD.org/src/rev/21c23f70bee3
branches: trunk
changeset: 332122:21c23f70bee3
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Sep 07 21:54:08 2014 +0000
description:
add MMC IDMA descriptor
diffstat:
sys/arch/arm/allwinner/awin_reg.h | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 3a05419ea11e -r 21c23f70bee3 sys/arch/arm/allwinner/awin_reg.h
--- a/sys/arch/arm/allwinner/awin_reg.h Sun Sep 07 20:55:34 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_reg.h Sun Sep 07 21:54:08 2014 +0000
@@ -719,6 +719,20 @@
#define AWIN_MMC_IDST_RECEIVE_INT __BIT(1)
#define AWIN_MMC_IDST_TRANSMIT_INT __BIT(0)
+struct awin_mmc_idma_descriptor {
+ uint32_t dma_config;
+#define AWIN_MMC_IDMA_CONFIG_DIC __BIT(1)
+#define AWIN_MMC_IDMA_CONFIG_LD __BIT(2)
+#define AWIN_MMC_IDMA_CONFIG_FD __BIT(3)
+#define AWIN_MMC_IDMA_CONFIG_CH __BIT(4)
+#define AWIN_MMC_IDMA_CONFIG_ER __BIT(5)
+#define AWIN_MMC_IDMA_CONFIG_CES __BIT(30)
+#define AWIN_MMC_IDMA_CONFIG_OWN __BIT(31)
+ uint32_t dma_buf_size;
+ uint32_t dma_buf_addr;
+ uint32_t dma_next;
+} __packed;
+
#define AWIN_CPUCFG_CPU0_RST_CTRL_REG 0x0040
#define AWIN_CPUCFG_CPU0_CTRL_REG 0x0044
#define AWIN_CPUCFG_CPU0_STATUS_REG 0x0048
Home |
Main Index |
Thread Index |
Old Index