1/*
2 * Copyright (c) 2014 ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10#ifndef LIB_XEON_PHI_DMA_H
11#define LIB_XEON_PHI_DMA_H
12
13#include <dma/dma.h>
14
15struct xeon_phi_dma_device;
16struct xeon_phi_dma_channel;
17struct xeon_phi_dma_request;
18
19/// size of the Xeon PHI DMA descriptor ring in bits
20#define XEON_PHI_DMA_RING_SIZE 12
21
22
23typedef enum xeon_phi_dma_owner {
24    XEON_PHI_DMA_OWNER_CARD = 0,
25    XEON_PHI_DMA_OWNER_HOST
26} xeon_phi_dma_owner_t;
27
28/**
29 * \brief initializes the DMA library
30 */
31errval_t xeon_phi_dma_init(void);
32
33
34#endif  /* LIB_IOAT_DMA_H */
35