From d6b47871de4a99f633f9ea91c3e1e31adeca28ea Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 7 Jul 2009 02:01:21 +0100 Subject: [infiniband] Provide a general mechanism for path record lookups Generalise out the path record lookup code from IPoIB. --- src/include/gpxe/errfile.h | 1 + src/include/gpxe/ib_pathrec.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/include/gpxe/ib_pathrec.h (limited to 'src/include') 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 + +extern int ib_resolve_path ( struct ib_device *ibdev, + struct ib_address_vector *av ); + +#endif /* _GPXE_IB_PATHREC_H */ -- cgit v1.2.3-55-g7522