summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/rtemspppd.h
blob: 9d44e58594722642c734177d609784b92ca6211c (plain) (blame)
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

#ifndef RTEMSPPPD_H
#define RTEMSPPPD_H

/* check to see if pppd task values are set */
#ifndef RTEMS_PPPD_TASK_PRIORITY
#define RTEMS_PPPD_TASK_PRIORITY        120
#endif
#ifndef RTEMS_PPPD_TASK_STACK_SIZE
#define RTEMS_PPPD_TASK_STACK_SIZE      (10*1024)
#endif
#ifndef RTEMS_PPPD_TASK_INITIAL_MODES
#define RTEMS_PPPD_TASK_INITIAL_MODES   (RTEMS_PREEMPT | \
                                         RTEMS_NO_TIMESLICE | \
                                         RTEMS_NO_ASR | \
                                         RTEMS_INTERRUPT_LEVEL(0))
#endif

/* define hook function identifiers */
#define RTEMS_PPPD_LINKUP_HOOK      1
#define RTEMS_PPPD_LINKDOWN_HOOK    2
#define RTEMS_PPPD_IPUP_HOOK        3
#define RTEMS_PPPD_IPDOWN_HOOK      4

/* define hook function pointer prototype */
typedef void (*rtems_pppd_hookfunction)(void);


/* define pppd function prototyes */
int rtems_pppd_initialize(void);
int rtems_pppd_terminate(void);
int rtems_pppd_reset_options(void);
int rtems_pppd_set_hook(int id, rtems_pppd_hookfunction hookfp);
int rtems_pppd_set_option(const char *pOption, const char *pValue);
int rtems_pppd_connect(void);
int rtems_pppd_disconnect(void);

#endif