/* or we will underclock the device and get reduced performance.  */
static void hpt3x2n_set_clock(struct ata_port *ap, int source)
/* or we will underclock the device and get reduced performance.  */
static void hpt3x2n_set_clock(struct ata_port *ap, int source)
{
	void __iomem *bmdma = ap->ioaddr.bmdma_addr - ap->port_no * 8;
	iowrite8(0x80, bmdma+0x73);
	iowrite8(0x80, bmdma+0x77);
	iowrite8(source, bmdma+0x7B);
	iowrite8(0xC0, bmdma+0x79);
	iowrite8(ioread8(bmdma+0x70) | 0x32, bmdma+0x70);
	iowrite8(ioread8(bmdma+0x74) | 0x32, bmdma+0x74);
	iowrite8(0x00, bmdma+0x79);
	iowrite8(0x00, bmdma+0x73);
	iowrite8(0x00, bmdma+0x77);
}