1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

Fix the PR. Getting a dma channel equal to 0 remains a problem though.

PR:		i386/22568
This commit is contained in:
Nicolas Souchu 2000-12-19 21:28:17 +00:00
parent 44f6a9ff9b
commit 1afd1f9956
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70201
2 changed files with 2 additions and 2 deletions

View File

@ -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
*/

View File

@ -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
*/