netxen: refactor indirect register access
authorDhananjay Phadke <dhananjay@netxen.com>
Sat, 24 Oct 2009 16:03:59 +0000 (16:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2009 11:10:17 +0000 (04:10 -0700)
commita9ac07deeb4b880aea3eaccf7ec913ac902aeef9
treec87b51c895df99029557b383446803bd59fc86c2
parentf50330f90b9aa42b7058650ce66b85f1b443ab11
netxen: refactor indirect register access

Refactor code to calculate and set indirect access
window for control registers in 2MB address space
(NX3031 or newer). Use void __iomem * data type for
absolute pci addresses.

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netxen/netxen_nic_hw.c