blob: 37744b0e2cdcf3f36d2d8208ec42c04b29aec232 [file] [log] [blame]
Jerome Forissier1d5d2922024-10-16 12:04:00 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __NET_LWIP_H__
4#define __NET_LWIP_H__
5
6#include <lwip/ip4.h>
7#include <lwip/netif.h>
8
Jerome Forissier4d4d7832024-10-16 12:04:05 +02009enum proto_t {
10 TFTPGET
11};
12
Jerome Forissier1d5d2922024-10-16 12:04:00 +020013struct netif *net_lwip_new_netif(struct udevice *udev);
14struct netif *net_lwip_new_netif_noip(struct udevice *udev);
15void net_lwip_remove_netif(struct netif *netif);
16struct netif *net_lwip_get_netif(void);
Jerome Forissier98ad1452024-10-16 12:04:03 +020017int net_lwip_rx(struct udevice *udev, struct netif *netif);
18
19int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Jerome Forissier1d5d2922024-10-16 12:04:00 +020020
21#endif /* __NET_LWIP_H__ */