diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/net/llc_c_st.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/net/llc_c_st.h')
-rw-r--r-- | include/net/llc_c_st.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/net/llc_c_st.h b/include/net/llc_c_st.h new file mode 100644 index 000000000000..0e79cfba4b3b --- /dev/null +++ b/include/net/llc_c_st.h | |||
@@ -0,0 +1,48 @@ | |||
1 | #ifndef LLC_C_ST_H | ||
2 | #define LLC_C_ST_H | ||
3 | /* | ||
4 | * Copyright (c) 1997 by Procom Technology,Inc. | ||
5 | * 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> | ||
6 | * | ||
7 | * This program can be redistributed or modified under the terms of the | ||
8 | * GNU General Public License as published by the Free Software Foundation. | ||
9 | * This program is distributed without any warranty or implied warranty | ||
10 | * of merchantability or fitness for a particular purpose. | ||
11 | * | ||
12 | * See the GNU General Public License for more details. | ||
13 | */ | ||
14 | /* Connection component state management */ | ||
15 | /* connection states */ | ||
16 | #define LLC_CONN_OUT_OF_SVC 0 /* prior to allocation */ | ||
17 | |||
18 | #define LLC_CONN_STATE_ADM 1 /* disc, initial state */ | ||
19 | #define LLC_CONN_STATE_SETUP 2 /* disconnected state */ | ||
20 | #define LLC_CONN_STATE_NORMAL 3 /* connected state */ | ||
21 | #define LLC_CONN_STATE_BUSY 4 /* connected state */ | ||
22 | #define LLC_CONN_STATE_REJ 5 /* connected state */ | ||
23 | #define LLC_CONN_STATE_AWAIT 6 /* connected state */ | ||
24 | #define LLC_CONN_STATE_AWAIT_BUSY 7 /* connected state */ | ||
25 | #define LLC_CONN_STATE_AWAIT_REJ 8 /* connected state */ | ||
26 | #define LLC_CONN_STATE_D_CONN 9 /* disconnected state */ | ||
27 | #define LLC_CONN_STATE_RESET 10 /* disconnected state */ | ||
28 | #define LLC_CONN_STATE_ERROR 11 /* disconnected state */ | ||
29 | #define LLC_CONN_STATE_TEMP 12 /* disconnected state */ | ||
30 | |||
31 | #define NBR_CONN_STATES 12 /* size of state table */ | ||
32 | #define NO_STATE_CHANGE 100 | ||
33 | |||
34 | /* Connection state table structure */ | ||
35 | struct llc_conn_state_trans { | ||
36 | llc_conn_ev_t ev; | ||
37 | u8 next_state; | ||
38 | llc_conn_ev_qfyr_t *ev_qualifiers; | ||
39 | 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 /* LLC_C_ST_H */ | ||