![]() |
|
|||
0001 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ 0002 /* 0003 * Copyright (c) 2016 Mellanox Technologies, LTD. All rights reserved. 0004 * 0005 * This software is available to you under a choice of one of two 0006 * licenses. You may choose to be licensed under the terms of the GNU 0007 * General Public License (GPL) Version 2, available from the file 0008 * COPYING in the main directory of this source tree, or the 0009 * OpenIB.org BSD license below: 0010 * 0011 * Redistribution and use in source and binary forms, with or 0012 * without modification, are permitted provided that the following 0013 * conditions are met: 0014 * 0015 * - Redistributions of source code must retain the above 0016 * copyright notice, this list of conditions and the following 0017 * disclaimer. 0018 * 0019 * - Redistributions in binary form must reproduce the above 0020 * copyright notice, this list of conditions and the following 0021 * disclaimer in the documentation and/or other materials 0022 * provided with the distribution. 0023 * 0024 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 0025 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 0026 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 0027 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 0028 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 0029 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0030 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 0031 * SOFTWARE. 0032 */ 0033 0034 #ifndef RDMA_USER_IOCTL_H 0035 #define RDMA_USER_IOCTL_H 0036 0037 #include <rdma/ib_user_mad.h> 0038 #include <rdma/hfi/hfi1_ioctl.h> 0039 #include <rdma/rdma_user_ioctl_cmds.h> 0040 0041 /* Legacy name, for user space application which already use it */ 0042 #define IB_IOCTL_MAGIC RDMA_IOCTL_MAGIC 0043 0044 /* 0045 * General blocks assignments 0046 * It is closed on purpose - do not expose it to user space 0047 * #define MAD_CMD_BASE 0x00 0048 * #define HFI1_CMD_BAS 0xE0 0049 */ 0050 0051 /* MAD specific section */ 0052 #define IB_USER_MAD_REGISTER_AGENT _IOWR(RDMA_IOCTL_MAGIC, 0x01, struct ib_user_mad_reg_req) 0053 #define IB_USER_MAD_UNREGISTER_AGENT _IOW(RDMA_IOCTL_MAGIC, 0x02, __u32) 0054 #define IB_USER_MAD_ENABLE_PKEY _IO(RDMA_IOCTL_MAGIC, 0x03) 0055 #define IB_USER_MAD_REGISTER_AGENT2 _IOWR(RDMA_IOCTL_MAGIC, 0x04, struct ib_user_mad_reg_req2) 0056 0057 /* HFI specific section */ 0058 /* allocate HFI and context */ 0059 #define HFI1_IOCTL_ASSIGN_CTXT _IOWR(RDMA_IOCTL_MAGIC, 0xE1, struct hfi1_user_info) 0060 /* find out what resources we got */ 0061 #define HFI1_IOCTL_CTXT_INFO _IOW(RDMA_IOCTL_MAGIC, 0xE2, struct hfi1_ctxt_info) 0062 /* set up userspace */ 0063 #define HFI1_IOCTL_USER_INFO _IOW(RDMA_IOCTL_MAGIC, 0xE3, struct hfi1_base_info) 0064 /* update expected TID entries */ 0065 #define HFI1_IOCTL_TID_UPDATE _IOWR(RDMA_IOCTL_MAGIC, 0xE4, struct hfi1_tid_info) 0066 /* free expected TID entries */ 0067 #define HFI1_IOCTL_TID_FREE _IOWR(RDMA_IOCTL_MAGIC, 0xE5, struct hfi1_tid_info) 0068 /* force an update of PIO credit */ 0069 #define HFI1_IOCTL_CREDIT_UPD _IO(RDMA_IOCTL_MAGIC, 0xE6) 0070 /* control receipt of packets */ 0071 #define HFI1_IOCTL_RECV_CTRL _IOW(RDMA_IOCTL_MAGIC, 0xE8, int) 0072 /* set the kind of polling we want */ 0073 #define HFI1_IOCTL_POLL_TYPE _IOW(RDMA_IOCTL_MAGIC, 0xE9, int) 0074 /* ack & clear user status bits */ 0075 #define HFI1_IOCTL_ACK_EVENT _IOW(RDMA_IOCTL_MAGIC, 0xEA, unsigned long) 0076 /* set context's pkey */ 0077 #define HFI1_IOCTL_SET_PKEY _IOW(RDMA_IOCTL_MAGIC, 0xEB, __u16) 0078 /* reset context's HW send context */ 0079 #define HFI1_IOCTL_CTXT_RESET _IO(RDMA_IOCTL_MAGIC, 0xEC) 0080 /* read TID cache invalidations */ 0081 #define HFI1_IOCTL_TID_INVAL_READ _IOWR(RDMA_IOCTL_MAGIC, 0xED, struct hfi1_tid_info) 0082 /* get the version of the user cdev */ 0083 #define HFI1_IOCTL_GET_VERS _IOR(RDMA_IOCTL_MAGIC, 0xEE, int) 0084 0085 #endif /* RDMA_USER_IOCTL_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |