Skip to contentSkip to conversation

include/net.h: add max_speed member in struct eth_pdata

PATCH New Alexey Brodkin 1 participant 2 messages Dec 23, 2015 – Jan 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/net.h | 2 ++
 1 file changed, 2 insertions(+)
include/net.h +2 -0
index ebed29a..7dbba09 100644
@@ -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 {
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 include/net.h: add max_speed member in struct eth_pdata

Hi Joe,

Quoted 18 lines · Alexey Brodkin

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.

---
 include/net.h | 2 ++
 1 file changed, 2 insertions(+)
include/net.h +0 -0
index ebed29a..7dbba09 100644
@@ -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_...

include/net.h enum eth_state_t { · line 98

Quoted 10 lines
include/net.h +2 -0
+ * @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 {

Any chance for this one to be applied?

-Alexey