brintos

brintos / linux-shallow public Read only

0
0
Text · 759 B · 6b95f1e Raw
28 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * ChromeOS Embedded Controller core interface.4 *5 * Copyright (C) 2020 Google LLC6 */7 8#ifndef __CROS_EC_H9#define __CROS_EC_H10 11#include <linux/interrupt.h>12 13struct cros_ec_device;14 15int cros_ec_register(struct cros_ec_device *ec_dev);16void cros_ec_unregister(struct cros_ec_device *ec_dev);17 18int cros_ec_suspend(struct cros_ec_device *ec_dev);19int cros_ec_suspend_late(struct cros_ec_device *ec_dev);20int cros_ec_suspend_prepare(struct cros_ec_device *ec_dev);21int cros_ec_resume(struct cros_ec_device *ec_dev);22int cros_ec_resume_early(struct cros_ec_device *ec_dev);23void cros_ec_resume_complete(struct cros_ec_device *ec_dev);24 25irqreturn_t cros_ec_irq_thread(int irq, void *data);26 27#endif /* __CROS_EC_H */28