drivers/platform/chrome/cros_ec_ishtp.c
Source file repositories/reference/linux-study-clean/drivers/platform/chrome/cros_ec_ishtp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/chrome/cros_ec_ishtp.c- Extension
.c- Size
- 20582 bytes
- Lines
- 752
- Domain
- Driver Families
- Bucket
- drivers/platform
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/module.hlinux/pci.hlinux/platform_data/cros_ec_commands.hlinux/platform_data/cros_ec_proto.hlinux/intel-ish-client-if.hcros_ec.h
Detected Declarations
struct headerstruct cros_ish_out_msgstruct cros_ish_in_msgstruct response_infostruct ishtp_cl_dataenum cros_ec_ish_channelfunction ish_evt_handlerfunction ish_sendfunction process_recvfunction ish_event_cbfunction cros_ish_initfunction cros_ish_deinitfunction prepare_cros_ec_rxfunction cros_ec_pkt_xfer_ishfunction cros_ec_dev_initfunction reset_handlerfunction cros_ec_ishtp_probefunction cros_ec_ishtp_removefunction cros_ec_ishtp_resetfunction cros_ec_ishtp_suspendfunction cros_ec_ishtp_resumefunction cros_ec_ishtp_mod_initfunction cros_ec_ishtp_mod_exitmodule init cros_ec_ishtp_mod_init
Annotated Snippet
module_init(cros_ec_ishtp_mod_init);
module_exit(cros_ec_ishtp_mod_exit);
MODULE_DESCRIPTION("ChromeOS EC ISHTP Client Driver");
MODULE_AUTHOR("Rushikesh S Kadam <rushikesh.s.kadam@intel.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/module.h`, `linux/pci.h`, `linux/platform_data/cros_ec_commands.h`, `linux/platform_data/cros_ec_proto.h`, `linux/intel-ish-client-if.h`, `cros_ec.h`.
- Detected declarations: `struct header`, `struct cros_ish_out_msg`, `struct cros_ish_in_msg`, `struct response_info`, `struct ishtp_cl_data`, `enum cros_ec_ish_channel`, `function ish_evt_handler`, `function ish_send`, `function process_recv`, `function ish_event_cb`.
- Atlas domain: Driver Families / drivers/platform.
- Implementation status: integration 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.