]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/lwIP_Demo/lwIP_port/include/netif/xemacliteif.h
Reorganise Zynq project after spitting lwIP example into a separate configuration.
[freertos] / FreeRTOS / Demo / CORTEX_A9_Zynq_ZC702 / RTOSDemo / src / lwIP_Demo / lwIP_port / include / netif / xemacliteif.h
1 /*
2  * Copyright (c) 2007-2013 Xilinx, Inc.  All rights reserved.
3  *
4  * Xilinx, Inc.
5  * XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
6  * COURTESY TO YOU.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
7  * ONE POSSIBLE   IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
8  * STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
9  * IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
10  * FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
11  * XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
12  * THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
13  * ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
14  * FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
15  * AND FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  */
18
19 #ifndef __NETIF_XEMACLITEIF_H__
20 #define __NETIF_XEMACLITEIF_H__
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #include "lwip/netif.h"
27 #include "netif/etharp.h"
28 #include "netif/xpqueue.h"
29 #include "xemaclite.h"
30 #include "xemaclite_i.h"
31 #include "xstatus.h"
32
33 /* structure within each netif, encapsulating all information required for 
34  * using a particular emaclite instance
35  */
36 typedef struct {
37         XEmacLite *instance;
38
39         /* queue to store overflow packets */
40         pq_queue_t *recv_q;
41         pq_queue_t *send_q;
42 } xemacliteif_s;
43
44 void    xemacliteif_setmac(u32_t index, u8_t *addr);
45 u8_t*   xemacliteif_getmac(u32_t index);
46 err_t   xemacliteif_init(struct netif *netif);
47 int     xemacliteif_input(struct netif *netif);
48    
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* __NETIF_XEMACLITEIF_H__ */