Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/misc
File: ocxl.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/* Copyright 2017 IBM Corp. */
[1] Fix | Delete
#ifndef _MISC_OCXL_H
[2] Fix | Delete
#define _MISC_OCXL_H
[3] Fix | Delete
[4] Fix | Delete
#include <linux/types.h>
[5] Fix | Delete
#include <linux/ioctl.h>
[6] Fix | Delete
[7] Fix | Delete
enum ocxl_event_type {
[8] Fix | Delete
OCXL_AFU_EVENT_XSL_FAULT_ERROR = 0,
[9] Fix | Delete
};
[10] Fix | Delete
[11] Fix | Delete
#define OCXL_KERNEL_EVENT_FLAG_LAST 0x0001 /* This is the last event pending */
[12] Fix | Delete
[13] Fix | Delete
struct ocxl_kernel_event_header {
[14] Fix | Delete
__u16 type;
[15] Fix | Delete
__u16 flags;
[16] Fix | Delete
__u32 reserved;
[17] Fix | Delete
};
[18] Fix | Delete
[19] Fix | Delete
struct ocxl_kernel_event_xsl_fault_error {
[20] Fix | Delete
__u64 addr;
[21] Fix | Delete
__u64 dsisr;
[22] Fix | Delete
__u64 count;
[23] Fix | Delete
__u64 reserved;
[24] Fix | Delete
};
[25] Fix | Delete
[26] Fix | Delete
struct ocxl_ioctl_attach {
[27] Fix | Delete
__u64 amr;
[28] Fix | Delete
__u64 reserved1;
[29] Fix | Delete
__u64 reserved2;
[30] Fix | Delete
__u64 reserved3;
[31] Fix | Delete
};
[32] Fix | Delete
[33] Fix | Delete
struct ocxl_ioctl_metadata {
[34] Fix | Delete
__u16 version; /* struct version, always backwards compatible */
[35] Fix | Delete
[36] Fix | Delete
/* Version 0 fields */
[37] Fix | Delete
__u8 afu_version_major;
[38] Fix | Delete
__u8 afu_version_minor;
[39] Fix | Delete
__u32 pasid; /* PASID assigned to the current context */
[40] Fix | Delete
[41] Fix | Delete
__u64 pp_mmio_size; /* Per PASID MMIO size */
[42] Fix | Delete
__u64 global_mmio_size;
[43] Fix | Delete
[44] Fix | Delete
/* End version 0 fields */
[45] Fix | Delete
[46] Fix | Delete
__u64 reserved[13]; /* Total of 16*u64 */
[47] Fix | Delete
};
[48] Fix | Delete
[49] Fix | Delete
struct ocxl_ioctl_p9_wait {
[50] Fix | Delete
__u16 thread_id; /* The thread ID required to wake this thread */
[51] Fix | Delete
__u16 reserved1;
[52] Fix | Delete
__u32 reserved2;
[53] Fix | Delete
__u64 reserved3[3];
[54] Fix | Delete
};
[55] Fix | Delete
[56] Fix | Delete
#define OCXL_IOCTL_FEATURES_FLAGS0_P9_WAIT 0x01
[57] Fix | Delete
struct ocxl_ioctl_features {
[58] Fix | Delete
__u64 flags[4];
[59] Fix | Delete
};
[60] Fix | Delete
[61] Fix | Delete
struct ocxl_ioctl_irq_fd {
[62] Fix | Delete
__u64 irq_offset;
[63] Fix | Delete
__s32 eventfd;
[64] Fix | Delete
__u32 reserved;
[65] Fix | Delete
};
[66] Fix | Delete
[67] Fix | Delete
/* ioctl numbers */
[68] Fix | Delete
#define OCXL_MAGIC 0xCA
[69] Fix | Delete
/* AFU devices */
[70] Fix | Delete
#define OCXL_IOCTL_ATTACH _IOW(OCXL_MAGIC, 0x10, struct ocxl_ioctl_attach)
[71] Fix | Delete
#define OCXL_IOCTL_IRQ_ALLOC _IOR(OCXL_MAGIC, 0x11, __u64)
[72] Fix | Delete
#define OCXL_IOCTL_IRQ_FREE _IOW(OCXL_MAGIC, 0x12, __u64)
[73] Fix | Delete
#define OCXL_IOCTL_IRQ_SET_FD _IOW(OCXL_MAGIC, 0x13, struct ocxl_ioctl_irq_fd)
[74] Fix | Delete
#define OCXL_IOCTL_GET_METADATA _IOR(OCXL_MAGIC, 0x14, struct ocxl_ioctl_metadata)
[75] Fix | Delete
#define OCXL_IOCTL_ENABLE_P9_WAIT _IOR(OCXL_MAGIC, 0x15, struct ocxl_ioctl_p9_wait)
[76] Fix | Delete
#define OCXL_IOCTL_GET_FEATURES _IOR(OCXL_MAGIC, 0x16, struct ocxl_ioctl_features)
[77] Fix | Delete
[78] Fix | Delete
#endif /* _MISC_OCXL_H */
[79] Fix | Delete
[80] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function