blob: 335c06bd1986966e8b75091c1b8429317ea99b53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
*
* include/linux/tdmb_notifier.h
*
* header file supporting tdmb notifier call chain information
*
* Copyright (C) (2017, Samsung Electronics)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __TDMB_NOTIFIER_H__
#define __TDMB_NOTIFIER_H__
/*largest priority number device will be called first. */
enum tdmb_notifier_device_t {
TDMB_NOTIFY_DEV_LCD = 0,
TDMB_NOTIFY_DEV_TOUCH,
};
enum tdmb_notifier_event_t {
TDMB_NOTIFY_EVENT_INITIAL = 0,
TDMB_NOTIFY_EVENT_TUNNER,
};
struct _tdmb_tunner_status {
int pwr;
int status_info;
};
struct tdmb_notifier_struct {
enum tdmb_notifier_event_t event;
struct _tdmb_tunner_status tdmb_status;
};
/* tdmb notifier register/unregister API*/
extern void tdmb_notifier_call(struct tdmb_notifier_struct *value);
extern int tdmb_notifier_register(struct notifier_block *nb,
notifier_fn_t notifier, enum tdmb_notifier_device_t listener);
extern int tdmb_notifier_unregister(struct notifier_block *nb);
#endif /* __TDMB_NOTIFIER_H__ */
|