diff options
| author | Justin T. Gibbs <gibbs@FreeBSD.org> | 1997-03-24 05:10:04 +0000 |
|---|---|---|
| committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 1997-03-24 05:10:04 +0000 |
| commit | 7c2b54b21e50836e56f857c969eb82f10bc3d6e3 (patch) | |
| tree | 1fc2570c64a86e803bc8cab89c149cff3c49e90f /sys/dev | |
| parent | d7487e5e4a45bd97224ac77909abe95d1d79ed01 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/aic7xxx/aic7xxx.seq | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx.seq b/sys/dev/aic7xxx/aic7xxx.seq index 5077ef0092d0..572586588dd9 100644 --- a/sys/dev/aic7xxx/aic7xxx.seq +++ b/sys/dev/aic7xxx/aic7xxx.seq @@ -1039,7 +1039,18 @@ dma_scb: mov DFCNTRL, DMAPARAMS; test DMAPARAMS, DIRECTION jnz dma_scb_fromhost; /* Fill it with the SCB data */ - call copy_scb_tofifo; +copy_scb_tofifo: + mvi SINDEX, SCB_CONTROL; + add A, 28, SINDEX; +copy_scb_tofifo_loop: + mov DFDAT,SINDIR; + mov DFDAT,SINDIR; + mov DFDAT,SINDIR; + mov DFDAT,SINDIR; + mov DFDAT,SINDIR; + mov DFDAT,SINDIR; + mov DFDAT,SINDIR; + cmp SINDEX, A jne copy_scb_tofifo_loop; or DFCNTRL, HDMAEN|FIFOFLUSH; dma_scb_fromhost: call dma_finish; @@ -1060,19 +1071,6 @@ dfdat_in_7_continued: mov DINDIR,DFDAT; mov DINDIR,DFDAT ret; -copy_scb_tofifo: - mvi SCB_CONTROL call dfdat_out_7; - call dfdat_out_7; - call dfdat_out_7; -dfdat_out_7: - mov DFDAT,SINDIR; - mov DFDAT,SINDIR; - mov DFDAT,SINDIR; - mov DFDAT,SINDIR; - mov DFDAT,SINDIR; - mov DFDAT,SINDIR; - mov DFDAT,SINDIR ret; - /* * Wait for DMA from host memory to data FIFO to complete, then disable * DMA and wait for it to acknowledge that it's off. |
