2005-04-16 22:20:36 +00:00
|
|
|
#ifndef LLC_S_ST_H
|
|
|
|
#define LLC_S_ST_H
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1997 by Procom Technology,Inc.
|
|
|
|
* 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
|
|
|
|
*
|
|
|
|
* This program can be redistributed or modified under the terms of the
|
|
|
|
* GNU General Public License as published by the Free Software Foundation.
|
|
|
|
* This program is distributed without any warranty or implied warranty
|
|
|
|
* of merchantability or fitness for a particular purpose.
|
|
|
|
*
|
|
|
|
* See the GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2022-07-26 21:56:52 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
#include <net/llc_s_ac.h>
|
|
|
|
#include <net/llc_s_ev.h>
|
|
|
|
|
|
|
|
struct llc_sap_state_trans;
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#define LLC_NR_SAP_STATES 2 /* size of state table */
|
|
|
|
|
|
|
|
/* structures and types */
|
|
|
|
/* SAP state table structure */
|
|
|
|
struct llc_sap_state_trans {
|
|
|
|
llc_sap_ev_t ev;
|
|
|
|
u8 next_state;
|
2014-12-10 17:55:50 +00:00
|
|
|
const llc_sap_action_t *ev_actions;
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct llc_sap_state {
|
2024-07-14 16:15:20 +00:00
|
|
|
u8 curr_state;
|
|
|
|
const struct llc_sap_state_trans **transitions;
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* only access to SAP state table */
|
|
|
|
extern struct llc_sap_state llc_sap_state_table[LLC_NR_SAP_STATES];
|
|
|
|
#endif /* LLC_S_ST_H */
|