From: Rajesh Borundia Date: Thu, 16 Dec 2010 22:59:01 +0000 (+0000) Subject: qlcnic: fix ocm window register offset calculation X-Git-Tag: Ubuntu-5.0.0-8.9~20751^2~134 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b5006dcb10a4b19e86f413b46787c55bd0d1277b;p=mirror_ubuntu-disco-kernel.git qlcnic: fix ocm window register offset calculation OCM window register offset was calculated incorrectly for pci function greater than zero. Signed-off-by: Rajesh Borundia Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlcnic/qlcnic_hdr.h b/drivers/net/qlcnic/qlcnic_hdr.h index 19328e05b75d..726ef555b6bc 100644 --- a/drivers/net/qlcnic/qlcnic_hdr.h +++ b/drivers/net/qlcnic/qlcnic_hdr.h @@ -621,7 +621,7 @@ enum { #define PCIX_INT_MASK (0x10104) #define PCIX_OCM_WINDOW (0x10800) -#define PCIX_OCM_WINDOW_REG(func) (PCIX_OCM_WINDOW + 0x20 * (func)) +#define PCIX_OCM_WINDOW_REG(func) (PCIX_OCM_WINDOW + 0x4 * (func)) #define PCIX_TARGET_STATUS (0x10118) #define PCIX_TARGET_STATUS_F1 (0x10160)