Changeset View
Changeset View
Standalone View
Standalone View
sys/ofed/include/uapi/rdma/ib_user_mad.h
Show All 32 Lines | |||||
* SOFTWARE. | * SOFTWARE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef IB_USER_MAD_H | #ifndef IB_USER_MAD_H | ||||
#define IB_USER_MAD_H | #define IB_USER_MAD_H | ||||
#ifdef _KERNEL | #include <rdma/rdma_user_ioctl.h> | ||||
#include <linux/types.h> | |||||
#include <linux/ioctl.h> | |||||
#else | |||||
#include <infiniband/types.h> | |||||
#include <sys/ioccom.h> | |||||
#endif | |||||
/* | /* | ||||
* Increment this value if any changes that break userspace ABI | * Increment this value if any changes that break userspace ABI | ||||
* compatibility are made. | * compatibility are made. | ||||
*/ | */ | ||||
#define IB_USER_MAD_ABI_VERSION 5 | #define IB_USER_MAD_ABI_VERSION 5 | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | struct ib_user_mad_reg_req2 { | ||||
__u8 mgmt_class_version; | __u8 mgmt_class_version; | ||||
__u16 res; | __u16 res; | ||||
__u32 flags; | __u32 flags; | ||||
__u64 method_mask[2]; | __u64 method_mask[2]; | ||||
__u32 oui; | __u32 oui; | ||||
__u8 rmpp_version; | __u8 rmpp_version; | ||||
__u8 reserved[3]; | __u8 reserved[3]; | ||||
}; | }; | ||||
#define IB_IOCTL_MAGIC 0x1b | |||||
#define IB_USER_MAD_REGISTER_AGENT _IOWR(IB_IOCTL_MAGIC, 1, \ | |||||
struct ib_user_mad_reg_req) | |||||
#define IB_USER_MAD_UNREGISTER_AGENT _IOW(IB_IOCTL_MAGIC, 2, __u32) | |||||
#define IB_USER_MAD_ENABLE_PKEY _IO(IB_IOCTL_MAGIC, 3) | |||||
#define IB_USER_MAD_REGISTER_AGENT2 _IOWR(IB_IOCTL_MAGIC, 4, \ | |||||
struct ib_user_mad_reg_req2) | |||||
#endif /* IB_USER_MAD_H */ | #endif /* IB_USER_MAD_H */ |