Module driver

Source
Expand description

Generic support for drivers of different buses (e.g., PCI, Platform, Amba, etc.).

Each bus / subsystem is expected to implement RegistrationOps, which allows drivers to register using the Registration class.

Structs§

Registration
A Registration is a generic type that represents the registration of some driver type (e.g. bindings::pci_driver). Therefore a Registration must be initialized with a type that implements the RegistrationOps trait, such that the generic T::register and T::unregister calls result in the subsystem specific registration calls.

Traits§

Adapter
The bus independent adapter to match a drivers and a devices.
RegistrationOps
The RegistrationOps trait serves as generic interface for subsystems (e.g., PCI, Platform, Amba, etc.) to provide the corresponding subsystem specific implementation to register / unregister a driver of the particular type (RegType).