1bc63d387SDean Nelson /* 2bc63d387SDean Nelson * This file is subject to the terms and conditions of the GNU General Public 3bc63d387SDean Nelson * License. See the file "COPYING" in the main directory of this archive 4bc63d387SDean Nelson * for more details. 5bc63d387SDean Nelson * 6bc63d387SDean Nelson * Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved. 7bc63d387SDean Nelson */ 8bc63d387SDean Nelson 9bc63d387SDean Nelson /* 10bc63d387SDean Nelson * Cross Partition (XP) uv-based functions. 11bc63d387SDean Nelson * 12bc63d387SDean Nelson * Architecture specific implementation of common functions. 13bc63d387SDean Nelson * 14bc63d387SDean Nelson */ 15bc63d387SDean Nelson 16bc63d387SDean Nelson #include "xp.h" 17bc63d387SDean Nelson 18*908787dbSDean Nelson static enum xp_retval 19*908787dbSDean Nelson xp_remote_memcpy_uv(void *vdst, const void *psrc, size_t len) 20*908787dbSDean Nelson { 21*908787dbSDean Nelson /* >>> this function needs fleshing out */ 22*908787dbSDean Nelson return xpUnsupported; 23*908787dbSDean Nelson } 24*908787dbSDean Nelson 25bc63d387SDean Nelson enum xp_retval 26bc63d387SDean Nelson xp_init_uv(void) 27bc63d387SDean Nelson { 28bc63d387SDean Nelson BUG_ON(!is_uv()); 29bc63d387SDean Nelson 30bc63d387SDean Nelson xp_max_npartitions = XP_MAX_NPARTITIONS_UV; 31*908787dbSDean Nelson 32*908787dbSDean Nelson xp_remote_memcpy = xp_remote_memcpy_uv; 33*908787dbSDean Nelson 34*908787dbSDean Nelson return xpSuccess; 35bc63d387SDean Nelson } 36bc63d387SDean Nelson 37bc63d387SDean Nelson void 38bc63d387SDean Nelson xp_exit_uv(void) 39bc63d387SDean Nelson { 40bc63d387SDean Nelson BUG_ON(!is_uv()); 41bc63d387SDean Nelson } 42