⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbdma.patch

📁 patches for linux-2.6.
💻 PATCH
字号:
diff -Naur linux26-cvs/arch/mips/au1000/common/dbdma.c linux26-amd/arch/mips/au1000/common/dbdma.c--- linux26-cvs/arch/mips/au1000/common/dbdma.c	Tue May 31 10:22:40 2005+++ linux26-amd/arch/mips/au1000/common/dbdma.c	Wed Jul 27 16:09:58 2005@@ -141,12 +140,12 @@ 	{ DSCR_CMD0_AES_RX, DEV_FLAGS_IN , 4, 32, 0x10300008, 0, 0 }, 	{ DSCR_CMD0_AES_TX, DEV_FLAGS_OUT, 4, 32, 0x10300004, 0, 0 }, -	{ DSCR_CMD0_PSC0_TX, DEV_FLAGS_OUT, 0, 0, 0x11a0001c, 0, 0 },-	{ DSCR_CMD0_PSC0_RX, DEV_FLAGS_IN, 0, 0, 0x11a0001c, 0, 0 },+	{ DSCR_CMD0_PSC0_TX, DEV_FLAGS_OUT, 0, 16, 0x11a0001c, 0, 0 },+	{ DSCR_CMD0_PSC0_RX, DEV_FLAGS_IN, 0, 16, 0x11a0001c, 0, 0 }, 	{ DSCR_CMD0_PSC0_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, -	{ DSCR_CMD0_PSC1_TX, DEV_FLAGS_OUT, 0, 0, 0x11b0001c, 0, 0 },-	{ DSCR_CMD0_PSC1_RX, DEV_FLAGS_IN, 0, 0, 0x11b0001c, 0, 0 },+	{ DSCR_CMD0_PSC1_TX, DEV_FLAGS_OUT, 0, 16, 0x11b0001c, 0, 0 },+	{ DSCR_CMD0_PSC1_RX, DEV_FLAGS_IN, 0, 16, 0x11b0001c, 0, 0 }, 	{ DSCR_CMD0_PSC1_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 },  	{ DSCR_CMD0_CIM_RXA, DEV_FLAGS_IN, 0, 32, 0x14004020, 0, 0 },@@ -424,7 +422,13 @@ 	cmd0 |= DSCR_CMD0_SID(srcid); 	cmd0 |= DSCR_CMD0_DID(destid); 	cmd0 |= DSCR_CMD0_IE | DSCR_CMD0_CV;-	cmd0 |= DSCR_CMD0_ST(DSCR_CMD0_ST_CURRENT);+	cmd0 |= DSCR_CMD0_ST(DSCR_CMD0_ST_NOCHANGE);+	+        /* is it mem to mem transfer? */+        if(((DSCR_CUSTOM2DEV_ID(srcid) == DSCR_CMD0_THROTTLE) || (DSCR_CUSTOM2DEV_ID(srcid) == DSCR_CMD0_ALWAYS)) &&+           ((DSCR_CUSTOM2DEV_ID(destid) == DSCR_CMD0_THROTTLE) || (DSCR_CUSTOM2DEV_ID(destid) == DSCR_CMD0_ALWAYS))) {+               cmd0 |= DSCR_CMD0_MEM;+        }  	switch (stp->dev_devwidth) { 	case 8:@@ -533,7 +537,8 @@ 		dp->dscr_dest0 = dest0; 		dp->dscr_dest1 = dest1; 		dp->dscr_stat = 0;-				dp->sw_context = dp->sw_status = 0;+		dp->sw_context = 0;+		dp->sw_status = 0; 		dp->dscr_nxtptr = DSCR_NXTPTR(virt_to_phys(dp + 1)); 		dp++; 	}@@ -585,9 +590,6 @@ 		dp->dscr_cmd0 |= DSCR_CMD0_IE; 	if (flags & DDMA_FLAGS_NOIE) 		dp->dscr_cmd0 &= ~DSCR_CMD0_IE;-	/* Get next descriptor pointer.-	*/-	ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));  	/* 	 * There is an errata on the Au1200/Au1550 parts that could result @@ -601,6 +603,10 @@ 	au_sync(); 	dma_cache_wback_inv((unsigned long)dp, sizeof(dp));         ctp->chan_ptr->ddma_dbell = 0;++	/* Get next descriptor pointer.+	*/+	ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));  	/* return something not zero. 	*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -