| 1 |
|
| 2 |
|
| 3 |
#include <console/console.h> |
| 4 |
#include <device/device.h> |
| 5 |
#include <option.h> |
| 6 |
#include <types.h> |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
static void hide_ast2400(void) |
| 18 |
{ |
| 19 |
struct device *dev = pcidev_on_root(0x1c, 0); |
| 20 |
if (!dev) |
| 21 |
return; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
dev->enabled = 0; |
| 28 |
printk(BIOS_INFO, "The AST2400 is now set to be hidden.\n"); |
| 29 |
} |
| 30 |
|
| 31 |
static void mainboard_enable(struct device *dev) |
| 32 |
{ |
| 33 |
if (get_uint_option("hide_ast2400", false)) |
| 34 |
hide_ast2400(); |
| 35 |
} |
| 36 |
|
| 37 |
struct chip_operations mainboard_ops = { |
| 38 |
.name = "X10SLM+-F", |
| 39 |
.enable_dev = mainboard_enable, |
| 40 |
}; |