1321936Shselasky/*- 2321936Shselasky * Copyright (c) 2010 Isilon Systems, Inc. 3321936Shselasky * Copyright (c) 2010 iX Systems, Inc. 4321936Shselasky * Copyright (c) 2010 Panasas, Inc. 5321936Shselasky * All rights reserved. 6321936Shselasky * 7321936Shselasky * Redistribution and use in source and binary forms, with or without 8321936Shselasky * modification, are permitted provided that the following conditions 9321936Shselasky * are met: 10321936Shselasky * 1. Redistributions of source code must retain the above copyright 11321936Shselasky * notice unmodified, this list of conditions, and the following 12321936Shselasky * disclaimer. 13321936Shselasky * 2. Redistributions in binary form must reproduce the above copyright 14321936Shselasky * notice, this list of conditions and the following disclaimer in the 15321936Shselasky * documentation and/or other materials provided with the distribution. 16321936Shselasky * 17321936Shselasky * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18321936Shselasky * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19321936Shselasky * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20321936Shselasky * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21321936Shselasky * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22321936Shselasky * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23321936Shselasky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24321936Shselasky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25321936Shselasky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26321936Shselasky * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27321936Shselasky */ 28321936Shselasky 29321936Shselasky#ifndef _INFINIBAND_BYTESWAP_H_ 30321936Shselasky#define _INFINIBAND_BYTESWAP_H_ 31321936Shselasky/* 32321936Shselasky * This file is included for compatibility with the userland libraries 33321936Shselasky * accompanying the infiniband stack. 34321936Shselasky */ 35321936Shselasky#include <sys/types.h> 36321936Shselasky#include <sys/endian.h> 37321936Shselasky 38321936Shselasky#define bswap_16 bswap16 39321936Shselasky#define bswap_32 bswap32 40321936Shselasky#define bswap_64 bswap64 41321936Shselasky 42321936Shselasky#endif /* _INFINIBAND_BYTESWAP_H_ */ 43