Lines Matching refs:mode
59 static int ata_acard_850_setmode(device_t dev, int target, int mode);
60 static int ata_acard_86X_setmode(device_t dev, int target, int mode);
152 ata_acard_850_setmode(device_t dev, int target, int mode)
159 mode = min(mode, ctlr->chip->max_dma);
161 if (mode >= ATA_WDMA2) {
165 if (mode >= ATA_UDMA0)
166 reg54 |= (((mode & ATA_MODE_MASK) + 1) << (devno << 1));
171 /* we could set PIO mode timings, but we assume the BIOS did that */
172 return (mode);
176 ata_acard_86X_setmode(device_t dev, int target, int mode)
183 mode = min(mode, ctlr->chip->max_dma);
185 if (mode >= ATA_WDMA2) {
189 if (mode >= ATA_UDMA0)
190 reg44 |= (((mode & ATA_MODE_MASK) + 1) << (devno << 2));
195 /* we could set PIO mode timings, but we assume the BIOS did that */
196 return (mode);