diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-07-24 13:09:23 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-07-24 13:09:23 +0200 |
commit | fb42f24213a7aaecbd631e61fb432ef04742d2ce (patch) | |
tree | c689e861d9776e42bf51dd02883298249c23ac42 /dma/ipe_private.h | |
parent | e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55 (diff) | |
download | pcitool-fb42f24213a7aaecbd631e61fb432ef04742d2ce.tar.gz pcitool-fb42f24213a7aaecbd631e61fb432ef04742d2ce.tar.bz2 pcitool-fb42f24213a7aaecbd631e61fb432ef04742d2ce.tar.xz pcitool-fb42f24213a7aaecbd631e61fb432ef04742d2ce.zip |
Use 64-bit addressing in IPEDMA only for gen3 boards or if enforced
Diffstat (limited to 'dma/ipe_private.h')
-rw-r--r-- | dma/ipe_private.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dma/ipe_private.h b/dma/ipe_private.h index 249286d..937e202 100644 --- a/dma/ipe_private.h +++ b/dma/ipe_private.h @@ -3,12 +3,12 @@ #include "dma.h" -#define IPEDMA_64BIT_MODE 1 /**< 64-bit mode addressing is required to support PCIe gen3 */ +//#define IPEDMA_ENFORCE_64BIT_MODE 1 /**< enforce 64-bit mode addressing (otherwise it is used only if register 0x18 specifies PCIe gen3 as required by DMA engine) */ #define IPEDMA_CORES 1 #define IPEDMA_MAX_TLP_SIZE 256 /**< Defines maximum TLP in bytes supported by device */ -//#define IPEDMA_TLP_SIZE 128 /**< If set, enforces the specified TLP size */ +//#define IPEDMA_TLP_SIZE 128 /**< If set, enforces the specified TLP size */ -#define IPEDMA_STREAMING_MODE /**< Enables streaming DMA operation mode instead of ring-buffer, the page is written once and forgotten and need to be pushed in queue again */ +//#define IPEDMA_STREAMING_MODE /**< Enables streaming DMA operation mode instead of ring-buffer, the page is written once and forgotten and need to be pushed in queue again */ #define IPEDMA_STREAMING_CHECKS /**< Enables status checks in streaming mode (it will cause performance penalty) */ #define IPEDMA_PAGE_SIZE 4096 #define IPEDMA_DMA_PAGES 1024 /**< number of DMA pages in the ring buffer to allocate */ @@ -31,6 +31,7 @@ #define IPEDMA_REG_CONTROL 0x04 #define IPEDMA_REG_TLP_SIZE 0x0C #define IPEDMA_REG_TLP_COUNT 0x10 +#define IPEDMA_REG_PCIE_GEN 0x18 #define IPEDMA_REG_PAGE_ADDR 0x50 #define IPEDMA_REG_UPDATE_ADDR 0x54 #define IPEDMA_REG_LAST_READ 0x58 /**< In streaming mode, we can use it freely to track current status */ |