- First stab at running linuxbios without the old static device tree.
[coreboot.git] / src / mainboard / newisys / khepri / 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 "../../../northbridge/amd/amdk8/northbridge.h"
9 #include "chip.h"
10
11
12 unsigned long initial_apicid[CONFIG_MAX_CPUS] =
13 {
14         0, 1,
15 };
16
17 static struct device_operations mainboard_operations = {
18         .read_resources   = root_dev_read_resources,
19         .set_resources    = root_dev_set_resources,
20         .enable_resources = enable_childrens_resources,
21         .init             = 0,
22         .scan_bus         = amdk8_scan_root_bus,
23         .enable           = 0,
24 };
25
26 static void enumerate(struct chip *chip)
27 {
28         struct chip *child;
29         dev_root.ops = &mainboard_operations;
30         chip->dev = &dev_root;
31         chip->bus = 0;
32         for(child = chip->children; child; child = child->next) {
33                 child->bus = &dev_root.link[0];
34         }
35 }
36 struct chip_control mainboard_newisys_khepri_control = {
37         .enumerate = enumerate, 
38         .name      = "Newisys Khepri mainboard ",
39 };
40