]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/net.h
s5pc1xx: support Samsung s5pc1xx SoC
[karo-tx-uboot.git] / include / net.h
index 4a03717ae9bcd99efe80e75956e1905e1c0b0c74..1c8ab12454b7e80de56eaaf8572f1fe3899e8957 100644 (file)
@@ -119,10 +119,10 @@ extern struct eth_device *eth_get_dev(void);      /* get the current device MAC */
 extern struct eth_device *eth_get_dev_by_name(char *devname); /* get device */
 extern struct eth_device *eth_get_dev_by_index(int index); /* get dev @ index */
 extern int eth_get_dev_index (void);           /* get the device index */
-extern void eth_set_enetaddr(int num, char* a);        /* Set new MAC address */
 extern void eth_parse_enetaddr(const char *addr, uchar *enetaddr);
 extern int eth_getenv_enetaddr(char *name, uchar *enetaddr);
 extern int eth_setenv_enetaddr(char *name, const uchar *enetaddr);
+extern int eth_getenv_enetaddr_by_index(int index, uchar *enetaddr);
 
 extern int eth_init(bd_t *bis);                        /* Initialize the device */
 extern int eth_send(volatile void *packet, int length);           /* Send a packet */
@@ -517,6 +517,9 @@ extern ushort getenv_VLAN(char *);
 /* copy a filename (allow for "..." notation, limit length) */
 extern void    copy_filename (char *dst, char *src, int size);
 
+/* get a random source port */
+extern unsigned int random_port(void);
+
 /**********************************************************************/
 
 #endif /* __NET_H__ */