/** * Copyright (C) 2005 - 2015 Emulex * All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. The full GNU General * Public License is included in this distribution in the file called COPYING. * * Contact Information: * linux-drivers@avagotech.com * * Emulex * 3333 Susan Street * Costa Mesa, CA 92626 */#include<scsi/iscsi_proto.h>#include"be_main.h"#include"be.h"#include"be_mgmt.h"intbeiscsi_pci_soft_reset(structbeiscsi_hba*phba){u32sreset;u8*pci_reset_offset=0;u8*pci_online0_offset=0;u8*pci_online1_offset=0;u32pconline0=0;u32pconline1=0;u32i;pci_reset_offset=(u8*)phba->pci_va+BE2_SOFT_RESET;pci_online0_offset=(u8*)phba->pci_va+BE2_PCI_ONLINE0;pci_online1_offset=(u8*)phba->pci_va+BE2_PCI_ONLINE1;sreset=readl((void*)pci_reset_offset);sreset|=BE2_SET_RESET;