Fix the PR. Getting a dma channel equal to 0 remains a problem though.
PR: i386/22568
This commit is contained in:
parent
44f6a9ff9b
commit
1afd1f9956
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70201
@ -1657,7 +1657,7 @@ ppc_write(device_t dev, char *buf, int len, int how)
|
||||
*/
|
||||
if ((ppc->ppc_avm & PPB_ECP) && (ppc->ppc_registered)) {
|
||||
|
||||
if (ppc->ppc_dmachan >= 0) {
|
||||
if (ppc->ppc_dmachan > 0) {
|
||||
|
||||
/* byte mode, no intr, no DMA, dir=0, flush fifo
|
||||
*/
|
||||
|
@ -1657,7 +1657,7 @@ ppc_write(device_t dev, char *buf, int len, int how)
|
||||
*/
|
||||
if ((ppc->ppc_avm & PPB_ECP) && (ppc->ppc_registered)) {
|
||||
|
||||
if (ppc->ppc_dmachan >= 0) {
|
||||
if (ppc->ppc_dmachan > 0) {
|
||||
|
||||
/* byte mode, no intr, no DMA, dir=0, flush fifo
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user