From a27354c9021a8423ef8c7d2bffad49cbf639eec1 Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Thu, 13 Sep 2012 00:40:35 +0300 Subject: Add realtek target files Signed-off-by: Roman Yeryomin --- .../files/include/net/rtl/rtl865x_arp_api.h | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h (limited to 'target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h') diff --git a/target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h b/target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h new file mode 100644 index 000000000..73ed95a2b --- /dev/null +++ b/target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h @@ -0,0 +1,27 @@ +#ifndef RTL865X_ARP_API_H +#define RTL865X_ARP_API_H + +#define RTL865X_ARPTBL_SIZE 512 + +typedef struct rtl865x_arpMapping_entry_s +{ + ipaddr_t ip; + ether_addr_t mac; +}rtl865x_arpMapping_entry_t; + + +struct rtl865x_arp_table { + uint8 allocBitmap[64]; + rtl865x_arpMapping_entry_t mappings[512]; +}; + +/*for linux protocol stack sync*/ +int32 rtl865x_addArp(ipaddr_t ip, ether_addr_t * mac); +int32 rtl865x_delArp(ipaddr_t ip); +uint32 rtl865x_arpSync( ipaddr_t ip, uint32 refresh ); +int32 rtl865x_getArpMapping(ipaddr_t ip, rtl865x_arpMapping_entry_t * arp_mapping); +#if defined(CONFIG_RTL_MULTIPLE_WAN) +int32 rtl_set_callback_for_ps_arp(int (*call_back_fn)(u32 ip,rtl865x_arpMapping_entry_t *entry)); +#endif + +#endif -- cgit v1.2.3