-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcdev_xvc.h
47 lines (40 loc) · 1.43 KB
/
cdev_xvc.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
*
* Xilinx XDMA IP Core Linux Driver
* Copyright(c) 2015 - 2020 Xilinx, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope 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.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
* The full GNU General Public License is included in this distribution in
* the file called "LICENSE".
*
* Karen Xie <[email protected]>
*
******************************************************************************/
#ifndef __XVC_IOCTL_H__
#define __XVC_IOCTL_H__
#include <linux/ioctl.h>
/*
* the bar offset can be changed at compile time via xvc_bar_offset
*/
#define XVC_BAR_OFFSET_DFLT 0x40000 /* DSA 4.0 */
#define XVC_MAGIC 0x58564344 // "XVCD"
struct xvc_ioc {
unsigned int opcode;
unsigned int length;
const char __user *tms_buf;
const char __user *tdi_buf;
void __user *tdo_buf;
};
#define XDMA_IOCXVC _IOWR(XVC_MAGIC, 1, struct xvc_ioc)
#endif /* __XVC_IOCTL_H__ */