1 #ifndef LLC_C_ST_H
2 #define LLC_C_ST_H
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #define LLC_CONN_OUT_OF_SVC 0
17
18 #define LLC_CONN_STATE_ADM 1
19 #define LLC_CONN_STATE_SETUP 2
20 #define LLC_CONN_STATE_NORMAL 3
21 #define LLC_CONN_STATE_BUSY 4
22 #define LLC_CONN_STATE_REJ 5
23 #define LLC_CONN_STATE_AWAIT 6
24 #define LLC_CONN_STATE_AWAIT_BUSY 7
25 #define LLC_CONN_STATE_AWAIT_REJ 8
26 #define LLC_CONN_STATE_D_CONN 9
27 #define LLC_CONN_STATE_RESET 10
28 #define LLC_CONN_STATE_ERROR 11
29 #define LLC_CONN_STATE_TEMP 12
30
31 #define NBR_CONN_STATES 12
32 #define NO_STATE_CHANGE 100
33
34
35 struct llc_conn_state_trans {
36 llc_conn_ev_t ev;
37 u8 next_state;
38 const llc_conn_ev_qfyr_t *ev_qualifiers;
39 const llc_conn_action_t *ev_actions;
40 };
41
42 struct llc_conn_state {
43 u8 current_state;
44 struct llc_conn_state_trans **transitions;
45 };
46
47 extern struct llc_conn_state llc_conn_state_table[];
48 #endif