ata_piix: unify code for programming PIO and MWDMA timings