X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Finclude%2Flnet%2Flnet.h;h=a1c7372e0e31328b7305c9e50fc07bbecf76f3c1;hb=57841b254cd4f80c0c1a85f6c3116e48b13e9db0;hp=8b1495e81e9d02673698e092bfcc00d4cb6fa396;hpb=e0576be940d7af30b2ba6e219891a4413670325d;p=fs%2Flustre-release.git diff --git a/lnet/include/lnet/lnet.h b/lnet/include/lnet/lnet.h index 8b1495e..a1c7372 100644 --- a/lnet/include/lnet/lnet.h +++ b/lnet/include/lnet/lnet.h @@ -1,71 +1,59 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - */ -#ifndef _P30_H_ -#define _P30_H_ - /* - * p30.h + * GPL HEADER START * - * User application interface file + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 only, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License version 2 for more details (a copy is included + * in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU General Public License + * version 2 along with this program; If not, see + * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + * + * GPL HEADER END + */ +/* + * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. + * Use is subject to license terms. + */ +/* + * This file is part of Lustre, http://www.lustre.org/ + * Lustre is a trademark of Sun Microsystems, Inc. */ -#if defined (__KERNEL__) -#include -#include -#else -#include -#include -#endif - -#include -#include -#include -#include - -extern int __p30_initialized; /* for libraries & test codes */ -extern int __p30_myr_initialized; /* that don't know if p30 */ -extern int __p30_ip_initialized; /* had been initialized yet */ -extern ptl_handle_ni_t __myr_ni_handle, __ip_ni_handle; - -extern int __p30_myr_timeout; /* in seconds, for PtlNIBarrier, */ -extern int __p30_ip_timeout; /* PtlReduce_all, & PtlBroadcast_all */ +#ifndef __LNET_H__ +#define __LNET_H__ /* - * Debugging flags reserved for the Portals reference library. - * These are not part of the API as described in the SAND report - * but are for the use of the maintainers of the reference implementation. + * lnet.h * - * It is not expected that the real implementations will export - * this functionality. + * User application interface file */ -#define PTL_DEBUG_NONE 0ul -#define PTL_DEBUG_ALL (0x0FFFul) /* Only the Portals flags */ +#if defined(__linux__) +#include +#elif defined(__APPLE__) +#include +#elif defined(__WINNT__) +#include +#else +#error Unsupported Operating System +#endif -#define __bit(x) ((unsigned long) 1<<(x)) -#define PTL_DEBUG_PUT __bit(0) -#define PTL_DEBUG_GET __bit(1) -#define PTL_DEBUG_REPLY __bit(2) -#define PTL_DEBUG_ACK __bit(3) -#define PTL_DEBUG_DROP __bit(4) -#define PTL_DEBUG_REQUEST __bit(5) -#define PTL_DEBUG_DELIVERY __bit(6) -#define PTL_DEBUG_UNLINK __bit(7) -#define PTL_DEBUG_THRESHOLD __bit(8) -#define PTL_DEBUG_API __bit(9) +#include +#include -/* - * These eight are reserved for the NAL to define - * It should probably give them better names... - */ -#define PTL_DEBUG_NI_ALL (0xF000ul) /* Only the NAL flags */ -#define PTL_DEBUG_NI0 __bit(24) -#define PTL_DEBUG_NI1 __bit(25) -#define PTL_DEBUG_NI2 __bit(26) -#define PTL_DEBUG_NI3 __bit(27) -#define PTL_DEBUG_NI4 __bit(28) -#define PTL_DEBUG_NI5 __bit(29) -#define PTL_DEBUG_NI6 __bit(30) -#define PTL_DEBUG_NI7 __bit(31) +#define LNET_NIDSTR_COUNT 1024 /* # of nidstrings */ +#define LNET_NIDSTR_SIZE 32 /* size of each one (see below for usage) */ #endif