projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c75822a
)
qlcnic: fix ocm window register offset calculation
author
Rajesh Borundia
<
[email protected]
>
Thu, 16 Dec 2010 22:59:01 +0000
(22:59 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 17 Dec 2010 19:39:01 +0000
(11:39 -0800)
OCM window register offset was calculated incorrectly for
pci function greater than zero.
Signed-off-by: Rajesh Borundia <
[email protected]
>
Signed-off-by: Amit Kumar Salecha <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/qlcnic/qlcnic_hdr.h
patch
|
blob
|
history
diff --git
a/drivers/net/qlcnic/qlcnic_hdr.h
b/drivers/net/qlcnic/qlcnic_hdr.h
index 19328e05b75d92184d7e68d11c199f3863baf9c5..726ef555b6bc6e3bdc3b3e29c3beff6cbd122dee 100644
(file)
--- 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 + 0x
20
* (func))
+#define PCIX_OCM_WINDOW_REG(func) (PCIX_OCM_WINDOW + 0x
4
* (func))
#define PCIX_TARGET_STATUS (0x10118)
#define PCIX_TARGET_STATUS_F1 (0x10160)