/* * Copyright (c) 2007-2008 Cisco, Inc. All rights reserved. * * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #ifndef BTL_OPENIB_CONNECT_BASE_H #define BTL_OPENIB_CONNECT_BASE_H #include "connect/connect.h" BEGIN_C_DECLS /* * Open function */ int ompi_btl_openib_connect_base_register(void); /* * Component-wide CPC init */ int ompi_btl_openib_connect_base_init(void); /* * Query CPCs to see if they want to run on a specific module */ int ompi_btl_openib_connect_base_select_for_local_port (mca_btl_openib_module_t *btl); /* * Forward reference to avoid an include file loop */ struct mca_btl_openib_proc_modex_t; /* * Select function */ int ompi_btl_openib_connect_base_find_match (mca_btl_openib_module_t *btl, struct mca_btl_openib_proc_modex_t *peer_port, ompi_btl_openib_connect_base_module_t **local_cpc, ompi_btl_openib_connect_base_module_data_t **remote_cpc_data); /* * Find a CPC's index so that we can send it in the modex */ int ompi_btl_openib_connect_base_get_cpc_index (ompi_btl_openib_connect_base_component_t *cpc); /* * Lookup a CPC by its index (received from the modex) */ ompi_btl_openib_connect_base_component_t * ompi_btl_openib_connect_base_get_cpc_byindex(uint8_t index); /* * Component-wide CPC finalize */ void ompi_btl_openib_connect_base_finalize(void); END_C_DECLS #endif