-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcxl-memcpy.h
41 lines (34 loc) · 1.17 KB
/
cxl-memcpy.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
/*
* Copyright 2018 International Business Machines
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _UAPI_MISC_CXL_MEMCPY_H
#define _UAPI_MISC_CXL_MEMCPY_H
#include <linux/ioctl.h>
#include <misc/cxl.h>
/* ioctl numbers */
#define CXL_MEMCPY_MAGIC 0xC9
#define CXL_MEMCPY_IOCTL_GET_FD _IOW(CXL_MEMCPY_MAGIC, 0x00, int)
#define CXL_MEMCPY_IOCTL_HANDLE_FAULT _IOW(CXL_MEMCPY_MAGIC, 0x01, int)
#define CXL_MEMCPY_IOCTL_GET_FD_MASTER 0x0000000000000001UL
#define CXL_MEMCPY_IOCTL_GET_FD_ALL 0x0000000000000001UL
struct cxl_memcpy_ioctl_get_fd {
struct cxl_ioctl_start_work work;
__u64 master;
};
struct cxl_memcpy_ioctl_handle_fault {
__u64 addr;
__u64 size;
};
#endif