/* This routine is called to prepare the SLI3 device for PCI slot reset. It disables the device interrupt and pci device, and aborts the internal FCP pending I/Os.  */
static void lpfc_sli_prep_dev_for_reset(struct lpfc_hba *phba)
/* This routine is called to prepare the SLI3 device for PCI slot reset. It disables the device interrupt and pci device, and aborts the internal FCP pending I/Os.  */
static void lpfc_sli_prep_dev_for_reset(struct lpfc_hba *phba)
{
	struct lpfc_sli *psli = &phba->sli;
	struct lpfc_sli_ring  *pring;
	lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
			"2710 PCI channel disable preparing for reset\n");
	lpfc_sli_disable_intr(phba);
	pci_disable_device(phba->pcidev);
	pring = &psli->ring[psli->fcp_ring];
	lpfc_sli_abort_iocb_ring(phba, pring);
}