summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
authorMichael Brown2009-07-07 03:01:21 +0200
committerMichael Brown2009-07-18 00:06:33 +0200
commitd6b47871de4a99f633f9ea91c3e1e31adeca28ea (patch)
tree6e29144ed04a9ddff8c0e60772451ee8654d7b78 /src/include/gpxe
parent[infiniband] Create a general management agent (diff)
downloadipxe-d6b47871de4a99f633f9ea91c3e1e31adeca28ea.tar.gz
ipxe-d6b47871de4a99f633f9ea91c3e1e31adeca28ea.tar.xz
ipxe-d6b47871de4a99f633f9ea91c3e1e31adeca28ea.zip
[infiniband] Provide a general mechanism for path record lookups
Generalise out the path record lookup code from IPoIB.
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/errfile.h1
-rw-r--r--src/include/gpxe/ib_pathrec.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gpxe/errfile.h b/src/include/gpxe/errfile.h
index e8132b47a..0eac0a8eb 100644
--- a/src/include/gpxe/errfile.h
+++ b/src/include/gpxe/errfile.h
@@ -145,6 +145,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_icmp ( ERRFILE_NET | 0x00190000 )
#define ERRFILE_ib_qset ( ERRFILE_NET | 0x001a0000 )
#define ERRFILE_ib_gma ( ERRFILE_NET | 0x001b0000 )
+#define ERRFILE_ib_pathrec ( ERRFILE_NET | 0x001c0000 )
#define ERRFILE_image ( ERRFILE_IMAGE | 0x00000000 )
#define ERRFILE_elf ( ERRFILE_IMAGE | 0x00010000 )
diff --git a/src/include/gpxe/ib_pathrec.h b/src/include/gpxe/ib_pathrec.h
new file mode 100644
index 000000000..445155634
--- /dev/null
+++ b/src/include/gpxe/ib_pathrec.h
@@ -0,0 +1,17 @@
+#ifndef _GPXE_IB_PATHREC_H
+#define _GPXE_IB_PATHREC_H
+
+/** @file
+ *
+ * Infiniband path records
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <gpxe/infiniband.h>
+
+extern int ib_resolve_path ( struct ib_device *ibdev,
+ struct ib_address_vector *av );
+
+#endif /* _GPXE_IB_PATHREC_H */