1/* 2 * Copyright (c) 2014 ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group. 8 */ 9 10#ifndef XEON_PHI_CLIENT_INTERNAL_H_ 11#define XEON_PHI_CLIENT_INTERNAL_H_ 12 13 14/** 15 * \brief looks up the domain ID given the information 16 * 17 * \param iface Interface name of the domain 18 * \param retdom returned domain id 19 * 20 * \returns SYS_ERR_OK on success, 21 * XEON_PHI_ERR_CLIENT_DOMAIN_VOID, 22 * errval on error 23 */ 24errval_t xeon_phi_client_domain_lookup(const char *iface, 25 xphi_dom_id_t *retdom); 26 27/** 28 * \brief looks up the domain ID given the information and waits 29 * until the domain registers 30 * 31 * \param iface Interface name of the domain 32 * \param retdom returned domain id 33 * 34 * \returns SYS_ERR_OK on success, 35 * XEON_PHI_ERR_CLIENT_DOMAIN_VOID, 36 * errval on error 37 */ 38errval_t xeon_phi_client_domain_wait(const char *iface, 39 xphi_dom_id_t *retdom); 40 41/** 42 * \brief registers a a domain 43 * 44 * \param iface Interface name of the domain 45 * \param retdom returned domain id 46 * 47 * \returns SYS_ERR_OK on success, 48 * errval on error 49 */ 50errval_t xeon_phi_client_domain_register(const char *iface, 51 xphi_dom_id_t dom); 52 53#endif /* INTERNAL_H_ */ 54