/* Perform the initial reset handling for the 3x2n series controllers. Reset the hardware and state machine,  */
static int hpt3x2n_pre_reset(struct ata_link *link, unsigned long deadline)
/* Perform the initial reset handling for the 3x2n series controllers. Reset the hardware and state machine,  */
static int hpt3x2n_pre_reset(struct ata_link *link, unsigned long deadline)
{
	struct ata_port *ap = link->ap;
	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
	pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37);
	udelay(100);
	return ata_sff_prereset(link, deadline);
}