summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/dwmac.h
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2014-08-22 08:53:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-22 11:48:27 +0200
commitd5f543296737df9b9410fccca4b7105679d0e17a (patch)
tree40e3583a4fcbff95c17e94ad5d7fb9680e374577 /c/src/libchip/network/dwmac.h
parentbsp/tms570: disable huge memory demanding tests for internal RAM build variant. (diff)
downloadrtems-d5f543296737df9b9410fccca4b7105679d0e17a.tar.bz2
libchip/dwmac: Make PHY address user configurable
This patch allows the user to configure the PHY address for the DWMAC driver by giving a pointer to a dwmac_user_cfg structure to network stack via rtems_bsdnet_ifconfig::drv_ctrl.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/network/dwmac.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/libchip/network/dwmac.h b/c/src/libchip/network/dwmac.h
index 9ccf75af44..8270988b1e 100644
--- a/c/src/libchip/network/dwmac.h
+++ b/c/src/libchip/network/dwmac.h
@@ -31,6 +31,16 @@
extern "C" {
#endif /* __cplusplus */
+/** @brief DWMAC user configuration structure.
+ *
+ * Gives the user the possibility to overwrite some configuration data by
+ * setting the drv_ctrl pointer of the @ref rtems_bsdnet_ifconfig structure to a
+ * object with this type.
+ */
+typedef struct {
+ int phy_addr;
+} dwmac_ifconfig_drv_ctrl;
+
/** @brief PHY event.
*
* Data type to be used for PHY events and event sets.