static void sis_set_dma_mode(ide_drive_t *drive, const u8 speed) { if (speed >= XFER_UDMA_0) sis_program_udma_timings(drive, speed); else sis_program_timings(drive, speed); }
static void sis_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) { const u8 speed = drive->dma_mode; if (speed >= XFER_UDMA_0) sis_program_udma_timings(drive, speed); else sis_program_timings(drive, speed); }