/* Unlock the control register block for this adapter. Registers must not be unlocked in a situation where libata might look at them.  */
static void optidma_unlock(struct ata_port *ap)
/* Unlock the control register block for this adapter. Registers must not be unlocked in a situation where libata might look at them.  */
static void optidma_unlock(struct ata_port *ap)
{
	void __iomem *regio = ap->ioaddr.cmd_addr;
	ioread16(regio + 1);
	ioread16(regio + 1);
	iowrite8(3, regio + 2);
}