1 #ifndef LLC_S_ST_H 1 #ifndef LLC_S_ST_H 2 #define LLC_S_ST_H 2 #define LLC_S_ST_H 3 /* 3 /* 4 * Copyright (c) 1997 by Procom Technology,Inc 4 * Copyright (c) 1997 by Procom Technology,Inc. 5 * 2001 by Arnaldo Carvalho de M 5 * 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 6 * 6 * 7 * This program can be redistributed or modifi 7 * This program can be redistributed or modified under the terms of the 8 * GNU General Public License as published by 8 * GNU General Public License as published by the Free Software Foundation. 9 * This program is distributed without any war 9 * This program is distributed without any warranty or implied warranty 10 * of merchantability or fitness for a particu 10 * of merchantability or fitness for a particular purpose. 11 * 11 * 12 * See the GNU General Public License for more 12 * See the GNU General Public License for more details. 13 */ 13 */ 14 14 15 #include <linux/types.h> 15 #include <linux/types.h> 16 #include <net/llc_s_ac.h> 16 #include <net/llc_s_ac.h> 17 #include <net/llc_s_ev.h> 17 #include <net/llc_s_ev.h> 18 18 19 struct llc_sap_state_trans; 19 struct llc_sap_state_trans; 20 20 21 #define LLC_NR_SAP_STATES 2 /* siz 21 #define LLC_NR_SAP_STATES 2 /* size of state table */ 22 22 23 /* structures and types */ 23 /* structures and types */ 24 /* SAP state table structure */ 24 /* SAP state table structure */ 25 struct llc_sap_state_trans { 25 struct llc_sap_state_trans { 26 llc_sap_ev_t ev; 26 llc_sap_ev_t ev; 27 u8 next_state; 27 u8 next_state; 28 const llc_sap_action_t *ev_actions; 28 const llc_sap_action_t *ev_actions; 29 }; 29 }; 30 30 31 struct llc_sap_state { 31 struct llc_sap_state { 32 u8 curr_ 32 u8 curr_state; 33 const struct llc_sap_state_trans **tra 33 const struct llc_sap_state_trans **transitions; 34 }; 34 }; 35 35 36 /* only access to SAP state table */ 36 /* only access to SAP state table */ 37 extern struct llc_sap_state llc_sap_state_tabl 37 extern struct llc_sap_state llc_sap_state_table[LLC_NR_SAP_STATES]; 38 #endif /* LLC_S_ST_H */ 38 #endif /* LLC_S_ST_H */ 39 39
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.