Back to home page

OSCL-LXR

 
 

    


0001 #ifndef LLC_S_ST_H
0002 #define LLC_S_ST_H
0003 /*
0004  * Copyright (c) 1997 by Procom Technology,Inc.
0005  *       2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
0006  *
0007  * This program can be redistributed or modified under the terms of the
0008  * GNU General Public License as published by the Free Software Foundation.
0009  * This program is distributed without any warranty or implied warranty
0010  * of merchantability or fitness for a particular purpose.
0011  *
0012  * See the GNU General Public License for more details.
0013  */
0014 
0015 #include <linux/types.h>
0016 #include <net/llc_s_ac.h>
0017 #include <net/llc_s_ev.h>
0018 
0019 struct llc_sap_state_trans;
0020 
0021 #define LLC_NR_SAP_STATES   2       /* size of state table */
0022 
0023 /* structures and types */
0024 /* SAP state table structure */
0025 struct llc_sap_state_trans {
0026     llc_sap_ev_t      ev;
0027     u8        next_state;
0028     const llc_sap_action_t *ev_actions;
0029 };
0030 
0031 struct llc_sap_state {
0032     u8             curr_state;
0033     struct llc_sap_state_trans **transitions;
0034 };
0035 
0036 /* only access to SAP state table */
0037 extern struct llc_sap_state llc_sap_state_table[LLC_NR_SAP_STATES];
0038 #endif /* LLC_S_ST_H */