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.

Dependency Surface

Detected Declarations

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

Implementation Notes