include/linux/mfd/samsung/irq.h

Source file repositories/reference/linux-study-clean/include/linux/mfd/samsung/irq.h

File Facts

System
Linux kernel
Corpus path
include/linux/mfd/samsung/irq.h
Extension
.h
Size
13828 bytes
Lines
522
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

#ifndef __LINUX_MFD_SEC_IRQ_H
#define __LINUX_MFD_SEC_IRQ_H

enum s2mpa01_irq {
	S2MPA01_IRQ_PWRONF,
	S2MPA01_IRQ_PWRONR,
	S2MPA01_IRQ_JIGONBF,
	S2MPA01_IRQ_JIGONBR,
	S2MPA01_IRQ_ACOKBF,
	S2MPA01_IRQ_ACOKBR,
	S2MPA01_IRQ_PWRON1S,
	S2MPA01_IRQ_MRB,

	S2MPA01_IRQ_RTC60S,
	S2MPA01_IRQ_RTCA1,
	S2MPA01_IRQ_RTCA0,
	S2MPA01_IRQ_SMPL,
	S2MPA01_IRQ_RTC1S,
	S2MPA01_IRQ_WTSR,

	S2MPA01_IRQ_INT120C,
	S2MPA01_IRQ_INT140C,
	S2MPA01_IRQ_LDO3_TSD,
	S2MPA01_IRQ_B16_TSD,
	S2MPA01_IRQ_B24_TSD,
	S2MPA01_IRQ_B35_TSD,

	S2MPA01_IRQ_NR,
};

#define S2MPA01_IRQ_PWRONF_MASK		(1 << 0)
#define S2MPA01_IRQ_PWRONR_MASK		(1 << 1)
#define S2MPA01_IRQ_JIGONBF_MASK	(1 << 2)
#define S2MPA01_IRQ_JIGONBR_MASK	(1 << 3)
#define S2MPA01_IRQ_ACOKBF_MASK		(1 << 4)
#define S2MPA01_IRQ_ACOKBR_MASK		(1 << 5)
#define S2MPA01_IRQ_PWRON1S_MASK	(1 << 6)
#define S2MPA01_IRQ_MRB_MASK		(1 << 7)

#define S2MPA01_IRQ_RTC60S_MASK		(1 << 0)
#define S2MPA01_IRQ_RTCA1_MASK		(1 << 1)
#define S2MPA01_IRQ_RTCA0_MASK		(1 << 2)
#define S2MPA01_IRQ_SMPL_MASK		(1 << 3)
#define S2MPA01_IRQ_RTC1S_MASK		(1 << 4)
#define S2MPA01_IRQ_WTSR_MASK		(1 << 5)

#define S2MPA01_IRQ_INT120C_MASK	(1 << 0)
#define S2MPA01_IRQ_INT140C_MASK	(1 << 1)
#define S2MPA01_IRQ_LDO3_TSD_MASK	(1 << 2)
#define S2MPA01_IRQ_B16_TSD_MASK	(1 << 3)
#define S2MPA01_IRQ_B24_TSD_MASK	(1 << 4)
#define S2MPA01_IRQ_B35_TSD_MASK	(1 << 5)

enum s2mpg10_common_irq {
	/* Top-level (common) block */
	S2MPG10_COMMON_IRQ_PMIC,
	S2MPG10_COMMON_IRQ_UNUSED,
};

enum s2mpg10_irq {
	/* PMIC */
	S2MPG10_IRQ_PWRONF,
	S2MPG10_IRQ_PWRONR,
	S2MPG10_IRQ_JIGONBF,
	S2MPG10_IRQ_JIGONBR,
	S2MPG10_IRQ_ACOKBF,
	S2MPG10_IRQ_ACOKBR,
	S2MPG10_IRQ_PWRON1S,
	S2MPG10_IRQ_MRB,
#define S2MPG10_IRQ_PWRONF_MASK		BIT(0)
#define S2MPG10_IRQ_PWRONR_MASK		BIT(1)
#define S2MPG10_IRQ_JIGONBF_MASK	BIT(2)
#define S2MPG10_IRQ_JIGONBR_MASK	BIT(3)
#define S2MPG10_IRQ_ACOKBF_MASK		BIT(4)
#define S2MPG10_IRQ_ACOKBR_MASK		BIT(5)
#define S2MPG10_IRQ_PWRON1S_MASK	BIT(6)
#define S2MPG10_IRQ_MRB_MASK		BIT(7)

	S2MPG10_IRQ_RTC60S,
	S2MPG10_IRQ_RTCA1,
	S2MPG10_IRQ_RTCA0,
	S2MPG10_IRQ_RTC1S,
	S2MPG10_IRQ_WTSR_COLDRST,
	S2MPG10_IRQ_WTSR,
	S2MPG10_IRQ_WRST,
	S2MPG10_IRQ_SMPL,
#define S2MPG10_IRQ_RTC60S_MASK		BIT(0)
#define S2MPG10_IRQ_RTCA1_MASK		BIT(1)
#define S2MPG10_IRQ_RTCA0_MASK		BIT(2)
#define S2MPG10_IRQ_RTC1S_MASK		BIT(3)

Annotation

Implementation Notes