Whamcloud - gitweb
- landing of b_hd_cleanup_merge to HEAD.
[fs/lustre-release.git] / lnet / ulnds / bridge.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (c) 2002 Cray Inc.
5  *
6  *   This file is part of Portals, http://www.sf.net/projects/sandiaportals/
7  */
8
9 #ifndef TCPNAL_PROCBRIDGE_H
10 #define TCPNAL_PROCBRIDGE_H
11
12 #include <portals/lib-p30.h>
13 #include <portals/nal.h>
14
15 #define PTL_IFACE_TCP 1
16 #define PTL_IFACE_ER 2
17 #define PTL_IFACE_SS 3
18 #define PTL_IFACE_MAX 4
19
20 typedef struct bridge {
21     int alive;
22     lib_nal_t *lib_nal;
23     void *lower;
24     void *local;
25     void (*shutdown)(struct bridge *);
26     /* this doesn't really belong here */
27     unsigned char iptop8;
28 } *bridge;
29
30
31 typedef int (*nal_initialize)(bridge);
32 extern nal_initialize nal_table[PTL_IFACE_MAX];
33
34 #endif