| 1 |
|
| 2 | #ifndef LLC_C_ST_H
|
| 3 | #define LLC_C_ST_H
|
| 4 | |
| 5 | * Copyright (c) 1997 by Procom Technology,Inc.
|
| 6 | * 2001 by Arnaldo Carvalho de Melo <[email protected]>
|
| 7 |
|
| 8 |
|
| 9 | #include <net/llc_c_ac.h>
|
| 10 | #include <net/llc_c_ev.h>
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 | #define LLC_CONN_OUT_OF_SVC 0
|
| 15 |
|
| 16 | #define LLC_CONN_STATE_ADM 1
|
| 17 | #define LLC_CONN_STATE_SETUP 2
|
| 18 | #define LLC_CONN_STATE_NORMAL 3
|
| 19 | #define LLC_CONN_STATE_BUSY 4
|
| 20 | #define LLC_CONN_STATE_REJ 5
|
| 21 | #define LLC_CONN_STATE_AWAIT 6
|
| 22 | #define LLC_CONN_STATE_AWAIT_BUSY 7
|
| 23 | #define LLC_CONN_STATE_AWAIT_REJ 8
|
| 24 | #define LLC_CONN_STATE_D_CONN 9
|
| 25 | #define LLC_CONN_STATE_RESET 10
|
| 26 | #define LLC_CONN_STATE_ERROR 11
|
| 27 | #define LLC_CONN_STATE_TEMP 12
|
| 28 |
|
| 29 | #define NBR_CONN_STATES 12
|
| 30 | #define NO_STATE_CHANGE 100
|
| 31 |
|
| 32 |
|
| 33 | struct llc_conn_state_trans {
|
| 34 | llc_conn_ev_t ev;
|
| 35 | u8 next_state;
|
| 36 | const llc_conn_ev_qfyr_t *ev_qualifiers;
|
| 37 | const llc_conn_action_t *ev_actions;
|
| 38 | };
|
| 39 |
|
| 40 | struct llc_conn_state {
|
| 41 | u8 current_state;
|
| 42 | const struct llc_conn_state_trans **transitions;
|
| 43 | };
|
| 44 |
|
| 45 | extern struct llc_conn_state llc_conn_state_table[];
|
| 46 | #endif
|