drivers/clk/visconti/clkc.h
Source file repositories/reference/linux-study-clean/drivers/clk/visconti/clkc.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/visconti/clkc.h- Extension
.h- Size
- 1701 bytes
- Lines
- 80
- Domain
- Driver Families
- Bucket
- drivers/clk
- 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/mfd/syscon.hlinux/clk-provider.hlinux/of.hlinux/of_address.hlinux/delay.hlinux/regmap.hlinux/slab.hlinux/string.hlinux/io.hlinux/spinlock.hreset.h
Detected Declarations
struct visconti_clk_providerstruct visconti_clk_gate_tablestruct visconti_fixed_clkstruct visconti_clk_gate
Annotated Snippet
struct visconti_clk_provider {
struct device *dev;
struct regmap *regmap;
struct clk_hw_onecell_data clk_data;
};
struct visconti_clk_gate_table {
unsigned int id;
const char *name;
const struct clk_parent_data *parent_data;
u8 num_parents;
u8 flags;
u32 ckon_offset;
u32 ckoff_offset;
u8 ck_idx;
unsigned int div;
u8 rs_id;
};
struct visconti_fixed_clk {
unsigned int id;
const char *name;
const char *parent;
unsigned long flag;
unsigned int mult;
unsigned int div;
};
struct visconti_clk_gate {
struct clk_hw hw;
struct regmap *regmap;
u32 ckon_offset;
u32 ckoff_offset;
u8 ck_idx;
u8 flags;
u32 rson_offset;
u32 rsoff_offset;
u8 rs_idx;
spinlock_t *lock;
};
struct visconti_clk_provider *visconti_init_clk(struct device *dev,
struct regmap *regmap,
unsigned long nr_clks);
int visconti_clk_register_gates(struct visconti_clk_provider *data,
const struct visconti_clk_gate_table *clks,
int num_gate,
const struct visconti_reset_data *reset,
spinlock_t *lock);
#define NO_RESET 0xFF
#endif /* _VISCONTI_CLKC_H_ */
Annotation
- Immediate include surface: `linux/mfd/syscon.h`, `linux/clk-provider.h`, `linux/of.h`, `linux/of_address.h`, `linux/delay.h`, `linux/regmap.h`, `linux/slab.h`, `linux/string.h`.
- Detected declarations: `struct visconti_clk_provider`, `struct visconti_clk_gate_table`, `struct visconti_fixed_clk`, `struct visconti_clk_gate`.
- Atlas domain: Driver Families / drivers/clk.
- 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.