Configuring drivers.toml
This file describes the drivers of the hypervisor.
The table that contains all the driver entries is called mappings:
# drivers.toml
[mappings]
# Configurations...
Driver Configurations
The main configuration elements are driver mappings,
which associate a device compatible string with its corresponding driver path.
The template for each entry is:
compatible_field = "rust::formatted::driver::path"
compatible_field— thecompatiblestring; peripherals with a matching field that require a driver will be emulated using this driver function.rust::formatted::driver::path— the Rust module path to the driver function built into the kernel.
Example:
[mappings]
print_letter_m = "crate::arch::mmio::print_letter_m::handle_access"
This indicates that peripherals with the print_letter_m compatible field and an emulate policy
will be emulated by the crate::arch::mmio::print_letter_m::handle_access function.