summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2016-01-13 16:59:35 +0300
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:32:43 -0600
commitf74264d6614a0c093a7c32e996f2b26058eead5d (patch)
treea34e954167e065b90608fe758095aa56e882d7af /include/net.h
parentb18acb0a115dfbbd31ee53081b514cab6fe2f262 (diff)
include/net.h: add max_speed member in struct eth_pdata
This will be used for getting max speed mode of Ethernet interface that a particular MAC supports from Device Tree blob and later being used for phy configuration. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index ebed29ad57..7dbba09d49 100644
--- a/include/net.h
+++ b/include/net.h
@@ -86,11 +86,13 @@ enum eth_state_t {
* @iobase: The base address of the hardware registers
* @enetaddr: The Ethernet MAC address that is loaded from EEPROM or env
* @phy_interface: PHY interface to use - see PHY_INTERFACE_MODE_...
+ * @max_speed: Maximum speed of Ethernet connection supported by MAC
*/
struct eth_pdata {
phys_addr_t iobase;
unsigned char enetaddr[6];
int phy_interface;
+ int max_speed;
};
enum eth_recv_flags {