include/linux/mfd/max14577-private.h
Source file repositories/reference/linux-study-clean/include/linux/mfd/max14577-private.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/mfd/max14577-private.h- Extension
.h- Size
- 15776 bytes
- Lines
- 477
- 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.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/i2c.hlinux/regmap.h
Detected Declarations
struct max14577enum maxim_device_typeenum max14577_regenum max14577_muic_regenum max14577_muic_charger_typeenum max14577_charger_regenum max77836_pmic_regenum max77836_fg_regenum max14577_irqfunction max14577_read_regfunction max14577_bulk_readfunction max14577_write_regfunction max14577_bulk_writefunction max14577_update_reg
Annotated Snippet
struct max14577 {
struct device *dev;
struct i2c_client *i2c; /* Slave addr = 0x4A */
struct i2c_client *i2c_pmic; /* Slave addr = 0x46 */
enum maxim_device_type dev_type;
struct regmap *regmap; /* For MUIC and Charger */
struct regmap *regmap_pmic;
struct regmap_irq_chip_data *irq_data; /* For MUIC and Charger */
struct regmap_irq_chip_data *irq_data_pmic;
int irq;
};
/* MAX14577 shared regmap API function */
static inline int max14577_read_reg(struct regmap *map, u8 reg, u8 *dest)
{
unsigned int val;
int ret;
ret = regmap_read(map, reg, &val);
*dest = val;
return ret;
}
static inline int max14577_bulk_read(struct regmap *map, u8 reg, u8 *buf,
int count)
{
return regmap_bulk_read(map, reg, buf, count);
}
static inline int max14577_write_reg(struct regmap *map, u8 reg, u8 value)
{
return regmap_write(map, reg, value);
}
static inline int max14577_bulk_write(struct regmap *map, u8 reg, u8 *buf,
int count)
{
return regmap_bulk_write(map, reg, buf, count);
}
static inline int max14577_update_reg(struct regmap *map, u8 reg, u8 mask,
u8 val)
{
return regmap_update_bits(map, reg, mask, val);
}
#endif /* __MAX14577_PRIVATE_H__ */
Annotation
- Immediate include surface: `linux/i2c.h`, `linux/regmap.h`.
- Detected declarations: `struct max14577`, `enum maxim_device_type`, `enum max14577_reg`, `enum max14577_muic_reg`, `enum max14577_muic_charger_type`, `enum max14577_charger_reg`, `enum max77836_pmic_reg`, `enum max77836_fg_reg`, `enum max14577_irq`, `function max14577_read_reg`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.