drivers/reset/spacemit/reset-spacemit-common.h
Source file repositories/reference/linux-study-clean/drivers/reset/spacemit/reset-spacemit-common.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/reset/spacemit/reset-spacemit-common.h- Extension
.h- Size
- 973 bytes
- Lines
- 43
- Domain
- Driver Families
- Bucket
- drivers/reset
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/auxiliary_bus.hlinux/regmap.hlinux/reset-controller.hlinux/types.h
Detected Declarations
struct ccu_reset_datastruct ccu_reset_controller_datastruct ccu_reset_controller
Annotated Snippet
struct ccu_reset_data {
u32 offset;
u32 assert_mask;
u32 deassert_mask;
};
struct ccu_reset_controller_data {
const struct ccu_reset_data *reset_data; /* array */
size_t count;
};
struct ccu_reset_controller {
struct reset_controller_dev rcdev;
const struct ccu_reset_controller_data *data;
struct regmap *regmap;
};
#define RESET_DATA(_offset, _assert_mask, _deassert_mask) \
{ \
.offset = (_offset), \
.assert_mask = (_assert_mask), \
.deassert_mask = (_deassert_mask), \
}
/* Common probe function */
int spacemit_reset_probe(struct auxiliary_device *adev,
const struct auxiliary_device_id *id);
#endif /* _RESET_SPACEMIT_COMMON_H_ */
Annotation
- Immediate include surface: `linux/auxiliary_bus.h`, `linux/regmap.h`, `linux/reset-controller.h`, `linux/types.h`.
- Detected declarations: `struct ccu_reset_data`, `struct ccu_reset_controller_data`, `struct ccu_reset_controller`.
- Atlas domain: Driver Families / drivers/reset.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.