ia64/xen-unstable

annotate tools/libxc/powerpc64/utils.h @ 13939:09b3fd488726

[XEND][POWERPC] Remove FlatDeviceTree.py, eliminate devtree from prose builder.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sun Jan 21 08:15:39 2007 -0500 (2007-01-21)
parents 1a3c1168db6a
children
rev   line source
jimix@12953 1 /*
jimix@12953 2 * This program is free software; you can redistribute it and/or modify
jimix@12953 3 * it under the terms of the GNU General Public License as published by
jimix@12953 4 * the Free Software Foundation; either version 2 of the License, or
jimix@12953 5 * (at your option) any later version.
jimix@12953 6 *
jimix@12953 7 * This program is distributed in the hope that it will be useful,
jimix@12953 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jimix@12953 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
jimix@12953 10 * GNU General Public License for more details.
jimix@12953 11 *
jimix@12953 12 * You should have received a copy of the GNU General Public License
jimix@12953 13 * along with this program; if not, write to the Free Software
jimix@12953 14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
jimix@12953 15 *
jimix@13939 16 * Copyright IBM Corporation 2006, 2007
jimix@12953 17 *
jimix@12953 18 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
jimix@12953 19 * Jimi Xenidis <jimix@watson.ibm.com>
jimix@12953 20 */
jimix@12953 21
jimix@12953 22 extern int get_rma_page_array(int xc_handle, int domid, xen_pfn_t **page_array,
jimix@12953 23 unsigned long nr_pages);
jimix@12953 24 extern int install_image(int xc_handle, int domid, xen_pfn_t *page_array,
jimix@12953 25 void *image, unsigned long paddr, unsigned long size);
jimix@12953 26 extern void *load_file(const char *path, unsigned long *filesize);
jimix@12953 27 extern int load_elf_kernel(int xc_handle, int domid, const char *kernel_path,
jimix@12953 28 struct domain_setup_info *dsi,
jimix@12953 29 xen_pfn_t *page_array);
jimix@12953 30
jimix@12953 31 #define ALIGN_UP(addr,size) (((addr)+((size)-1))&(~((size)-1)))
jimix@12953 32
jimix@12953 33 #define max(x,y) ({ \
jimix@12953 34 const typeof(x) _x = (x); \
jimix@12953 35 const typeof(y) _y = (y); \
jimix@12953 36 (void) (&_x == &_y); \
jimix@12953 37 _x > _y ? _x : _y; })