-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
import from VILLASnode Git repository
- Loading branch information
0 parents
commit b3c7485
Showing
331 changed files
with
66,885 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libxil.so |
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,36 @@ | ||
cmake_minimum_required (VERSION 3.2) | ||
|
||
project(libxil C) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -fPIC -I$(SRCDIR)/include/xilinx -Iorig/common_v1_00_a/src -Wno-int-conversion -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast") | ||
|
||
file(GLOB SOURCES src/*.c orig/*/src/*.c) | ||
|
||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/xilinx) | ||
|
||
add_library(xil SHARED ${SOURCES}) | ||
|
||
include(FindPkgConfig QUIET) | ||
if(PKG_CONFIG_FOUND) | ||
# convert lists of link libraries into -lstdc++ -lm etc.. | ||
foreach(LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS}) | ||
set(PRIVATE_LIBS "${PRIVATE_LIBS} -l${LIB}") | ||
endforeach() | ||
|
||
# Produce a pkg-config file for linking against the shared lib | ||
configure_file("libxil.pc.in" "libxil.pc" @ONLY) | ||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libxil.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig") | ||
endif() | ||
|
||
install(TARGETS xil DESTINATION lib) | ||
|
||
file(GLOB HEADERS include/xilinx/*.h) | ||
|
||
# Make sure we dont install symlinks | ||
set (HEADERS_RESOLVED "") | ||
foreach (HEADER ${HEADERS}) | ||
get_filename_component(HEADER_RESOLVED "${HEADER}" REALPATH) | ||
list (APPEND HEADERS_RESOLVED "${HEADER_RESOLVED}") | ||
endforeach() | ||
|
||
install(FILES ${HEADERS_RESOLVED} DESTINATION include/xilinx) |
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 @@ | ||
These drivers are taken from https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers |
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 @@ | ||
../../orig/axidma_v9_0/src/xaxidma.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 @@ | ||
../../orig/axidma_v9_0/src/xaxidma_bd.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 @@ | ||
../../orig/axidma_v9_0/src/xaxidma_bdring.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 @@ | ||
../../orig/axidma_v9_0/src/xaxidma_hw.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 @@ | ||
../../orig/axidma_v9_0/src/xaxidma_porting_guide.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 @@ | ||
../../orig/axis_switch_v1_0/src/xaxis_switch.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 @@ | ||
../../orig/axis_switch_v1_0/src/xaxis_switch_hw.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 @@ | ||
../../orig/common_v1_00_a/src/xbasic_types.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,93 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright (C) 2010 - 2015 Xilinx, Inc. All rights reserved. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* Use of the Software is limited solely to applications: | ||
* (a) running on a Xilinx device, or | ||
* (b) that interact with a Xilinx device through a bus or interconnect. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
* XILINX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF | ||
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
* Except as contained in this notice, the name of the Xilinx shall not be used | ||
* in advertising or otherwise to promote the sale, use or other dealings in | ||
* this Software without prior written authorization from Xilinx. | ||
* | ||
******************************************************************************/ | ||
#ifndef _XDEBUG_H | ||
#define _XDEBUG_H | ||
|
||
#if defined(DEBUG) && !defined(NDEBUG) | ||
|
||
#include <stdio.h> | ||
|
||
#ifndef XDEBUG_WARNING | ||
#define XDEBUG_WARNING | ||
#warning DEBUG is enabled | ||
#endif | ||
|
||
#define XDBG_DEBUG_ERROR 0x00000001 /* error condition messages */ | ||
#define XDBG_DEBUG_GENERAL 0x00000002 /* general debug messages */ | ||
#define XDBG_DEBUG_ALL 0xFFFFFFFF /* all debugging data */ | ||
|
||
#define XDBG_DEBUG_FIFO_REG 0x00000100 /* display register reads/writes */ | ||
#define XDBG_DEBUG_FIFO_RX 0x00000101 /* receive debug messages */ | ||
#define XDBG_DEBUG_FIFO_TX 0x00000102 /* transmit debug messages */ | ||
#define XDBG_DEBUG_FIFO_ALL 0x0000010F /* all fifo debug messages */ | ||
|
||
#define XDBG_DEBUG_TEMAC_REG 0x00000400 /* display register reads/writes */ | ||
#define XDBG_DEBUG_TEMAC_RX 0x00000401 /* receive debug messages */ | ||
#define XDBG_DEBUG_TEMAC_TX 0x00000402 /* transmit debug messages */ | ||
#define XDBG_DEBUG_TEMAC_ALL 0x0000040F /* all temac debug messages */ | ||
|
||
#define XDBG_DEBUG_TEMAC_ADPT_RX 0x00000800 /* receive debug messages */ | ||
#define XDBG_DEBUG_TEMAC_ADPT_TX 0x00000801 /* transmit debug messages */ | ||
#define XDBG_DEBUG_TEMAC_ADPT_IOCTL 0x00000802 /* ioctl debug messages */ | ||
#define XDBG_DEBUG_TEMAC_ADPT_MISC 0x00000803 /* debug msg for other routines */ | ||
#define XDBG_DEBUG_TEMAC_ADPT_ALL 0x0000080F /* all temac adapter debug messages */ | ||
|
||
#define xdbg_current_types (XDBG_DEBUG_ERROR) | ||
|
||
#define xdbg_stmnt(x) x | ||
|
||
/* In VxWorks, if _WRS_GNU_VAR_MACROS is defined, special syntax is needed for | ||
* macros that accept variable number of arguments | ||
*/ | ||
#if defined(XENV_VXWORKS) && defined(_WRS_GNU_VAR_MACROS) | ||
#define xdbg_printf(type, args...) (((type) & xdbg_current_types) ? printf (## args) : 0) | ||
|
||
#else /* ANSI Syntax */ | ||
|
||
#define xdbg_printf(type, ...) (((type) & xdbg_current_types) ? printf (__VA_ARGS__) : 0) | ||
|
||
#endif | ||
|
||
#else /* defined(DEBUG) && !defined(NDEBUG) */ | ||
|
||
#define xdbg_stmnt(x) | ||
|
||
/* See VxWorks comments above */ | ||
#if defined(XENV_VXWORKS) && defined(_WRS_GNU_VAR_MACROS) | ||
#define xdbg_printf(type, args...) | ||
#else /* ANSI Syntax */ | ||
#define xdbg_printf(...) | ||
#endif | ||
|
||
#endif /* defined(DEBUG) && !defined(NDEBUG) */ | ||
|
||
#endif /* _XDEBUG_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 @@ | ||
../../orig/common_v1_00_a/src/xenv.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 @@ | ||
../../orig/common_v1_00_a/src/xenv_linux.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 @@ | ||
../../orig/common_v1_00_a/src/xenv_none.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 @@ | ||
../../orig/common_v1_00_a/src/xenv_standalone.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 @@ | ||
../../orig/common_v1_00_a/src/xenv_vxworks.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 @@ | ||
../../orig/hls_dft_v1_0/src/xhls_dft.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 @@ | ||
../../orig/hls_dft_v1_0/src/xhls_dft_hw.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,85 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* Use of the Software is limited solely to applications: | ||
* (a) running on a Xilinx device, or | ||
* (b) that interact with a Xilinx device through a bus or interconnect. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
* XILINX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF | ||
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
* Except as contained in this notice, the name of the Xilinx shall not be used | ||
* in advertising or otherwise to promote the sale, use or other dealings in | ||
* this Software without prior written authorization from Xilinx. | ||
* | ||
******************************************************************************/ | ||
/*****************************************************************************/ | ||
/** | ||
* | ||
* @file xil_assert.h | ||
* | ||
* This file contains assert related functions. | ||
* | ||
* <pre> | ||
* MODIFICATION HISTORY: | ||
* | ||
* Ver Who Date Changes | ||
* ----- ---- -------- ------------------------------------------------------- | ||
* 1.00a hbm 07/14/09 First release | ||
* </pre> | ||
* | ||
******************************************************************************/ | ||
|
||
#ifndef XIL_ASSERT_H /* prevent circular inclusions */ | ||
#define XIL_ASSERT_H /* by using protection macros */ | ||
|
||
#include <assert.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
/***************************** Include Files *********************************/ | ||
|
||
|
||
/************************** Constant Definitions *****************************/ | ||
|
||
/***************** Macros (Inline Functions) Definitions *********************/ | ||
|
||
#define Xil_AssertVoid(expr) \ | ||
((expr) \ | ||
? __ASSERT_VOID_CAST (0) \ | ||
: __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)) | ||
#define Xil_AssertNonvoid(expr) \ | ||
((expr) \ | ||
? __ASSERT_VOID_CAST (0) \ | ||
: __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)) | ||
#define Xil_AssertVoidAlways() \ | ||
__assert_fail ("always", __FILE__, __LINE__, __ASSERT_FUNCTION) | ||
#define Xil_AssertNonvoidAlways() \ | ||
__assert_fail ("always", __FILE__, __LINE__, __ASSERT_FUNCTION) | ||
|
||
/************************** Function Prototypes ******************************/ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* end of protection macro */ |
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,71 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* Use of the Software is limited solely to applications: | ||
* (a) running on a Xilinx device, or | ||
* (b) that interact with a Xilinx device through a bus or interconnect. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
* XILINX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF | ||
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
* Except as contained in this notice, the name of the Xilinx shall not be used | ||
* in advertising or otherwise to promote the sale, use or other dealings in | ||
* this Software without prior written authorization from Xilinx. | ||
* | ||
******************************************************************************/ | ||
/*****************************************************************************/ | ||
/** | ||
* | ||
* @file xil_cache.h | ||
* | ||
* Contains dummies for cache related functions. | ||
* | ||
* <pre> | ||
* MODIFICATION HISTORY: | ||
* | ||
* Ver Who Date Changes | ||
* ----- ---- -------- ------------------------------------------------------- | ||
* 1.00a hbm 12/11/09 Initial release | ||
* | ||
* </pre> | ||
* | ||
* @note | ||
* | ||
******************************************************************************/ | ||
|
||
#ifndef XIL_CACHE_VXWORKS_H | ||
#define XIL_CACHE_VXWORKS_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define Xil_DCacheEnable() | ||
#define Xil_DCacheDisable() | ||
#define Xil_DCacheInvalidateRange(Addr, Len) | ||
#define Xil_DCacheFlushRange(Addr, Len) | ||
#define Xil_ICacheEnable() | ||
#define Xil_ICacheDisable() | ||
#define Xil_ICacheInvalidateRange(Addr, Len) | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.