In dma_finish, don't disturb the direction bit in DFCNTRL when turning off

host DMAs.  The additional test to ensure that the DMA has stopped is also
unnecessary since we've already waited for the DMA to complete.

Update my copyright for the new year.
This commit is contained in:
Justin T. Gibbs 1997-02-03 02:02:04 +00:00
parent 9dc6e7c9d3
commit 1d6abdbc6f

View file

@ -7,7 +7,7 @@
*
*FreeBSD, Twin, Wide, 2 command per target support, tagged queuing,
*SCB paging and other optimizations:
*Copyright (c) 1994, 1995, 1996, 1997 Justin Gibbs. All rights reserved.
*Copyright (c) 1994, 1995, 1996 Justin Gibbs. All rights reserved.
*
*Redistribution and use in source and binary forms, with or without
*modification, are permitted provided that the following conditions
@ -1093,11 +1093,8 @@ dfdat_out_7:
*/
dma_finish:
test DFSTATUS,HDONE jz dma_finish
/* Turn off DMA preserving WIDEODD */
and DFCNTRL,WIDEODD
dma_finish2:
test DFCNTRL,HDMAENACK jnz dma_finish2
ret
/* Turn off DMA */
and DFCNTRL, 0xf7 ret # ~HDMAEN
index_untagged_scb:
mov DINDEX, SINDEX