mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-11 09:29:40 +00:00
added XEmacIf_Config struct. this will be initialized by the EDK tools during the generation of the library. at run-time, the application will step through a table of these XEmacIf_Config entries and add a netif for each entry.
This commit is contained in:
parent
cc469efc7e
commit
e6fa15c6b7
|
@ -35,17 +35,34 @@
|
|||
#define __NETIF_XEMACIF_H__
|
||||
|
||||
#include "lwip/netif.h"
|
||||
#include "netif/etharp.h"
|
||||
#include "xemac.h"
|
||||
|
||||
void xemacif_setmac(u8_t *addr);
|
||||
u8_t * xemacif_getmac(void);
|
||||
void xemacif_init(struct netif *netif);
|
||||
void xemacif_input(void *CallBackRef);
|
||||
void xemacif_setdeviceid(unsigned short id);
|
||||
unsigned short xemacif_getdeviceid(void);
|
||||
err_t xemacif_init(struct netif *netif);
|
||||
err_t xemacif_input(void *CallBackRef);
|
||||
|
||||
/* define LWIP_XEMAC_USE_INTMODE to make the driver use interrupt mode.
|
||||
* otherwise, the xemac code will use poll mode. the application
|
||||
* should check this as well for init stuff
|
||||
*/
|
||||
|
||||
/**
|
||||
* This typedef contains configuration information for an xemac instance.
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
Xuint32 DevId;
|
||||
Xuint32 IntrId;
|
||||
struct eth_addr ethaddr;
|
||||
// Xuint8 Name[25];
|
||||
XEmac* instance_ptr;
|
||||
} XEmacIf_Config;
|
||||
|
||||
|
||||
//#define LWIP_XEMAC_USE_INTMODE 1
|
||||
|
||||
#endif /* __NETIF_XEMACIF_H__ */
|
||||
|
|
Loading…
Reference in New Issue
Block a user