1 #include <console/console.h>
2 #include <device/device.h>
3 #include <device/pci.h>
4 #include <device/pci_ids.h>
5 #include <device/pci_ops.h>
10 void cpufixup(unsigned long mem)
12 printk_spew("Welcome to LinuxBIOS CPU fixup. done.\n");
15 static int mainboard_scan_bus(device_t root, int maxbus)
18 printk_spew("%s: root %p maxbus %d\n", __FUNCTION__, root, maxbus);
19 retval = pci_scan_bus(root->bus, 0, 0xff, maxbus);
20 printk_spew("DONE %s: return %d\n", __FUNCTION__, maxbus);
24 static struct device_operations mainboard_operations = {
25 .read_resources = root_dev_read_resources,
26 .set_resources = root_dev_set_resources,
27 .enable_resources = enable_childrens_resources,
29 .scan_bus = mainboard_scan_bus,
33 static void enumerate(struct chip *chip)
36 dev_root.ops = &mainboard_operations;
37 chip->dev = &dev_root;
39 for(child = chip->children; child; child = child->next) {
40 child->bus = &dev_root.link[0];
44 struct chip_control mainboard_emulation_qemu_i386_control = {
45 .enumerate = enumerate,
46 .name = "qemu mainboard ",