Statistics
| Branch: | Revision:

root / target-ppc / kvm_ppc.h @ 99036865

History | View | Annotate | Download (803 Bytes)

1 d76d1650 aurel32
/*
2 d76d1650 aurel32
 * Copyright 2008 IBM Corporation.
3 d76d1650 aurel32
 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
4 d76d1650 aurel32
 *
5 d76d1650 aurel32
 * This work is licensed under the GNU GPL license version 2 or later.
6 d76d1650 aurel32
 *
7 d76d1650 aurel32
 */
8 d76d1650 aurel32
9 d76d1650 aurel32
#ifndef __KVM_PPC_H__
10 d76d1650 aurel32
#define __KVM_PPC_H__
11 d76d1650 aurel32
12 d76d1650 aurel32
void kvmppc_init(void);
13 d76d1650 aurel32
void kvmppc_fdt_update(void *fdt);
14 ea23bc20 aurel32
int kvmppc_read_host_property(const char *node_path, const char *prop,
15 ea23bc20 aurel32
                                     void *val, size_t len);
16 d76d1650 aurel32
17 dc333cd6 Alexander Graf
uint32_t kvmppc_get_tbfreq(void);
18 45024f09 Alexander Graf
int kvmppc_get_hypercall(CPUState *env, uint8_t *buf, int buf_len);
19 fc87e185 Alexander Graf
int kvmppc_set_interrupt(CPUState *env, int irq, int level);
20 fc87e185 Alexander Graf
21 fc87e185 Alexander Graf
#ifndef KVM_INTERRUPT_SET
22 fc87e185 Alexander Graf
#define KVM_INTERRUPT_SET -1
23 fc87e185 Alexander Graf
#endif
24 fc87e185 Alexander Graf
25 fc87e185 Alexander Graf
#ifndef KVM_INTERRUPT_UNSET
26 fc87e185 Alexander Graf
#define KVM_INTERRUPT_UNSET -2
27 fc87e185 Alexander Graf
#endif
28 fc87e185 Alexander Graf
29 fc87e185 Alexander Graf
#ifndef KVM_INTERRUPT_SET_LEVEL
30 fc87e185 Alexander Graf
#define KVM_INTERRUPT_SET_LEVEL -3
31 fc87e185 Alexander Graf
#endif
32 dc333cd6 Alexander Graf
33 d76d1650 aurel32
#endif /* __KVM_PPC_H__ */