York Yang | 9c6c791 | 2016-03-09 11:19:51 -0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2007-2009 coresystems GmbH |
| 5 | * Copyright (C) 2011 Google Inc. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #include <types.h> |
| 18 | #include <string.h> |
| 19 | #include <device/device.h> |
York Yang | 9c6c791 | 2016-03-09 11:19:51 -0800 | [diff] [blame] | 20 | #include <device/pci_def.h> |
| 21 | #include <device/pci_ops.h> |
Martin Roth | 356b519 | 2017-06-24 21:53:37 -0600 | [diff] [blame] | 22 | #if IS_ENABLED(CONFIG_VGA_ROM_RUN) |
York Yang | 9c6c791 | 2016-03-09 11:19:51 -0800 | [diff] [blame] | 23 | #include <x86emu/x86emu.h> |
| 24 | #endif |
York Yang | 9c6c791 | 2016-03-09 11:19:51 -0800 | [diff] [blame] | 25 | #include <arch/interrupt.h> |
| 26 | #include <boot/coreboot_tables.h> |
| 27 | |
| 28 | /* |
| 29 | * mainboard_enable is executed as first thing after enumerate_buses(). |
| 30 | * This is the earliest point to add customization. |
| 31 | */ |
Elyes HAOUAS | 4182c80 | 2018-05-04 20:46:54 +0200 | [diff] [blame] | 32 | static void mainboard_enable(struct device *dev) |
York Yang | 9c6c791 | 2016-03-09 11:19:51 -0800 | [diff] [blame] | 33 | { |
| 34 | |
| 35 | } |
| 36 | |
| 37 | struct chip_operations mainboard_ops = { |
| 38 | .enable_dev = mainboard_enable, |
| 39 | }; |