diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2003-10-21 08:53:29 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2003-10-21 08:53:29 +0000 |
| commit | c3093074c4e32dd6fe86f756d18ec1e2135ef003 (patch) | |
| tree | 11afbebfc08fa9d728d9e5a9d6977c06156d289e | |
| parent | 3206e56993ec903bd4f48a83384a9456994cdb74 (diff) | |
Notes
| -rw-r--r-- | sys/dev/ata/ata-chipset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index 00e97f9c2359..bf27fcc0cc82 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -508,8 +508,10 @@ ata_cyrix_setmode(struct ata_device *atadev, int mode) u_int32_t udmatiming[] = { 0x00921250, 0x00911140, 0x00911030 }; int error; - mode = ata_limit_mode(atadev, mode, ATA_UDMA2); atadev->channel->dma->alignment = 16; + atadev->channel->dma->max_iosize = 63 * 1024; + + mode = ata_limit_mode(atadev, mode, ATA_UDMA2); error = ata_controlcmd(atadev, ATA_SETFEATURES, ATA_SF_SETXFER, 0, mode); @@ -955,7 +957,7 @@ ata_national_setmode(struct ata_device *atadev, int mode) u_int32_t udmatiming[] = { 0x80921250, 0x80911140, 0x80911030 }; int error; - atadev->channel->dma->alignment = 4; + atadev->channel->dma->alignment = 16; atadev->channel->dma->max_iosize = 63 * 1024; mode = ata_limit_mode(atadev, mode, ATA_UDMA2); |
