diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2014-08-22 08:53:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-08-22 11:48:27 +0200 |
commit | d5f543296737df9b9410fccca4b7105679d0e17a (patch) | |
tree | 40e3583a4fcbff95c17e94ad5d7fb9680e374577 /c/src/libchip/network/dwmac.h | |
parent | bsp/tms570: disable huge memory demanding tests for internal RAM build variant. (diff) | |
download | rtems-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.h | 10 |
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. |