diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-10-13 05:31:42 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-13 11:48:19 -0700 |
commit | 47abe35610cbbfb3cc92847efdf588a8be1f5ebc (patch) | |
tree | 13f9e7a04b31a4138e3e069f62377f75b049e31f /drivers/net/netxen/netxen_nic.h | |
parent | 1f5e055db369a5d1c74174571585a4ec2e6c40fb (diff) | |
download | lwn-47abe35610cbbfb3cc92847efdf588a8be1f5ebc.tar.gz lwn-47abe35610cbbfb3cc92847efdf588a8be1f5ebc.zip |
netxen: add access to on chip memory for tools
Add access to on chip memory, this is used by
debug and diagnostic tools only.
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.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index db5c8d27d5d8..eef9e66becbd 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h @@ -543,13 +543,13 @@ struct netxen_hardware_context { void __iomem *pci_base1; void __iomem *pci_base2; void __iomem *db_base; + void __iomem *ocm_win_crb; + unsigned long db_len; unsigned long pci_len0; - int qdr_sn_window; - int ddr_mn_window; - u32 mn_win_crb; - u32 ms_win_crb; + u32 ocm_win; + u32 resv1; u8 cut_through; u8 revision_id; @@ -1183,8 +1183,7 @@ struct netxen_adapter { int (*pci_mem_read)(struct netxen_adapter *, u64, u64 *); int (*pci_mem_write)(struct netxen_adapter *, u64, u64); - unsigned long (*pci_set_window)(struct netxen_adapter *, - unsigned long long); + int (*pci_set_window)(struct netxen_adapter *, u64, u32 *); u32 (*io_read)(struct netxen_adapter *, void __iomem *); void (*io_write)(struct netxen_adapter *, void __iomem *, u32); |