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 static int mainboard_scan_bus(device_t root, int maxbus)
13 printk_spew("%s: root %p maxbus %d\n", __FUNCTION__, root, maxbus);
14 retval = pci_scan_bus(root->bus, 0, 0xff, maxbus);
15 printk_spew("DONE %s: return %d\n", __FUNCTION__, maxbus);
19 static struct device_operations mainboard_operations = {
20 .read_resources = root_dev_read_resources,
21 .set_resources = root_dev_set_resources,
22 .enable_resources = root_dev_enable_resources,
23 .init = root_dev_init,
24 .scan_bus = mainboard_scan_bus,
27 static void enable_dev(struct device *dev)
29 dev->ops = &mainboard_operations;
32 struct chip_operations mainboard_emulation_qemu_i386_control = {
33 .enable_dev = enable_dev,
34 .name = "qemu mainboard ",