forked from aws/aws-fpga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxocl_xdma.h
30 lines (26 loc) · 1.08 KB
/
xocl_xdma.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Copyright (C) 2015-2018 Xilinx, Inc
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _XCL_XOCL_XDMA_H_
#define _XCL_XOCL_XDMA_H_
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
int xdma_init_glue(struct drm_xocl_dev *xdev);
void xdma_fini_glue(struct drm_xocl_dev *xdev);
ssize_t xdma_migrate_bo(const struct drm_xocl_dev *xdev, struct sg_table *sgt, bool write,
u64 paddr, int channel);
int xdma_user_interrupt_config(struct drm_xocl_dev *xdev, int user_intr_number, bool enable);
#endif
// 67d7842dbbe25473c3c32b93c0da8047785f30d78e8a024de1b57352245f9689