AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
devices.c File Reference

The virt machine's devices that no bus finds (see dev/platform.h): where QEMU puts them (hw/arm/virt.c), as its devicetree also says. More...

#include <core/system.h>
#include <dev/platform.h>
#include <platform/virt.h>

Go to the source code of this file.

Variables

const struct platform_device platform_devices []

Detailed Description

The virt machine's devices that no bus finds (see dev/platform.h): where QEMU puts them (hw/arm/virt.c), as its devicetree also says.

Definition in file devices.c.

Variable Documentation

◆ platform_devices

const struct platform_device platform_devices[]
Initial value:
= {
{
.name = "pl011",
.io = {.type = IOADDR_MMIO8, .addr = VIRT_UART}, .size = 0x1000,
.nirq = 1, .irq = {VIRT_UART_IRQ},
},
{0},
}
#define IOADDR_MMIO8
Definition io.h:90
#define VIRT_UART
Definition virt.h:15
#define VIRT_UART_IRQ
Definition virt.h:24

Definition at line 11 of file devices.c.

Referenced by platform_device_get().