2020-11-12 15:24:58 +08:00
|
|
|
#ifndef __MMI_RELAY_H__
|
|
|
|
|
#define __MMI_RELAY_H__
|
|
|
|
|
|
|
|
|
|
#include <linux/notifier.h>
|
|
|
|
|
|
2022-12-04 23:12:15 +08:00
|
|
|
/*
|
|
|
|
|
* Notify device event type definitions
|
|
|
|
|
*/
|
|
|
|
|
enum {
|
|
|
|
|
NOTIFY_EVENT_LPD_STATUS = 1,
|
|
|
|
|
NOTIFY_EVENT_TUD_STATUS = 2,
|
2023-07-13 11:41:12 +08:00
|
|
|
NOTIFY_EVENT_CID_STATUS = 3,
|
2022-12-04 23:12:15 +08:00
|
|
|
};
|
|
|
|
|
|
2020-11-12 15:24:58 +08:00
|
|
|
typedef enum notifier_type {
|
|
|
|
|
ATOMIC,
|
|
|
|
|
BLOCKING,
|
|
|
|
|
NUM_TYPES,
|
|
|
|
|
}notifier_t;
|
|
|
|
|
|
|
|
|
|
typedef enum notifier_dev {
|
|
|
|
|
LCD,
|
|
|
|
|
FPS,
|
|
|
|
|
MMI_RELAY,
|
2022-12-04 23:12:15 +08:00
|
|
|
LPD,
|
2020-11-12 15:24:58 +08:00
|
|
|
NUM_DEVS,
|
|
|
|
|
}notifier_d;
|
|
|
|
|
|
|
|
|
|
enum mmi_relay_event {
|
|
|
|
|
RELAY_NOTIFY_REGISTER,
|
|
|
|
|
RELAY_NOTIFY_UNREGISTER,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern int relay_notifier_fire(notifier_t type, notifier_d dev, unsigned long val, void *v);
|
|
|
|
|
extern int relay_register_action(notifier_t type, notifier_d dev, struct notifier_block * nb);
|
|
|
|
|
extern int relay_unregister_action(notifier_t type, notifier_d dev, struct notifier_block * nb);
|
|
|
|
|
|
|
|
|
|
#endif
|