include/linux/firmware/samsung/exynos-acpm-protocol.h
Source file repositories/reference/linux-study-clean/include/linux/firmware/samsung/exynos-acpm-protocol.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/firmware/samsung/exynos-acpm-protocol.h- Extension
.h- Size
- 2469 bytes
- Lines
- 75
- 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/types.h
Detected Declarations
struct acpm_handlestruct device_nodestruct acpm_dvfs_opsstruct acpm_pmic_opsstruct acpm_tmu_opsstruct acpm_opsstruct acpm_handlestruct device
Annotated Snippet
struct acpm_dvfs_ops {
int (*set_rate)(struct acpm_handle *handle, unsigned int acpm_chan_id,
unsigned int clk_id, unsigned long rate);
unsigned long (*get_rate)(struct acpm_handle *handle,
unsigned int acpm_chan_id,
unsigned int clk_id);
};
struct acpm_pmic_ops {
int (*read_reg)(struct acpm_handle *handle, unsigned int acpm_chan_id,
u8 type, u8 reg, u8 chan, u8 *buf);
int (*bulk_read)(struct acpm_handle *handle, unsigned int acpm_chan_id,
u8 type, u8 reg, u8 chan, u8 count, u8 *buf);
int (*write_reg)(struct acpm_handle *handle, unsigned int acpm_chan_id,
u8 type, u8 reg, u8 chan, u8 value);
int (*bulk_write)(struct acpm_handle *handle, unsigned int acpm_chan_id,
u8 type, u8 reg, u8 chan, u8 count, const u8 *buf);
int (*update_reg)(struct acpm_handle *handle, unsigned int acpm_chan_id,
u8 type, u8 reg, u8 chan, u8 value, u8 mask);
};
struct acpm_tmu_ops {
int (*init)(struct acpm_handle *handle, unsigned int acpm_chan_id);
int (*read_temp)(struct acpm_handle *handle, unsigned int acpm_chan_id,
u8 tz, int *temp);
int (*set_threshold)(struct acpm_handle *handle,
unsigned int acpm_chan_id, u8 tz,
const u8 temperature[8], size_t tlen);
int (*set_interrupt_enable)(struct acpm_handle *handle,
unsigned int acpm_chan_id, u8 tz, u8 inten);
int (*tz_control)(struct acpm_handle *handle, unsigned int acpm_chan_id,
u8 tz, bool enable);
int (*clear_tz_irq)(struct acpm_handle *handle,
unsigned int acpm_chan_id, u8 tz);
int (*suspend)(struct acpm_handle *handle, unsigned int acpm_chan_id);
int (*resume)(struct acpm_handle *handle, unsigned int acpm_chan_id);
};
struct acpm_ops {
struct acpm_dvfs_ops dvfs;
struct acpm_pmic_ops pmic;
struct acpm_tmu_ops tmu;
};
/**
* struct acpm_handle - Reference to an initialized protocol instance
* @ops: pointer to the constant ACPM protocol operations.
*/
struct acpm_handle {
const struct acpm_ops *ops;
};
struct device;
struct acpm_handle *devm_acpm_get_by_node(struct device *dev,
struct device_node *np);
struct acpm_handle *devm_acpm_get_by_phandle(struct device *dev);
#endif /* __EXYNOS_ACPM_PROTOCOL_H */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct acpm_handle`, `struct device_node`, `struct acpm_dvfs_ops`, `struct acpm_pmic_ops`, `struct acpm_tmu_ops`, `struct acpm_ops`, `struct acpm_handle`, `struct device`.
- 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.