USB: serial: option: reimplement interface masking
[linux/fpc-iii.git] / include / uapi / misc / ocxl.h
blob4b0b0b756f3ee4cbf37a5d04e013fe84a5b6f604
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /* Copyright 2017 IBM Corp. */
3 #ifndef _UAPI_MISC_OCXL_H
4 #define _UAPI_MISC_OCXL_H
6 #include <linux/types.h>
7 #include <linux/ioctl.h>
9 enum ocxl_event_type {
10 OCXL_AFU_EVENT_XSL_FAULT_ERROR = 0,
13 #define OCXL_KERNEL_EVENT_FLAG_LAST 0x0001 /* This is the last event pending */
15 struct ocxl_kernel_event_header {
16 __u16 type;
17 __u16 flags;
18 __u32 reserved;
21 struct ocxl_kernel_event_xsl_fault_error {
22 __u64 addr;
23 __u64 dsisr;
24 __u64 count;
25 __u64 reserved;
28 struct ocxl_ioctl_attach {
29 __u64 amr;
30 __u64 reserved1;
31 __u64 reserved2;
32 __u64 reserved3;
35 struct ocxl_ioctl_irq_fd {
36 __u64 irq_offset;
37 __s32 eventfd;
38 __u32 reserved;
41 /* ioctl numbers */
42 #define OCXL_MAGIC 0xCA
43 /* AFU devices */
44 #define OCXL_IOCTL_ATTACH _IOW(OCXL_MAGIC, 0x10, struct ocxl_ioctl_attach)
45 #define OCXL_IOCTL_IRQ_ALLOC _IOR(OCXL_MAGIC, 0x11, __u64)
46 #define OCXL_IOCTL_IRQ_FREE _IOW(OCXL_MAGIC, 0x12, __u64)
47 #define OCXL_IOCTL_IRQ_SET_FD _IOW(OCXL_MAGIC, 0x13, struct ocxl_ioctl_irq_fd)
49 #endif /* _UAPI_MISC_OCXL_H */