1321936Shselasky/* 2321936Shselasky * This software is available to you under a choice of one of two 3321936Shselasky * licenses. You may choose to be licensed under the terms of the GNU 4321936Shselasky * General Public License (GPL) Version 2, available from the file 5321936Shselasky * COPYING in the main directory of this source tree, or the 6321936Shselasky * OpenIB.org BSD license below: 7321936Shselasky * 8321936Shselasky * Redistribution and use in source and binary forms, with or 9321936Shselasky * without modification, are permitted provided that the following 10321936Shselasky * conditions are met: 11321936Shselasky * 12321936Shselasky * - Redistributions of source code must retain the above 13321936Shselasky * copyright notice, this list of conditions and the following 14321936Shselasky * disclaimer. 15321936Shselasky * 16321936Shselasky * - Redistributions in binary form must reproduce the above 17321936Shselasky * copyright notice, this list of conditions and the following 18321936Shselasky * disclaimer in the documentation and/or other materials 19321936Shselasky * provided with the distribution. 20321936Shselasky * 21321936Shselasky * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22321936Shselasky * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23321936Shselasky * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24321936Shselasky * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 25321936Shselasky * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 26321936Shselasky * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 27321936Shselasky * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 28321936Shselasky * SOFTWARE. 29321936Shselasky */ 30321936Shselasky 31321936Shselasky#ifndef INFINIBAND_ARCH_H 32321936Shselasky#define INFINIBAND_ARCH_H 33321936Shselasky 34321936Shselasky#include <stdint.h> 35321936Shselasky#include <infiniband/endian.h> 36321936Shselasky 37321936Shselasky#warning "This header is obsolete." 38321936Shselasky 39321936Shselasky#ifndef ntohll 40321936Shselasky#undef htonll 41321936Shselasky#undef ntohll 42321936Shselasky/* Users should use the glibc functions directly, not these wrappers */ 43321936Shselaskystatic inline __attribute__((deprecated)) uint64_t htonll(uint64_t x) { return htobe64(x); } 44321936Shselaskystatic inline __attribute__((deprecated)) uint64_t ntohll(uint64_t x) { return be64toh(x); } 45321936Shselasky#define htonll htonll 46321936Shselasky#define ntohll ntohll 47321936Shselasky#endif 48321936Shselasky 49321936Shselasky/* Barrier macros are no longer provided by libibverbs */ 50321936Shselasky 51321936Shselasky#endif /* INFINIBAND_ARCH_H */ 52