#include <stdio.h>#include <stdlib.h>#include <string.h>#include "device.h"#include "machine.h"#include "memory.h"#include "misc.h"Go to the source code of this file.
Functions | |
| int | device_register (const char *name, int(*initf)(struct devinit *)) |
| int | pci_register (const char *name, void(*initf)(struct machine *, struct memory *, struct pci_device *)) |
| struct device_entry * | device_lookup (char *name) |
| int | device_unregister (char *name) |
| void * | device_add (struct machine *machine, const char *name_and_params) |
| void | device_dumplist (void) |
| void | device_set_exit_on_error (int exit_on_error) |
| void | device_init (void) |
Variables | |
| void(*)(struct machine *machine, struct memory *mem, struct pci_device *pd) | pci_lookup_initf (const char *name) |
| void* device_add | ( | struct machine * | machine, |
| const char * | name_and_params | ||
| ) |
Definition at line 252 of file device.cc.
References devinit::addr_mult, machine::bootstrap_cpu, CHECK_ALLOCATION, device_lookup(), fatal(), devinit::in_use, devinit::interrupt_path, devinit::len, devinit::machine, devinit::name, machine::path, and strlen().
Referenced by add_cmmu_for_cpu(), bus_isa_init(), dev_crime_init(), dev_vr41xx_init(), DEVINIT(), emul_machine_setup(), MACHINE_SETUP(), and PCIINIT().
| struct device_entry* device_lookup | ( | char * | name | ) |
Definition at line 162 of file device.cc.
References device_entry::name.
Referenced by device_add(), and device_unregister().
| int device_register | ( | const char * | name, |
| int(*)(struct devinit *) | initf | ||
| ) |
| int device_unregister | ( | char * | name | ) |
Definition at line 210 of file device.cc.
References device_lookup(), fatal(), and device_entry::name.
| int pci_register | ( | const char * | name, |
| void(*)(struct machine *, struct memory *, struct pci_device *) | initf | ||
| ) |
Definition at line 114 of file device.cc.
References CHECK_ALLOCATION.
Referenced by autodev_init().
1.8.17