#include <linux/types.h>
#include <linux/io.h>
#include <linux/dmaengine.h>
#include <linux/interrupt.h>
Go to the source code of this file.
#define mv_hw_desc_slot_idx |
( |
|
hw_desc, |
|
|
|
idx |
|
) |
| ((void *)(((unsigned long)hw_desc) + ((idx) << 5))) |
#define MV_XOR_MIN_BYTE_COUNT (128) |
#define MV_XOR_SLOT_SIZE 64 |
#define MV_XOR_THRESHOLD 1 |
#define WINDOW_BAR_ENABLE |
( |
|
chan | ) |
(0x240 + ((chan) << 2)) |
#define WINDOW_BASE |
( |
|
w | ) |
(0x250 + ((w) << 2)) |
#define WINDOW_REMAP_HIGH |
( |
|
w | ) |
(0x290 + ((w) << 2)) |
#define WINDOW_SIZE |
( |
|
w | ) |
(0x270 + ((w) << 2)) |
#define XOR_ACTIVATION |
( |
|
chan | ) |
(chan->mmr_base + 0x20 + (chan->idx * 4)) |
#define XOR_BLOCK_SIZE |
( |
|
chan | ) |
(chan->mmr_base + 0x2C0 + (chan->idx * 4)) |
#define XOR_BYTE_COUNT |
( |
|
chan | ) |
(chan->mmr_base + 0x220 + (chan->idx * 4)) |
#define XOR_CONFIG |
( |
|
chan | ) |
(chan->mmr_base + 0x10 + (chan->idx * 4)) |
#define XOR_CURR_DESC |
( |
|
chan | ) |
(chan->mmr_base + 0x210 + (chan->idx * 4)) |
#define XOR_DEST_POINTER |
( |
|
chan | ) |
(chan->mmr_base + 0x2B0 + (chan->idx * 4)) |
#define XOR_ERROR_ADDR |
( |
|
chan | ) |
(chan->mmr_base + 0x60) |
#define XOR_ERROR_CAUSE |
( |
|
chan | ) |
(chan->mmr_base + 0x50) |
#define XOR_INIT_VALUE_HIGH |
( |
|
chan | ) |
(chan->mmr_base + 0x2E4) |
#define XOR_INIT_VALUE_LOW |
( |
|
chan | ) |
(chan->mmr_base + 0x2E0) |
#define XOR_INTR_CAUSE |
( |
|
chan | ) |
(chan->mmr_base + 0x30) |
#define XOR_INTR_MASK |
( |
|
chan | ) |
(chan->mmr_base + 0x40) |
#define XOR_INTR_MASK_VALUE 0x3F5 |
#define XOR_MAX_BYTE_COUNT ((16 * 1024 * 1024) - 1) |
#define XOR_NEXT_DESC |
( |
|
chan | ) |
(chan->mmr_base + 0x200 + (chan->idx * 4)) |
#define XOR_OPERATION_MODE_MEMCPY 2 |
#define XOR_OPERATION_MODE_MEMSET 4 |
#define XOR_OPERATION_MODE_XOR 0 |