summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx/chip.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-03-17 20:32:04 +0100
committerDavid S. Miller <davem@davemloft.net>2018-03-18 21:52:58 +0100
commitbc3931557d1d55584100b1ffefc248137b5cb7e1 (patch)
treebc99d461712691052bda8fba067e9626df6d2947 /drivers/net/dsa/mv88e6xxx/chip.h
parentnet: dsa: mv88e6xxx: Add missing g1 IRQ numbers (diff)
downloadlinux-bc3931557d1d55584100b1ffefc248137b5cb7e1.tar.xz
linux-bc3931557d1d55584100b1ffefc248137b5cb7e1.zip
net: dsa: mv88e6xxx: Add number of internal PHYs
Add to the info structure the number of internal PHYs, if they generate interrupts. Some of the older generations of switches have internal PHYs, but no interrupt registers. In this case, set the count to zero. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/chip.h')
-rw-r--r--drivers/net/dsa/mv88e6xxx/chip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/drivers/net/dsa/mv88e6xxx/chip.h
index 26b9a618cdee..bad211014e91 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.h
+++ b/drivers/net/dsa/mv88e6xxx/chip.h
@@ -110,6 +110,7 @@ struct mv88e6xxx_info {
const char *name;
unsigned int num_databases;
unsigned int num_ports;
+ unsigned int num_internal_phys;
unsigned int num_gpio;
unsigned int max_vid;
unsigned int port_base_addr;