]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/net.h
AT91: add RTT and GPBR based RTC
[karo-tx-uboot.git] / include / net.h
index 4873000c0d87b1adbb6f871dbce23dd964b19851..ab571eb3ee49d4a488a1ec5a69ac49bc61972964 100644 (file)
@@ -105,6 +105,7 @@ struct eth_device {
 #ifdef CONFIG_MCAST_TFTP
        int (*mcast) (struct eth_device*, u32 ip, u8 set);
 #endif
+       int  (*write_hwaddr) (struct eth_device*);
        struct eth_device *next;
        void *priv;
 };
@@ -116,7 +117,7 @@ extern void eth_try_another(int first_restart);     /* Change the device */
 extern void eth_set_current(void);             /* set nterface to ethcur var */
 #endif
 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_name(const char *devname);
 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_parse_enetaddr(const char *addr, uchar *enetaddr);
@@ -508,15 +509,15 @@ extern void       VLAN_to_string (ushort x, char *s);
 /* Convert a string to a vlan id */
 extern ushort string_to_VLAN(char *s);
 
-/* read an IP address from a environment variable */
-extern IPaddr_t getenv_IPaddr (char *);
-
 /* read a VLAN id from an environment variable */
 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__ */