xref: /OK3568_Linux_fs/kernel/include/net/llc_s_st.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun #ifndef LLC_S_ST_H
2*4882a593Smuzhiyun #define LLC_S_ST_H
3*4882a593Smuzhiyun /*
4*4882a593Smuzhiyun  * Copyright (c) 1997 by Procom Technology,Inc.
5*4882a593Smuzhiyun  * 		 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * This program can be redistributed or modified under the terms of the
8*4882a593Smuzhiyun  * GNU General Public License as published by the Free Software Foundation.
9*4882a593Smuzhiyun  * This program is distributed without any warranty or implied warranty
10*4882a593Smuzhiyun  * of merchantability or fitness for a particular purpose.
11*4882a593Smuzhiyun  *
12*4882a593Smuzhiyun  * See the GNU General Public License for more details.
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #define LLC_NR_SAP_STATES	2       /* size of state table */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun /* structures and types */
18*4882a593Smuzhiyun /* SAP state table structure */
19*4882a593Smuzhiyun struct llc_sap_state_trans {
20*4882a593Smuzhiyun 	llc_sap_ev_t	  ev;
21*4882a593Smuzhiyun 	u8		  next_state;
22*4882a593Smuzhiyun 	const llc_sap_action_t *ev_actions;
23*4882a593Smuzhiyun };
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun struct llc_sap_state {
26*4882a593Smuzhiyun 	u8			   curr_state;
27*4882a593Smuzhiyun 	struct llc_sap_state_trans **transitions;
28*4882a593Smuzhiyun };
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun /* only access to SAP state table */
31*4882a593Smuzhiyun extern struct llc_sap_state llc_sap_state_table[LLC_NR_SAP_STATES];
32*4882a593Smuzhiyun #endif /* LLC_S_ST_H */
33