pasemi_mac: Stop using the pci config space accessors for register read/writes
Move away from using the pci config access functions for simple register access. Our device has all of the registers in the config space (hey, from the hardware point of view it looks reasonable :-), so we need to somehow get to it. Newer firmwares have it in the device tree such that we can just get it and ioremap it there (in case it ever moves in future products). For now, provide a hardcoded fallback for older firmwares. [ Resolved napi_struct conflicts... -DaveM ] Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a85b94222d
commit
b6e05a1b67
2 changed files with 94 additions and 41 deletions
|
@ -52,6 +52,9 @@ struct pasemi_mac_rxring {
|
|||
|
||||
struct pasemi_mac {
|
||||
struct net_device *netdev;
|
||||
void __iomem *regs;
|
||||
void __iomem *dma_regs;
|
||||
void __iomem *iob_regs;
|
||||
struct pci_dev *pdev;
|
||||
struct pci_dev *dma_pdev;
|
||||
struct pci_dev *iob_pdev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue