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 aRegistration
must be initialized with a type that implements theRegistrationOps
trait, such that the genericT::register
andT::unregister
calls result in the subsystem specific registration calls.
Traits§
- Adapter
- The bus independent adapter to match a drivers and a devices.
- Registration
Ops - 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
).