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 XPHI_BENCH_COMMON 11#define XPHI_BENCH_COMMON 1 12 13extern struct xeon_phi_callbacks callbacks; 14 15extern struct ump_chan xphi_uc; 16extern struct ump_chan xphi_uc_rev; 17 18extern struct capref local_frame; 19extern struct capref remote_frame; 20 21extern xphi_dom_id_t domainid; 22 23void alloc_local(void); 24 25void wait_for_connection(void); 26 27#define EXPECT_SUCCESS(_err, msg) \ 28 if(err_is_fail(_err)) {USER_PANIC_ERR(_err, msg);} 29 30#endif 31