1 |
dpavlin |
7 |
/* |
2 |
|
|
* Cisco router simulation platform. |
3 |
|
|
* Copyright (c) 2006 Christophe Fillot (cf@utc.fr) |
4 |
|
|
* |
5 |
|
|
* PowerPC VM experimentations. |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
#ifndef __PPC32_VMTEST_H__ |
9 |
|
|
#define __PPC32_VMTEST_H__ |
10 |
|
|
|
11 |
|
|
#include <pthread.h> |
12 |
|
|
|
13 |
|
|
#include "utils.h" |
14 |
|
|
#include "net.h" |
15 |
|
|
#include "device.h" |
16 |
|
|
#include "pci_dev.h" |
17 |
|
|
#include "vm.h" |
18 |
|
|
|
19 |
|
|
/* Default parameters of the test VM */ |
20 |
|
|
#define PPC32_VMTEST_DEFAULT_RAM_SIZE 256 |
21 |
|
|
|
22 |
|
|
/* Create a new test instance */ |
23 |
|
|
vm_instance_t *ppc32_vmtest_create_instance(char *name,int instance_id); |
24 |
|
|
|
25 |
|
|
/* Delete a router instance */ |
26 |
|
|
int ppc32_vmtest_delete_instance(char *name); |
27 |
|
|
|
28 |
|
|
/* Delete all router instances */ |
29 |
|
|
int ppc32_vmtest_delete_all_instances(void); |
30 |
|
|
|
31 |
|
|
/* Initialize a test instance */ |
32 |
|
|
int ppc32_vmtest_init_instance(vm_instance_t *vm); |
33 |
|
|
|
34 |
|
|
/* Stop a test instance */ |
35 |
|
|
int ppc32_vmtest_stop_instance(vm_instance_t *vm); |
36 |
|
|
|
37 |
|
|
#endif |