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