15115240jeff/*
2c187222hselasky * Copyright (c) 2004-2008 Voltaire, Inc. All rights reserved.
35115240jeff * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
45115240jeff * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
55115240jeff *
65115240jeff * This software is available to you under a choice of one of two
75115240jeff * licenses.  You may choose to be licensed under the terms of the GNU
85115240jeff * General Public License (GPL) Version 2, available from the file
95115240jeff * COPYING in the main directory of this source tree, or the
105115240jeff * OpenIB.org BSD license below:
115115240jeff *
125115240jeff *     Redistribution and use in source and binary forms, with or
135115240jeff *     without modification, are permitted provided that the following
145115240jeff *     conditions are met:
155115240jeff *
165115240jeff *      - Redistributions of source code must retain the above
175115240jeff *        copyright notice, this list of conditions and the following
185115240jeff *        disclaimer.
195115240jeff *
205115240jeff *      - Redistributions in binary form must reproduce the above
215115240jeff *        copyright notice, this list of conditions and the following
225115240jeff *        disclaimer in the documentation and/or other materials
235115240jeff *        provided with the distribution.
245115240jeff *
255115240jeff * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
265115240jeff * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
275115240jeff * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
285115240jeff * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
295115240jeff * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
305115240jeff * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
315115240jeff * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
325115240jeff * SOFTWARE.
335115240jeff *
345115240jeff */
355115240jeff
365115240jeff/*
375115240jeff * Abstract:
385115240jeff * 	Include file used by OpenSM to pull in the correct vendor file.
395115240jeff */
405115240jeff
415115240jeff/*
425115240jeff  this is the generic include file which includes
435115240jeff  the proper vendor specific file
445115240jeff*/
455115240jeff#include <opensm/osm_config.h>
465115240jeff
475115240jeff#if defined( OSM_VENDOR_INTF_TEST )
485115240jeff#include <vendor/osm_vendor_test.h>
495115240jeff#elif defined( OSM_VENDOR_INTF_UMADT )
505115240jeff#include <vendor/osm_vendor_umadt.h>
515115240jeff#elif defined( OSM_VENDOR_INTF_MTL )
525115240jeff/* HACK - I do not know how to prevent complib from loading kernel H files */
535115240jeff#undef __init
545115240jeff#include <vendor/osm_vendor_mlx.h>
555115240jeff#elif defined( OSM_VENDOR_INTF_TS )
565115240jeff#undef __init
575115240jeff#include <vendor/osm_vendor_mlx.h>
585115240jeff#elif defined( OSM_VENDOR_INTF_ANAFA )
595115240jeff#undef __init
605115240jeff#include <vendor/osm_vendor_mlx.h>
615115240jeff#elif defined( OSM_VENDOR_INTF_SIM )
625115240jeff#undef __init
635115240jeff#include <vendor/osm_vendor_mlx.h>
645115240jeff#elif defined( OSM_VENDOR_INTF_OPENIB )
655115240jeff#include <vendor/osm_vendor_ibumad.h>
665115240jeff#elif defined( OSM_VENDOR_INTF_AL )
675115240jeff#include <vendor/osm_vendor_al.h>
689ce3ca2bdrewery#else
695115240jeff#error No MAD Interface selected!
705115240jeff#error Choose an interface in osm_config.h
715115240jeff#endif
72