Alex Kolovsky

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"

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.