28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: machine.h,v 1.118 2006/06/22 13:22:41 debug Exp $ |
* $Id: machine.h,v 1.120 2006/06/24 19:52:28 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include <sys/types.h> |
#include <sys/types.h> |
509 |
#define MACHINE_DEFAULT_CPU(x) void machine_default_cpu_ ## x(struct machine *machine) |
#define MACHINE_DEFAULT_CPU(x) void machine_default_cpu_ ## x(struct machine *machine) |
510 |
#define MACHINE_DEFAULT_RAM(x) void machine_default_ram_ ## x(struct machine *machine) |
#define MACHINE_DEFAULT_RAM(x) void machine_default_ram_ ## x(struct machine *machine) |
511 |
#define MACHINE_REGISTER(x) void machine_register_ ## x(void) |
#define MACHINE_REGISTER(x) void machine_register_ ## x(void) |
512 |
#define MR_DEFAULT(x,name,arch,type,n,m) struct machine_entry \ |
#define MR_DEFAULT(x,name,arch,type) struct machine_entry \ |
513 |
*me = machine_entry_new(name,arch,type,n,m); \ |
*me = machine_entry_new(name,arch,type); \ |
514 |
me->setup = machine_setup_ ## x; \ |
me->setup = machine_setup_ ## x; \ |
515 |
me->set_default_cpu = machine_default_cpu_ ## x; |
me->set_default_cpu = machine_default_cpu_ ## x; \ |
516 |
|
machine_entry_register(me, arch); |
517 |
void automachine_init(void); |
void automachine_init(void); |
518 |
|
|
519 |
|
|
551 |
void machine_dumpinfo(struct machine *); |
void machine_dumpinfo(struct machine *); |
552 |
void machine_bus_register(struct machine *, char *busname, |
void machine_bus_register(struct machine *, char *busname, |
553 |
void (*debug_dump)(void *), void *extra); |
void (*debug_dump)(void *), void *extra); |
554 |
|
int machine_run(struct machine *machine); |
555 |
void machine_list_available_types_and_cpus(void); |
void machine_list_available_types_and_cpus(void); |
556 |
struct machine_entry *machine_entry_new(const char *name, |
struct machine_entry *machine_entry_new(const char *name, |
557 |
int arch, int oldstyle_type, int n_aliases, int n_subtypes); |
int arch, int oldstyle_type); |
558 |
struct machine_entry_subtype *machine_entry_subtype_new( |
void machine_entry_add_alias(struct machine_entry *me, const char *name); |
559 |
const char *name, int oldstyle_type, int n_aliases); |
void machine_entry_add_subtype(struct machine_entry *me, const char *name, |
560 |
void machine_entry_add(struct machine_entry *me, int arch); |
int oldstyle_subtype, ...); |
561 |
|
void machine_entry_register(struct machine_entry *me, int arch); |
562 |
void machine_init(void); |
void machine_init(void); |
563 |
|
|
564 |
|
|