include/linux/rtc/m48t59.h

Source file repositories/reference/linux-study-clean/include/linux/rtc/m48t59.h

File Facts

System
Linux kernel
Corpus path
include/linux/rtc/m48t59.h
Extension
.h
Size
1826 bytes
Lines
65
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct m48t59_plat_data {
	/* The method to access M48T59 registers */
	void (*write_byte)(struct device *dev, u32 ofs, u8 val);
	unsigned char (*read_byte)(struct device *dev, u32 ofs);

	int type; /* RTC model */

	/* ioaddr mapped externally */
	void __iomem *ioaddr;
	/* offset to RTC registers, automatically set according to the type */
	unsigned int offset;

	/* YY digits (in RTC) are offset, i.e. year is 1900 + yy_offset + YY */
	int yy_offset;
};

#endif /* _LINUX_RTC_M48T59_H_ */

Annotation

Implementation Notes