[TG3]: Walk PCI capability lists.
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 8 Oct 2007 06:27:28 +0000 (23:27 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:44 +0000 (16:54 -0700)
commit9974a356b204833b32173210ca25edfdc24dcdd5
tree1b6a4d69ec46c01934fb5ff2cf4d76d57a103752
parent8658251dc3fed54b09991a2c5e0a7084755157d7
[TG3]: Walk PCI capability lists.

Newer tg3 devices shuffle around the registers in PCI configuration
space.  This patch changes the way the driver accesses the PCI
capabilities registers.  Hardcoded register locations are replaced with
offsets from pci_find_capability() return values.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h
include/linux/pci_regs.h