Move legacy MAD IOCTL declarations to rdma_user_ioctl.h file.
Showing the changes to include/uapi (2 of 2 files). Show all
Unified · Split
| @@ -230,14 +230,4 @@ struct ib_user_mad_reg_req2 { · 229 unmodified lines | ||
| 230 | 230 | __u8 reserved[3]; |
| 231 | 231 | }; |
| 232 | 232 | |
| 233 | −#define IB_USER_MAD_REGISTER_AGENT _IOWR(IB_IOCTL_MAGIC, 1, \ | |
| 234 | − struct ib_user_mad_reg_req) | |
| 235 | − | |
| 236 | −#define IB_USER_MAD_UNREGISTER_AGENT _IOW(IB_IOCTL_MAGIC, 2, __u32) | |
| 237 | − | |
| 238 | −#define IB_USER_MAD_ENABLE_PKEY _IO(IB_IOCTL_MAGIC, 3) | |
| 239 | − | |
| 240 | −#define IB_USER_MAD_REGISTER_AGENT2 _IOWR(IB_IOCTL_MAGIC, 4, \ | |
| 241 | − struct ib_user_mad_reg_req2) | |
| 242 | − | |
| 243 | 233 | #endif /* IB_USER_MAD_H */ |
| @@ -35,9 +35,20 @@ · 34 unmodified lines | ||
| 35 | 35 | |
| 36 | 36 | #include <linux/types.h> |
| 37 | 37 | #include <linux/ioctl.h> |
| 38 | +#include <rdma/ib_user_mad.h> | |
| 38 | 39 | |
| 39 | 40 | /* Documentation/ioctl/ioctl-number.txt */ |
| 40 | 41 | #define RDMA_IOCTL_MAGIC 0x1b |
| 41 | 42 | #define IB_IOCTL_MAGIC RDMA_IOCTL_MAGIC |
| 42 | 43 | |
| 44 | +#define IB_USER_MAD_REGISTER_AGENT _IOWR(IB_IOCTL_MAGIC, 1, \ | |
| 45 | + struct ib_user_mad_reg_req) | |
| 46 | + | |
| 47 | +#define IB_USER_MAD_UNREGISTER_AGENT _IOW(IB_IOCTL_MAGIC, 2, __u32) | |
| 48 | + | |
| 49 | +#define IB_USER_MAD_ENABLE_PKEY _IO(IB_IOCTL_MAGIC, 3) | |
| 50 | + | |
| 51 | +#define IB_USER_MAD_REGISTER_AGENT2 _IOWR(IB_IOCTL_MAGIC, 4, \ | |
| 52 | + struct ib_user_mad_reg_req2) | |
| 53 | + | |
| 43 | 54 | #endif /* RDMA_USER_IOCTL_H */ |