cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / emulation / qemu-riscv / mainboard.c
blobf0f07404843f1c89c9c6028c1fb64cedb22a763c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <device/device.h>
5 #include <symbols.h>
6 #include <ramdetect.h>
8 static void mainboard_enable(struct device *dev)
10 size_t dram_mb_detected;
12 if (!dev) {
13 die("No dev0; die\n");
16 dram_mb_detected = probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB);
17 ram_range(dev, 0, (uintptr_t)_dram, dram_mb_detected * MiB);
20 struct chip_operations mainboard_ops = {
21 .enable_dev = mainboard_enable,