drivers/platform/chrome/cros_ec.h

Source file repositories/reference/linux-study-clean/drivers/platform/chrome/cros_ec.h

File Facts

System
Linux kernel
Corpus path
drivers/platform/chrome/cros_ec.h
Extension
.h
Size
840 bytes
Lines
31
Domain
Driver Families
Bucket
drivers/platform
Inferred role
Driver Families: implementation source
Status
source 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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __CROS_EC_H
#define __CROS_EC_H

#include <linux/interrupt.h>

struct cros_ec_device;
struct device;

struct cros_ec_device *cros_ec_device_alloc(struct device *dev);

int cros_ec_register(struct cros_ec_device *ec_dev);
void cros_ec_unregister(struct cros_ec_device *ec_dev);

int cros_ec_suspend(struct cros_ec_device *ec_dev);
int cros_ec_suspend_late(struct cros_ec_device *ec_dev);
int cros_ec_suspend_prepare(struct cros_ec_device *ec_dev);
int cros_ec_resume(struct cros_ec_device *ec_dev);
int cros_ec_resume_early(struct cros_ec_device *ec_dev);
void cros_ec_resume_complete(struct cros_ec_device *ec_dev);

irqreturn_t cros_ec_irq_thread(int irq, void *data);

#endif /* __CROS_EC_H */

Annotation

Implementation Notes