include/linux/scmi_imx_protocol.h
Source file repositories/reference/linux-study-clean/include/linux/scmi_imx_protocol.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/scmi_imx_protocol.h- Extension
.h- Size
- 3250 bytes
- Lines
- 119
- 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/bitfield.hlinux/device.hlinux/notifier.hlinux/scmi_protocol.hlinux/types.h
Detected Declarations
struct scmi_imx_bbm_proto_opsstruct scmi_imx_bbm_notif_reportstruct scmi_imx_misc_ctrl_notify_reportstruct scmi_imx_misc_reset_reasonstruct scmi_imx_misc_proto_opsstruct scmi_imx_lmm_infostruct scmi_imx_lmm_proto_opsstruct scmi_imx_cpu_proto_opsenum scmi_nxp_notification_eventsenum scmi_imx_lmm_state
Annotated Snippet
struct scmi_imx_bbm_proto_ops {
int (*rtc_time_set)(const struct scmi_protocol_handle *ph, u32 id,
uint64_t sec);
int (*rtc_time_get)(const struct scmi_protocol_handle *ph, u32 id,
u64 *val);
int (*rtc_alarm_set)(const struct scmi_protocol_handle *ph, u32 id,
bool enable, u64 sec);
int (*button_get)(const struct scmi_protocol_handle *ph, u32 *state);
};
enum scmi_nxp_notification_events {
SCMI_EVENT_IMX_BBM_RTC = 0x0,
SCMI_EVENT_IMX_BBM_BUTTON = 0x1,
SCMI_EVENT_IMX_MISC_CONTROL = 0x0,
};
struct scmi_imx_bbm_notif_report {
bool is_rtc;
bool is_button;
ktime_t timestamp;
unsigned int rtc_id;
unsigned int rtc_evt;
};
struct scmi_imx_misc_ctrl_notify_report {
ktime_t timestamp;
unsigned int ctrl_id;
unsigned int flags;
};
#define MISC_EXT_INFO_LEN_MAX 4
struct scmi_imx_misc_reset_reason {
bool valid:1;
bool orig_valid:1;
bool err_valid:1;
u32 reason;
u32 origin;
u32 errid;
};
struct scmi_imx_misc_proto_ops {
int (*misc_ctrl_set)(const struct scmi_protocol_handle *ph, u32 id,
u32 num, u32 *val);
int (*misc_ctrl_get)(const struct scmi_protocol_handle *ph, u32 id,
u32 *num, u32 *val);
int (*misc_ctrl_req_notify)(const struct scmi_protocol_handle *ph,
u32 ctrl_id, u32 evt_id, u32 flags);
int (*misc_syslog)(const struct scmi_protocol_handle *ph, u16 *size,
void *array);
int (*misc_reset_reason)(const struct scmi_protocol_handle *ph,
bool system, struct scmi_imx_misc_reset_reason *boot_r,
struct scmi_imx_misc_reset_reason *shut_r, u32 *extinfo);
};
/* See LMM_ATTRIBUTES in imx95.rst */
#define LMM_ID_DISCOVER 0xFFFFFFFFU
#define LMM_MAX_NAME 16
enum scmi_imx_lmm_state {
LMM_STATE_LM_OFF,
LMM_STATE_LM_ON,
LMM_STATE_LM_SUSPEND,
LMM_STATE_LM_POWERED,
};
struct scmi_imx_lmm_info {
u32 lmid;
enum scmi_imx_lmm_state state;
u32 errstatus;
u8 name[LMM_MAX_NAME];
};
struct scmi_imx_lmm_proto_ops {
int (*lmm_power_boot)(const struct scmi_protocol_handle *ph, u32 lmid,
bool boot);
int (*lmm_info)(const struct scmi_protocol_handle *ph, u32 lmid,
struct scmi_imx_lmm_info *info);
int (*lmm_reset_vector_set)(const struct scmi_protocol_handle *ph,
u32 lmid, u32 cpuid, u32 flags, u64 vector);
int (*lmm_shutdown)(const struct scmi_protocol_handle *ph, u32 lmid,
u32 flags);
};
struct scmi_imx_cpu_proto_ops {
int (*cpu_reset_vector_set)(const struct scmi_protocol_handle *ph,
u32 cpuid, u64 vector, bool start,
bool boot, bool resume);
int (*cpu_start)(const struct scmi_protocol_handle *ph, u32 cpuid,
bool start);
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/device.h`, `linux/notifier.h`, `linux/scmi_protocol.h`, `linux/types.h`.
- Detected declarations: `struct scmi_imx_bbm_proto_ops`, `struct scmi_imx_bbm_notif_report`, `struct scmi_imx_misc_ctrl_notify_report`, `struct scmi_imx_misc_reset_reason`, `struct scmi_imx_misc_proto_ops`, `struct scmi_imx_lmm_info`, `struct scmi_imx_lmm_proto_ops`, `struct scmi_imx_cpu_proto_ops`, `enum scmi_nxp_notification_events`, `enum scmi_imx_lmm_state`.
- 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.