From: <ham...@us...> - 2004-03-02 10:28:10
|
Update of /cvsroot/gc-linux/linux/drivers/block In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20864/linux/drivers/block Modified Files: gc_aram.c Log Message: Aram seems to work (in my tree i disabled the soundcard driver for to be sure) some non-logical things happen during ARAM copy, but sure somebody will figure out. i testet swap, and minix filesystem on in, and it worked without troubles. hampti Index: gc_aram.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/block/gc_aram.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gc_aram.c 2 Mar 2004 09:22:02 -0000 1.2 +++ gc_aram.c 2 Mar 2004 10:16:28 -0000 1.3 @@ -1,7 +1,7 @@ /* gc_aram.c - by GC-Linux Team , hamtitampti + by GC-Linux Team , hamtitampti , 2004 */ /* // Some test things @@ -90,8 +90,10 @@ AR_DMA_CNT_H = (type << 15) | (length >> 16); AR_DMA_CNT_L = length & 0xFFFF; + // For security udelay(10000); - // Missing: Ready Flag for Transfer finished.... + + // Without the Break, the While loop loops endless int counter=0; while (AI_DSP_STATUS & 0x200) { counter++; @@ -127,6 +129,7 @@ } #else if (rq_data_dir(req) == READ) { + //memset(req->buffer,0,len); flush_dcache_range((unsigned long)req->buffer,(unsigned long)req->buffer + len); ARAM_StartDMA((unsigned long)req->buffer,start+ARAM_SOUNDMEMORYOFFSET, len,ARAM_READ); flush_dcache_range((unsigned long)req->buffer,(unsigned long)req->buffer + len); |