ia64/xen-unstable

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