diff options
Diffstat (limited to 'cmd/sbc_harness/hw/w5500.h')
-rw-r--r-- | cmd/sbc_harness/hw/w5500.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cmd/sbc_harness/hw/w5500.h b/cmd/sbc_harness/hw/w5500.h index bb629c5..4ec6edd 100644 --- a/cmd/sbc_harness/hw/w5500.h +++ b/cmd/sbc_harness/hw/w5500.h @@ -1,4 +1,4 @@ -/* hw/w5500.h - libnet implementation for the WIZnet W5500 chip +/* hw/w5500.h - libmisc/net.h implementation for the WIZnet W5500 chip * * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> * SPDX-Licence-Identifier: AGPL-3.0-or-later @@ -7,20 +7,20 @@ #ifndef _HW_W5500_H_ #define _HW_W5500_H_ -#include <libnet/libnet.h> +#include <libmisc/net.h> #include "hw/spi.h" struct _w5500_listener; struct _w5500_conn { - struct libnet_conn_vtable *vtable; + implements_net_conn; struct _w5500_listener *parent_listener; }; struct _w5500_listener { - struct libnet_listener_vtable *vtable; + implements_net_listener; struct w5500 *chip; uint8_t socknum; @@ -56,7 +56,7 @@ struct w5500 { } while (0) void _w5500_init(struct w5500 *self, struct spi* spi, uint pin_intr, uint pin_reset, - struct eth_addr addr); + struct net_eth_addr addr); /** * TODO. @@ -64,9 +64,9 @@ void _w5500_init(struct w5500 *self, void w5500_reset(struct w5500 *self); struct w5500_netcfg { - struct ip4_addr gateway_addr; - struct ip4_addr subnet_mask; - struct ip4_addr addr; + struct net_ip4_addr gateway_addr; + struct net_ip4_addr subnet_mask; + struct net_ip4_addr addr; }; /** @@ -74,6 +74,6 @@ struct w5500_netcfg { */ void w5500_netcfg(struct w5500 *self, struct w5500_netcfg cfg); -struct libnet_listener *w5500_listen(struct w5500 *self, uint8_t socknum, uint16_t port); +implements_net_listener *w5500_listen(struct w5500 *self, uint8_t socknum, uint16_t port); #endif /* _HW_W5500_H_ */ |