Interface for reset controller drivers.
More...
Interface for reset controller drivers.
A driver embeds a struct pbl_reset_controller in its instance, sets it up with PBL_RESET_CONTROLLER_STATE_DEFINE() and PBL_RESET_CONTROLLER_INIT(), and implements the struct pbl_reset_controller_ops the class calls.
◆ pbl_reset_controller
| struct pbl_reset_controller |
◆ PBL_RESET_CONTROLLER_INIT
| #define PBL_RESET_CONTROLLER_INIT |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_init, |
|
|
|
_parent, |
|
|
|
_ops, |
|
|
|
_num_resets |
|
) |
| |
Value: { \
.ops = (_ops), \
.num_resets = (_num_resets), \
}
#define PBL_DEVICE_INIT_CLASS(sym, _name, _init, _parent, _cls)
Initializer for the struct pbl_device of device instance sym, in class _cls.
Definition device.h:153
Initializer for the struct pbl_reset_controller of controller sym.
- Parameters
-
| sym | Symbol of the controller instance, with its state defined by PBL_RESET_CONTROLLER_STATE_DEFINE(). |
| _name | Name. |
| _init | Device init function, or NULL. |
| _parent | Parent device, or NULL. |
| _ops | Driver operations. |
| _num_resets | Number of reset lines. |
◆ PBL_RESET_CONTROLLER_STATE_DEFINE
Define the class state of reset controller sym, for the driver's define macro.
- Parameters
-
| sym | Symbol of the controller instance. |