The module encapsule a group of notification, used for decoupling between modules, for example, the touchscreen driver are coupling fingerprint and display driver in the bring-up phase, the dependencies between modules need to fixed to avoid proceeding blocked, This module is middle layer, it change a direct dependece into an indirect dependence. Change-Id: I4469dd70300fce2dc5d9af48e96d65755974ef9f Reviewed-on: https://gerrit.mot.com/1802936 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Sergio Vilela <sv008@motorola.com> Submit-Approved: Sergio Vilela <sv008@motorola.com> Tested-by: Sergio Vilela <sv008@motorola.com>
29 lines
627 B
C
29 lines
627 B
C
#ifndef __MMI_RELAY_H__
|
|
#define __MMI_RELAY_H__
|
|
|
|
#include <linux/notifier.h>
|
|
|
|
typedef enum notifier_type {
|
|
ATOMIC,
|
|
BLOCKING,
|
|
NUM_TYPES,
|
|
}notifier_t;
|
|
|
|
typedef enum notifier_dev {
|
|
LCD,
|
|
FPS,
|
|
MMI_RELAY,
|
|
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
|