[infiniband] Centralise SMA and GMA queue constants

This commit is contained in:
Michael Brown
2009-07-06 20:31:44 +01:00
parent 887d296b88
commit 365b8db5cf
5 changed files with 23 additions and 20 deletions

View File

@@ -106,12 +106,6 @@ enum ib_bth_opcode {
BTH_OPCODE_UD_SEND = 0x64,
};
/** Default Infiniband partition key */
#define IB_PKEY_NONE 0xffff
/** Subnet management queue pair number */
#define IB_QPN_SMP 0
/** An Infiniband Datagram Extended Transport Header */
struct ib_datagram_extended_transport_header {
/** Queue key */

View File

@@ -15,14 +15,23 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <gpxe/ib_packet.h>
#include <gpxe/ib_mad.h>
/** Subnet administrator QPN */
#define IB_SA_QPN 1
/** Subnet management QPN */
#define IB_QPN_SMA 0
/** Subnet management queue key */
#define IB_QKEY_SMA 0
/** General management QPN */
#define IB_QPN_GMA 1
/** General management queue key */
#define IB_QKEY_GMA 0x80010000UL
/** Broadcast QPN */
#define IB_BROADCAST_QPN 0xffffffUL
#define IB_QPN_BROADCAST 0xffffffUL
/** Subnet administrator queue key */
#define IB_GLOBAL_QKEY 0x80010000UL
/** Default Infiniband partition key */
#define IB_PKEY_NONE 0xffff
/**
* Maximum payload size