New multiple handler API implementation introduced
[kernel/swap-modules.git] / driver / device_driver.h
1 ////////////////////////////////////////////////////////////////////////////////////
2 //
3 //      FILE:           device_driver.h
4 //
5 //      DESCRIPTION:
6 //
7 //      SEE ALSO:       device_driver.c
8 //      AUTHOR:         L.Komkov, S.Dianov, S.Grekhov, A.Gerenkov
9 //      COMPANY NAME:   Samsung Research Center in Moscow
10 //      DEPT NAME:      Advanced Software Group 
11 //      CREATED:        2008.02.15
12 //      VERSION:        1.0
13 //      REVISION DATE:  2008.12.03
14 //
15 ////////////////////////////////////////////////////////////////////////////////////
16
17 #if !defined(device_driver_h)
18 #define device_driver_h
19
20 #include "ec_info.h"            // ec_info_t
21 #include "ec_probe.h"           // probe_id_t
22
23 #define DEFAULT_DEVICE_NAME "swap_drv"
24 #define DEFAULT_DEVICE_MAJOR 250
25 #define EVENTS_AGGREGATION_USEC (5 * 1000000UL)
26
27 extern int device_init (void);
28 extern void device_down (void);
29 extern void notify_user (event_id_t event_id);
30 extern char *deps;
31 extern char *bundle;
32 extern struct dbi_modules_handlers *get_dbi_modules_handlers(void);
33
34 #endif /* !defined(device_driver_h) */