coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
qemu.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #include <cpu/cpu.h>
4 #include <device/device.h>
5 
6 static void qemu_cpu_init(struct device *dev)
7 {
8 }
9 
10 static struct device_operations cpu_dev_ops = {
12 };
13 
14 static const struct cpu_device_id cpu_table[] = {
15  { X86_VENDOR_ANY, 0 },
16  { 0, 0 },
17 };
18 
19 static const struct cpu_driver driver __cpu_driver = {
20  .ops = &cpu_dev_ops,
21  .id_table = cpu_table,
22 };
23 
25  CHIP_NAME("QEMU x86 CPU")
26 };
#define X86_VENDOR_ANY
Definition: cpu.h:149
#define CHIP_NAME(X)
Definition: device.h:32
static const struct cpu_driver driver __cpu_driver
Definition: qemu.c:19
struct chip_operations cpu_qemu_x86_ops
Definition: qemu.c:24
static void qemu_cpu_init(struct device *dev)
Definition: qemu.c:6
static const struct cpu_device_id cpu_table[]
Definition: qemu.c:14
static struct device_operations cpu_dev_ops
Definition: qemu.c:10
Definition: cpu.h:13
struct device_operations * ops
Definition: cpu.h:14
void(* init)(struct device *dev)
Definition: device.h:42
Definition: device.h:107