mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
9dc6e7c9d3
commit
1d6abdbc6f
1 changed files with 3 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue