X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fnet.h;h=82500eeb30f706ea3254cd98421212dcfeba6739;hb=b9da77f1958aab4ec50ff2f095b40464ca2489dd;hp=834f2449826a96994738f0252205945ca38a6637;hpb=d724321f99bbaf024a5ec4bacf1520de3bc1ac87;p=oweals%2Fu-boot.git diff --git a/include/net.h b/include/net.h index 834f244982..82500eeb30 100644 --- a/include/net.h +++ b/include/net.h @@ -50,6 +50,17 @@ struct in_addr { __be32 s_addr; }; +/** + * do_tftpb - Run the tftpboot command + * + * @cmdtp: Command information for tftpboot + * @flag: Command flags (CMD_FLAG_...) + * @argc: Number of arguments + * @argv: List of arguments + * @return result (see enum command_ret_t) + */ +int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]); + /** * An incoming packet handler. * @param pkt pointer to the application packet @@ -345,6 +356,7 @@ struct vlan_ethernet_hdr { #define PROT_VLAN 0x8100 /* IEEE 802.1q protocol */ #define PROT_IPV6 0x86dd /* IPv6 over bluebook */ #define PROT_PPP_SES 0x8864 /* PPPoE session messages */ +#define PROT_NCSI 0x88f8 /* NC-SI control packets */ #define IPPROTO_ICMP 1 /* Internet Control Message Protocol */ #define IPPROTO_UDP 17 /* User Datagram Protocol */ @@ -906,4 +918,12 @@ static inline struct in_addr env_get_ip(char *var) { return string_to_ip(env_get(var)); } + +/** + * reset_phy() - Reset the Ethernet PHY + * + * This should be implemented by boards if CONFIG_RESET_PHY_R is enabled + */ +void reset_phy(void); + #endif /* __NET_H__ */