Files
android_kernel_motorola_sm6225/include/linux/mmi_relay.h
T
Yonghua Yan ff638c72ec Add typec CID event for notification
Add typec CID event for notification between modules
who need to be notified.

Change-Id: If07c5c0d34ea9dcd3ca79075b6bff86852e562a5
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2674695
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-07-12 23:08:17 -05:00

39 lines
784 B
C

#ifndef __MMI_RELAY_H__
#define __MMI_RELAY_H__
#include <linux/notifier.h>
/*
* Notify device event type definitions
*/
enum {
NOTIFY_EVENT_LPD_STATUS = 1,
NOTIFY_EVENT_TUD_STATUS = 2,
NOTIFY_EVENT_CID_STATUS = 3,
};
typedef enum notifier_type {
ATOMIC,
BLOCKING,
NUM_TYPES,
}notifier_t;
typedef enum notifier_dev {
LCD,
FPS,
MMI_RELAY,
LPD,
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