diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-09-11 11:28:12 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-11 23:58:42 (GMT) |
commit | ea6828b8aa3a8ebae8d7740f32f212ba1d2f0742 (patch) | |
tree | 6a783fc6ceb9de3edf2577af1ed5d6acc0deca74 /drivers/net/netxen/netxen_nic_main.c | |
parent | f78c0850d2ebe7a44a4b0263480a2f1a36a92218 (diff) | |
download | linux-fsl-qoriq-ea6828b8aa3a8ebae8d7740f32f212ba1d2f0742.tar.xz |
netxen: improve pci memory access
o Access on card memory through memory controller (agent)
rather than moving small pci window around. Clean up the
code for moving windows around.
o Restrict memory accesss to 64 bit, currently only firmware
download uses this.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 1399102..557e76c 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c @@ -643,9 +643,10 @@ netxen_setup_pci_map(struct netxen_adapter *adapter) adapter->ahw.ddr_mn_window = 0; adapter->ahw.qdr_sn_window = 0; - adapter->ahw.mn_win_crb = 0x100000 + PCIX_MN_WINDOW + - (pci_func * 0x20); - adapter->ahw.ms_win_crb = 0x100000 + PCIX_SN_WINDOW; + adapter->ahw.mn_win_crb = NETXEN_PCI_CRBSPACE + + 0x100000 + PCIX_MN_WINDOW + (pci_func * 0x20); + adapter->ahw.ms_win_crb = NETXEN_PCI_CRBSPACE + + 0x100000 + PCIX_SN_WINDOW; if (pci_func < 4) adapter->ahw.ms_win_crb += (pci_func * 0x20); else |