/* The init_hwif_cs5530() routine guarantees that all drives will have valid default PIO timings set up before we get here.  */
static void cs5530_set_pio_mode(ide_drive_t *drive, const u8 pio)
/* The init_hwif_cs5530() routine guarantees that all drives will have valid default PIO timings set up before we get here.  */
static void cs5530_set_pio_mode(ide_drive_t *drive, const u8 pio)
{
	unsigned long basereg = CS5530_BASEREG(drive->hwif);
	unsigned int format = (inl(basereg + 4) >> 31) & 1;
	outl(cs5530_pio_timings[format][pio], basereg + ((drive->dn & 1)<<3));
}