diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2010-12-16 22:59:01 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-17 19:39:01 (GMT) |
commit | b5006dcb10a4b19e86f413b46787c55bd0d1277b (patch) | |
tree | f1bfdfce262611db1d9f8568a5758b37405b7e61 /drivers/net | |
parent | c75822a3091a899d982d59cd2b4454fe7c3e0318 (diff) | |
download | linux-fsl-qoriq-b5006dcb10a4b19e86f413b46787c55bd0d1277b.tar.xz |
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 <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hdr.h b/drivers/net/qlcnic/qlcnic_hdr.h index 19328e0..726ef55 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) |