arch/mips/include/asm/mach-rc32434/timer.h

Source file repositories/reference/linux-study-clean/arch/mips/include/asm/mach-rc32434/timer.h

File Facts

System
Linux kernel
Corpus path
arch/mips/include/asm/mach-rc32434/timer.h
Extension
.h
Size
2199 bytes
Lines
66
Domain
Architecture Layer
Bucket
arch/mips
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

struct timer_counter {
	u32 count;
	u32 compare;
	u32 ctc;		/*use CTC_ */
};

struct timer {
	struct timer_counter tim[TIMER_COUNT];
	u32 rcount;	/* use RCOUNT_ */
	u32 rcompare;	/* use RCOMPARE_ */
	u32 rtc;	/* use RTC_ */
};

#define RC32434_CTC_EN_BIT		0
#define RC32434_CTC_TO_BIT		1

/* Real time clock registers */
#define RC32434_RTC_MSK(x)		BIT_TO_MASK(x)
#define RC32434_RTC_CE_BIT		0
#define RC32434_RTC_TO_BIT		1
#define RC32434_RTC_RQE_BIT		2

/* Counter registers */
#define RC32434_RCOUNT_BIT		0
#define RC32434_RCOUNT_MSK		0x0000ffff
#define RC32434_RCOMP_BIT		0
#define RC32434_RCOMP_MSK		0x0000ffff

#endif	/* __ASM_RC32434_TIMER_H */

Annotation

Implementation Notes