aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2011-07-13 05:27:30 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-14 11:41:59 -0400
commit69f11c9936ba310ed3620072983da6ed95e86cc0 (patch)
tree5cf0983f0e22f368d573b22c94ee10932dc9490e /drivers/net/tg3.h
parentbed9829f3ec4b30d5cbec6511a11368ba5f169fb (diff)
tg3: Determine PCI function number in one place
tg3 devices will need to know exactly what function number they are so that they can communicate their status to the other functions. In a KVM environment, the function number of a device presented by the kernel might not be the true function number, so an alternative method to determine the function number is needed. This patch used to contain an implementation for the alternative method, but recently we discovered a hardware bug that renders it incorrect. While new method is not yet known, it is still useful to consolidate the code that determines the PCI function to one location and use the results throughout the code. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 5f250aef7c92..b4c003db69a1 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -3020,6 +3020,7 @@ struct tg3 {
3020 u8 pci_cacheline_sz; 3020 u8 pci_cacheline_sz;
3021 u8 pci_lat_timer; 3021 u8 pci_lat_timer;
3022 3022
3023 int pci_fn;
3023 int pm_cap; 3024 int pm_cap;
3024 int msi_cap; 3025 int msi_cap;
3025 int pcix_cap; 3026 int pcix_cap;