Project

General

Profile

Bug #724 » a.diff

qhwt+dfly, 07/18/2007 07:08 AM

View differences:

ata-dma.c 18 Jul 2007 06:53:51 -0000
ch->dma->alignment = 2;
ch->dma->boundary = 128 * DEV_BSIZE;
ch->dma->segsize = 128 * DEV_BSIZE;
ch->dma->max_iosize = 128 * DEV_BSIZE;
ch->dma->max_iosize = 64 * DEV_BSIZE;
ch->dma->max_address = BUS_SPACE_MAXADDR_32BIT;
}
......
args->nsegs = nsegs;
}
void db_print_backtrace(void);
static int
ata_dmaload(device_t dev, caddr_t data, int32_t count, int dir,
void *addr, int *entries)
......
if (count > ch->dma->max_iosize) {
device_printf(dev, "FAILURE - oversized DMA transfer attempt %d > %d\n",
count, ch->dma->max_iosize);
db_print_backtrace();
return EIO;
}
(2-2/2)