1c39526b7SPramod Gunjikar /* 2c39526b7SPramod Gunjikar * This file contains definitions used in the OFED defined user/kernel 3c39526b7SPramod Gunjikar * interfaces. These are imported from the OFED headers ib_mad.h, ib_cm.h 4c39526b7SPramod Gunjikar * and ib_sa.h. Oracle elects to have and use the contents of these headers 5c39526b7SPramod Gunjikar * under and governed by the OpenIB.org BSD license (see below for full 6c39526b7SPramod Gunjikar * license text). However, the following notice accompanied the original 7c39526b7SPramod Gunjikar * version of these files: 8c39526b7SPramod Gunjikar */ 9c39526b7SPramod Gunjikar 10c39526b7SPramod Gunjikar /* ib_mad.h */ 11c39526b7SPramod Gunjikar 12c39526b7SPramod Gunjikar /* 13c39526b7SPramod Gunjikar * Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved. 14c39526b7SPramod Gunjikar * Copyright (c) 2004 Infinicon Corporation. All rights reserved. 15c39526b7SPramod Gunjikar * Copyright (c) 2004 Intel Corporation. All rights reserved. 16c39526b7SPramod Gunjikar * Copyright (c) 2004 Topspin Corporation. All rights reserved. 17c39526b7SPramod Gunjikar * Copyright (c) 2004-2006 Voltaire Corporation. All rights reserved. 18c39526b7SPramod Gunjikar * 19c39526b7SPramod Gunjikar * This software is available to you under a choice of one of two 20c39526b7SPramod Gunjikar * licenses. You may choose to be licensed under the terms of the GNU 21c39526b7SPramod Gunjikar * General Public License (GPL) Version 2, available from the file 22c39526b7SPramod Gunjikar * COPYING in the main directory of this source tree, or the 23c39526b7SPramod Gunjikar * OpenIB.org BSD license below: 24c39526b7SPramod Gunjikar * 25c39526b7SPramod Gunjikar * Redistribution and use in source and binary forms, with or 26c39526b7SPramod Gunjikar * without modification, are permitted provided that the following 27c39526b7SPramod Gunjikar * conditions are met: 28c39526b7SPramod Gunjikar * 29c39526b7SPramod Gunjikar * - Redistributions of source code must retain the above 30c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 31c39526b7SPramod Gunjikar * disclaimer. 32c39526b7SPramod Gunjikar * 33c39526b7SPramod Gunjikar * - Redistributions in binary form must reproduce the above 34c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 35c39526b7SPramod Gunjikar * disclaimer in the documentation and/or other materials 36c39526b7SPramod Gunjikar * provided with the distribution. 37c39526b7SPramod Gunjikar * 38c39526b7SPramod Gunjikar * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 39c39526b7SPramod Gunjikar * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 40c39526b7SPramod Gunjikar * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 41c39526b7SPramod Gunjikar * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 42c39526b7SPramod Gunjikar * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 43c39526b7SPramod Gunjikar * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 44c39526b7SPramod Gunjikar * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 45c39526b7SPramod Gunjikar * SOFTWARE. 46c39526b7SPramod Gunjikar */ 47c39526b7SPramod Gunjikar 48c39526b7SPramod Gunjikar /* ib_cm.h */ 49c39526b7SPramod Gunjikar 50c39526b7SPramod Gunjikar /* 51c39526b7SPramod Gunjikar * Copyright (c) 2004, 2005 Intel Corporation. All rights reserved. 52c39526b7SPramod Gunjikar * Copyright (c) 2004 Topspin Corporation. All rights reserved. 53c39526b7SPramod Gunjikar * Copyright (c) 2004 Voltaire Corporation. All rights reserved. 54c39526b7SPramod Gunjikar * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. 55c39526b7SPramod Gunjikar * 56c39526b7SPramod Gunjikar * This software is available to you under a choice of one of two 57c39526b7SPramod Gunjikar * licenses. You may choose to be licensed under the terms of the GNU 58c39526b7SPramod Gunjikar * General Public License (GPL) Version 2, available from the file 59c39526b7SPramod Gunjikar * COPYING in the main directory of this source tree, or the 60c39526b7SPramod Gunjikar * OpenIB.org BSD license below: 61c39526b7SPramod Gunjikar * 62c39526b7SPramod Gunjikar * Redistribution and use in source and binary forms, with or 63c39526b7SPramod Gunjikar * without modification, are permitted provided that the following 64c39526b7SPramod Gunjikar * conditions are met: 65c39526b7SPramod Gunjikar * 66c39526b7SPramod Gunjikar * - Redistributions of source code must retain the above 67c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 68c39526b7SPramod Gunjikar * disclaimer. 69c39526b7SPramod Gunjikar * 70c39526b7SPramod Gunjikar * - Redistributions in binary form must reproduce the above 71c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 72c39526b7SPramod Gunjikar * disclaimer in the documentation and/or other materials 73c39526b7SPramod Gunjikar * provided with the distribution. 74c39526b7SPramod Gunjikar * 75c39526b7SPramod Gunjikar * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 76c39526b7SPramod Gunjikar * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 77c39526b7SPramod Gunjikar * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 78c39526b7SPramod Gunjikar * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 79c39526b7SPramod Gunjikar * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 80c39526b7SPramod Gunjikar * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 81c39526b7SPramod Gunjikar * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 82c39526b7SPramod Gunjikar * SOFTWARE. 83c39526b7SPramod Gunjikar */ 84c39526b7SPramod Gunjikar 85c39526b7SPramod Gunjikar /* ib_sa.h */ 86c39526b7SPramod Gunjikar 87c39526b7SPramod Gunjikar /* 88c39526b7SPramod Gunjikar * Copyright (c) 2004 Topspin Communications. All rights reserved. 89c39526b7SPramod Gunjikar * Copyright (c) 2005 Voltaire, Inc. All rights reserved. 90c39526b7SPramod Gunjikar * Copyright (c) 2006 Intel Corporation. All rights reserved. 91c39526b7SPramod Gunjikar * 92c39526b7SPramod Gunjikar * This software is available to you under a choice of one of two 93c39526b7SPramod Gunjikar * licenses. You may choose to be licensed under the terms of the GNU 94c39526b7SPramod Gunjikar * General Public License (GPL) Version 2, available from the file 95c39526b7SPramod Gunjikar * COPYING in the main directory of this source tree, or the 96c39526b7SPramod Gunjikar * OpenIB.org BSD license below: 97c39526b7SPramod Gunjikar * 98c39526b7SPramod Gunjikar * Redistribution and use in source and binary forms, with or 99c39526b7SPramod Gunjikar * without modification, are permitted provided that the following 100c39526b7SPramod Gunjikar * conditions are met: 101c39526b7SPramod Gunjikar * 102c39526b7SPramod Gunjikar * - Redistributions of source code must retain the above 103c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 104c39526b7SPramod Gunjikar * disclaimer. 105c39526b7SPramod Gunjikar * 106c39526b7SPramod Gunjikar * - Redistributions in binary form must reproduce the above 107c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 108c39526b7SPramod Gunjikar * disclaimer in the documentation and/or other materials 109c39526b7SPramod Gunjikar * provided with the distribution. 110c39526b7SPramod Gunjikar * 111c39526b7SPramod Gunjikar * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 112c39526b7SPramod Gunjikar * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 113c39526b7SPramod Gunjikar * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 114c39526b7SPramod Gunjikar * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 115c39526b7SPramod Gunjikar * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 116c39526b7SPramod Gunjikar * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 117c39526b7SPramod Gunjikar * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 118c39526b7SPramod Gunjikar * SOFTWARE. 119c39526b7SPramod Gunjikar */ 120c39526b7SPramod Gunjikar #ifndef _SYS_IB_CLIENTS_OF_OFED_KERNEL_H 121c39526b7SPramod Gunjikar #define _SYS_IB_CLIENTS_OF_OFED_KERNEL_H 122c39526b7SPramod Gunjikar #ifdef __cplusplus 123c39526b7SPramod Gunjikar extern "C" { 124c39526b7SPramod Gunjikar #endif 125c39526b7SPramod Gunjikar 126c39526b7SPramod Gunjikar #include <sys/ib/clients/of/ofa_solaris.h> 127c39526b7SPramod Gunjikar #include <sys/ib/clients/of/rdma/ib_verbs.h> 128c39526b7SPramod Gunjikar #include <sys/ib/clients/of/rdma/ib_user_verbs.h> 129c39526b7SPramod Gunjikar #include <sys/ib/clients/of/rdma/ib_user_mad.h> 130c39526b7SPramod Gunjikar 131c39526b7SPramod Gunjikar 132c39526b7SPramod Gunjikar /* 133c39526b7SPramod Gunjikar * From ib_mad.h 134c39526b7SPramod Gunjikar */ 135c39526b7SPramod Gunjikar enum { 136c39526b7SPramod Gunjikar IB_MGMT_MAD_HDR = 24, 137c39526b7SPramod Gunjikar IB_MGMT_MAD_DATA = 232, 138c39526b7SPramod Gunjikar IB_MGMT_RMPP_HDR = 36, 139c39526b7SPramod Gunjikar IB_MGMT_RMPP_DATA = 220, 140c39526b7SPramod Gunjikar IB_MGMT_VENDOR_HDR = 40, 141c39526b7SPramod Gunjikar IB_MGMT_VENDOR_DATA = 216, 142c39526b7SPramod Gunjikar IB_MGMT_SA_HDR = 56, 143c39526b7SPramod Gunjikar IB_MGMT_SA_DATA = 200, 144c39526b7SPramod Gunjikar IB_MGMT_DEVICE_HDR = 64, 145c39526b7SPramod Gunjikar IB_MGMT_DEVICE_DATA = 192, 146*448bf859SLida.Horn IB_MGMT_SNMP_HDR = 56, 147*448bf859SLida.Horn IB_MGMT_SNMP_DATA = 64, 148c39526b7SPramod Gunjikar }; 149c39526b7SPramod Gunjikar 150c39526b7SPramod Gunjikar /* 151c39526b7SPramod Gunjikar * From ib_cm.h 152c39526b7SPramod Gunjikar */ 153c39526b7SPramod Gunjikar enum ib_cm_sidr_status { 154c39526b7SPramod Gunjikar IB_SIDR_SUCCESS, 155c39526b7SPramod Gunjikar IB_SIDR_UNSUPPORTED, 156c39526b7SPramod Gunjikar IB_SIDR_REJECT, 157c39526b7SPramod Gunjikar IB_SIDR_NO_QP, 158c39526b7SPramod Gunjikar IB_SIDR_REDIRECT, 159c39526b7SPramod Gunjikar IB_SIDR_UNSUPPORTED_VERSION 160c39526b7SPramod Gunjikar }; 161c39526b7SPramod Gunjikar 162c39526b7SPramod Gunjikar /* 163c39526b7SPramod Gunjikar * From ib_sa.h 164c39526b7SPramod Gunjikar */ 165c39526b7SPramod Gunjikar struct ib_sa_path_rec { 166c39526b7SPramod Gunjikar uint64_t service_id; 167c39526b7SPramod Gunjikar union ib_gid dgid; 168c39526b7SPramod Gunjikar union ib_gid sgid; 169c39526b7SPramod Gunjikar uint16_t dlid; 170c39526b7SPramod Gunjikar uint16_t slid; 171c39526b7SPramod Gunjikar int raw_traffic; 172c39526b7SPramod Gunjikar /* reserved */ 173c39526b7SPramod Gunjikar uint32_t flow_label; 174c39526b7SPramod Gunjikar uint8_t hop_limit; 175c39526b7SPramod Gunjikar uint8_t traffic_class; 176c39526b7SPramod Gunjikar int reversible; 177c39526b7SPramod Gunjikar uint8_t numb_path; 178c39526b7SPramod Gunjikar uint16_t pkey; 179c39526b7SPramod Gunjikar uint16_t qos_class; 180c39526b7SPramod Gunjikar uint8_t sl; 181c39526b7SPramod Gunjikar uint8_t mtu_selector; 182c39526b7SPramod Gunjikar uint8_t mtu; 183c39526b7SPramod Gunjikar uint8_t rate_selector; 184c39526b7SPramod Gunjikar uint8_t rate; 185c39526b7SPramod Gunjikar uint8_t packet_life_time_selector; 186c39526b7SPramod Gunjikar uint8_t packet_life_time; 187c39526b7SPramod Gunjikar uint8_t preference; 188c39526b7SPramod Gunjikar }; 189c39526b7SPramod Gunjikar 190c39526b7SPramod Gunjikar #ifdef __cplusplus 191c39526b7SPramod Gunjikar } 192c39526b7SPramod Gunjikar #endif 193c39526b7SPramod Gunjikar #endif /* _SYS_IB_CLIENTS_OF_OFED_KERNEL_H */ 194