diff options
Diffstat (limited to 'firmware/microblaze/lib/ethernet.h')
| -rw-r--r-- | firmware/microblaze/lib/ethernet.h | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/firmware/microblaze/lib/ethernet.h b/firmware/microblaze/lib/ethernet.h index 70b7077c6..8c6d8b567 100644 --- a/firmware/microblaze/lib/ethernet.h +++ b/firmware/microblaze/lib/ethernet.h @@ -20,6 +20,7 @@  #define INCLUDED_ETHERNET_H  #include <net/eth_mac_addr.h> +#include <lwip/ip_addr.h>  #include <stdbool.h>  typedef void (*ethernet_link_changed_callback_t)(int speed); @@ -48,6 +49,16 @@ const eth_mac_addr_t *ethernet_mac_addr(void);   */  bool ethernet_set_mac_addr(const eth_mac_addr_t *t); +/*! + * \returns IP address + */ +const struct ip_addr *get_ip_addr(void); + +/*! + * \brief write ip address to eeprom and begin using it + */ +bool set_ip_addr(const struct ip_addr *t); +  /*   * \brief read RMON regs and return error mask | 
