]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/lwIP_Demo/lwIP_port/include/netif/xtopology.h
Add 'full' demo to the SAMA5 Xplained demo - but so far without interrupt nesting...
[freertos] / FreeRTOS / Demo / CORTEX_A9_Zynq_ZC702 / RTOSDemo / src / lwIP_Demo / lwIP_port / include / netif / xtopology.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 __XTOPOLOGY_H_
20 #define __XTOPOLOGY_H_
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 enum xemac_types { xemac_type_unknown = -1, xemac_type_xps_emaclite, xemac_type_xps_ll_temac, xemac_type_axi_ethernet, xemac_type_emacps };
27
28 struct xtopology_t {
29         unsigned emac_baseaddr;
30         enum xemac_types emac_type;
31         unsigned intc_baseaddr;
32         unsigned intc_emac_intr;        /* valid only for xemac_type_xps_emaclite */
33         unsigned scugic_baseaddr; /* valid only for Zynq */
34         unsigned scugic_emac_intr; /* valid only for GEM */
35 };
36
37 extern int xtopology_n_emacs;
38 extern struct xtopology_t xtopology[];
39
40 int xtopology_find_index(unsigned base);
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #endif