- Bump the LinuxBIOS major version
[coreboot.git] / src / mainboard / via / epia / mainboard.c
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>
6
7 #include <arch/io.h>
8 #include "chip.h"
9
10 static int
11 mainboard_scan_bus(device_t root, int maxbus) 
12 {
13         int retval;
14         printk_spew("%s: root %p maxbus %d\n", __FUNCTION__, root, maxbus);
15         retval = pci_scan_bus(root->bus, 0, 0xff, maxbus);
16         printk_spew("DONE %s: return %d\n", __FUNCTION__, maxbus);
17         return maxbus;
18 }
19
20 static struct device_operations mainboard_operations = {
21         .read_resources   = root_dev_read_resources,
22         .set_resources    = root_dev_set_resources,
23         .enable_resources = root_dev_enable_resources,
24         .init             = root_dev_init,
25         .scan_bus         = mainboard_scan_bus,
26         .enable           = 0,
27 };
28
29 static void enable_dev(device_t dev)
30 {
31         dev->ops = &mainboard_operations;
32 }
33
34 struct chip_operations mainboard_via_epia_control = {
35         .enable_dev = enable_dev,
36         .name       = "VIA EPIA mainboard ",
37 };
38