-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add x_emac_map to xilinx_ultrascale port
This map makes sure the correct interrupt id is registered in the interrupt controller. E.g. 'XPAR_XEMACPS_0_BASEADDR' is Canonical for the first interface and can be mapped to any of the GEMs. 'XPAR_XEMACPS_0_INTR' on the other hand is fixed to GEM0. This is why this mapping is needed.
- Loading branch information
1 parent
6f25e95
commit 7af62b7
Showing
3 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
source/portable/NetworkInterface/xilinx_ultrascale/x_emac_map.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* Copyright (c) 2007-2013 Xilinx, Inc. All rights reserved. | ||
* | ||
* Xilinx, Inc. | ||
* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A | ||
* COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS | ||
* ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR | ||
* STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION | ||
* IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE | ||
* FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION. | ||
* XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO | ||
* THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO | ||
* ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE | ||
* FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY | ||
* AND FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
*/ | ||
|
||
#ifndef __XEMACMAP_H_ | ||
#define __XEMACMAP_H_ | ||
|
||
#include "xparameters_ps.h" | ||
#include "xparameters.h" | ||
|
||
|
||
#define ZYNQMP_EMACPS_0_BASEADDR 0xFF0B0000 | ||
#define ZYNQMP_EMACPS_1_BASEADDR 0xFF0C0000 | ||
#define ZYNQMP_EMACPS_2_BASEADDR 0xFF0D0000 | ||
#define ZYNQMP_EMACPS_3_BASEADDR 0xFF0E0000 | ||
|
||
#if XPAR_XEMACPS_0_BASEADDR == ZYNQMP_EMACPS_0_BASEADDR | ||
#define ZYNQMP_EMACPS_0_IRQ_ID XPAR_XEMACPS_0_INTR | ||
#endif | ||
#if XPAR_XEMACPS_0_BASEADDR == ZYNQMP_EMACPS_1_BASEADDR | ||
#define ZYNQMP_EMACPS_0_IRQ_ID XPAR_XEMACPS_1_INTR | ||
#endif | ||
#if XPAR_XEMACPS_0_BASEADDR == ZYNQMP_EMACPS_2_BASEADDR | ||
#define ZYNQMP_EMACPS_0_IRQ_ID XPAR_XEMACPS_2_INTR | ||
#endif | ||
#if XPAR_XEMACPS_0_BASEADDR == ZYNQMP_EMACPS_3_BASEADDR | ||
#define ZYNQMP_EMACPS_0_IRQ_ID XPAR_XEMACPS_3_INTR | ||
#endif | ||
#if XPAR_XEMACPS_1_BASEADDR == ZYNQMP_EMACPS_0_BASEADDR | ||
#define ZYNQMP_EMACPS_1_IRQ_ID XPAR_XEMACPS_0_INTR | ||
#endif | ||
#if XPAR_XEMACPS_1_BASEADDR == ZYNQMP_EMACPS_1_BASEADDR | ||
#define ZYNQMP_EMACPS_1_IRQ_ID XPAR_XEMACPS_1_INTR | ||
#endif | ||
#if XPAR_XEMACPS_1_BASEADDR == ZYNQMP_EMACPS_2_BASEADDR | ||
#define ZYNQMP_EMACPS_1_IRQ_ID XPAR_XEMACPS_2_INTR | ||
#endif | ||
#if XPAR_XEMACPS_1_BASEADDR == ZYNQMP_EMACPS_3_BASEADDR | ||
#define ZYNQMP_EMACPS_1_IRQ_ID XPAR_XEMACPS_3_INTR | ||
#endif | ||
#if XPAR_XEMACPS_2_BASEADDR == ZYNQMP_EMACPS_0_BASEADDR | ||
#define ZYNQMP_EMACPS_2_IRQ_ID XPAR_XEMACPS_0_INTR | ||
#endif | ||
#if XPAR_XEMACPS_2_BASEADDR == ZYNQMP_EMACPS_1_BASEADDR | ||
#define ZYNQMP_EMACPS_2_IRQ_ID XPAR_XEMACPS_1_INTR | ||
#endif | ||
#if XPAR_XEMACPS_2_BASEADDR == ZYNQMP_EMACPS_2_BASEADDR | ||
#define ZYNQMP_EMACPS_2_IRQ_ID XPAR_XEMACPS_2_INTR | ||
#endif | ||
#if XPAR_XEMACPS_2_BASEADDR == ZYNQMP_EMACPS_3_BASEADDR | ||
#define ZYNQMP_EMACPS_2_IRQ_ID XPAR_XEMACPS_3_INTR | ||
#endif | ||
#if XPAR_XEMACPS_3_BASEADDR == ZYNQMP_EMACPS_0_BASEADDR | ||
#define ZYNQMP_EMACPS_3_IRQ_ID XPAR_XEMACPS_0_INTR | ||
#endif | ||
#if XPAR_XEMACPS_3_BASEADDR == ZYNQMP_EMACPS_1_BASEADDR | ||
#define ZYNQMP_EMACPS_3_IRQ_ID XPAR_XEMACPS_1_INTR | ||
#endif | ||
#if XPAR_XEMACPS_3_BASEADDR == ZYNQMP_EMACPS_2_BASEADDR | ||
#define ZYNQMP_EMACPS_3_IRQ_ID XPAR_XEMACPS_2_INTR | ||
#endif | ||
#if XPAR_XEMACPS_3_BASEADDR == ZYNQMP_EMACPS_3_BASEADDR | ||
#define ZYNQMP_EMACPS_3_IRQ_ID XPAR_XEMACPS_3_INTR | ||
#endif | ||
|
||
#endif /* __XEMACMAP_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters