Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / include / rtas.h
1 /******************************************************************************
2  * Copyright (c) 2004, 2008 IBM Corporation
3  * All rights reserved.
4  * This program and the accompanying materials
5  * are made available under the terms of the BSD License
6  * which accompanies this distribution, and is available at
7  * http://www.opensource.org/licenses/bsd-license.php
8  *
9  * Contributors:
10  *     IBM Corporation - initial implementation
11  *****************************************************************************/
12
13 #ifndef __RTAS_H
14 #define __RTAS_H
15
16 #ifndef __ASSEMBLER__
17
18 #include <stddef.h>
19
20 typedef int rtas_arg_t;
21 typedef struct {
22         int token;
23         int nargs;
24         int nret;
25         rtas_arg_t args[16];
26 } rtas_args_t;
27
28 #else
29
30 #define RTAS_STACKSIZE 0x1000
31
32 #define RTAS_PARM_0 0x0c
33 #define RTAS_PARM_1 0x10
34 #define RTAS_PARM_2 0x14
35 #define RTAS_PARM_3 0x18
36 #define RTAS_PARM_4 0x1C
37 #define RTAS_PARM_5 0x20
38 #define RTAS_PARM_6 0x24
39 #define RTAS_PARM_7 0x28
40
41 #endif          /* __ASSEMBLER__ */
42 #endif          /* __RTAS_H */