drivers/media/pci/cobalt/m00479_clk_loss_detector_memmap_package.h

Source file repositories/reference/linux-study-clean/drivers/media/pci/cobalt/m00479_clk_loss_detector_memmap_package.h

File Facts

System
Linux kernel
Corpus path
drivers/media/pci/cobalt/m00479_clk_loss_detector_memmap_package.h
Extension
.h
Size
1764 bytes
Lines
42
Domain
Driver Families
Bucket
drivers/media
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 m00479_clk_loss_detector_regmap {
	/* Control module */
	uint32_t ctrl;             /* Reg 0x0000, Default=0x0 */
	uint32_t status;           /* Reg 0x0004 */
	/* Number of ref clk cycles before checking the clock under test */
	uint32_t ref_clk_cnt_val;  /* Reg 0x0008, Default=0xc4 */
	/* Number of test clk cycles required in the ref_clk_cnt_val period
	 * to ensure that the test clock is performing as expected */
	uint32_t test_clk_cnt_val; /* Reg 0x000c, Default=0xa */
};

#define M00479_CLK_LOSS_DETECTOR_REG_CTRL_OFST 0
#define M00479_CLK_LOSS_DETECTOR_REG_STATUS_OFST 4
#define M00479_CLK_LOSS_DETECTOR_REG_REF_CLK_CNT_VAL_OFST 8
#define M00479_CLK_LOSS_DETECTOR_REG_TEST_CLK_CNT_VAL_OFST 12

/*******************************************************************
 * Bit Mask for register
 * M00479_CLK_LOSS_DETECTOR_MEMMAP_PACKAGE_VHD_BITMAP
 *******************************************************************/
/* ctrl [0:0] */
#define M00479_CTRL_BITMAP_ENABLE_OFST          (0)
#define M00479_CTRL_BITMAP_ENABLE_MSK           (0x1 << M00479_CTRL_BITMAP_ENABLE_OFST)
/* status [0:0] */
#define M00479_STATUS_BITMAP_CLOCK_MISSING_OFST (0)
#define M00479_STATUS_BITMAP_CLOCK_MISSING_MSK  (0x1 << M00479_STATUS_BITMAP_CLOCK_MISSING_OFST)

#endif /*M00479_CLK_LOSS_DETECTOR_MEMMAP_PACKAGE_H*/

Annotation

Implementation Notes