summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/ethernet.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-15 16:00:07 -0700
committerJosh Blum <josh@joshknows.com>2010-03-15 16:00:07 -0700
commite4997af8453980922b469e5d3b66a7b26910dad3 (patch)
treef19255b35f70670f7674334299453189b2c2a880 /firmware/microblaze/lib/ethernet.h
parent7590f187d0414fd05e23828488166bc4bc88df26 (diff)
downloaduhd-e4997af8453980922b469e5d3b66a7b26910dad3.tar.gz
uhd-e4997af8453980922b469e5d3b66a7b26910dad3.tar.bz2
uhd-e4997af8453980922b469e5d3b66a7b26910dad3.zip
Ability to burn mac addr and ip addr to usrp2 (over ip/udp for now).
Added firmware support and usrp2 burner host app.
Diffstat (limited to 'firmware/microblaze/lib/ethernet.h')
-rw-r--r--firmware/microblaze/lib/ethernet.h11
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