26 lines
625 B
C
26 lines
625 B
C
#ifndef __ETHERNETIF_H__
|
|
#define __ETHERNETIF_H__
|
|
|
|
|
|
#include "lwip/err.h"
|
|
#include "lwip/netif.h"
|
|
|
|
//----- ------------------------------------------------------------------
|
|
// Ethernet Buffer
|
|
//----- ------------------------------------------------------------------
|
|
struct eth_drv_sg {
|
|
unsigned int buf;
|
|
unsigned int len;
|
|
};
|
|
|
|
#define MAX_ETH_DRV_SG 32
|
|
#define MAX_ETH_MSG 1540
|
|
|
|
void ethernetif_recv(struct netif *netif, int total_len);
|
|
err_t ethernetif_init(struct netif *netif);
|
|
err_t ethernetif_mii_init(struct netif *netif);
|
|
void lwip_PRE_SLEEP_PROCESSING(void);
|
|
void lwip_POST_SLEEP_PROCESSING(void);
|
|
|
|
#endif
|