blob: c4359e203013c097837f06ca826f3b887c21bfed [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef LLC_S_ST_H
2#define LLC_S_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
15#define LLC_NR_SAP_STATES 2 /* size of state table */
16
17/* structures and types */
18/* SAP state table structure */
19struct llc_sap_state_trans {
20 llc_sap_ev_t ev;
21 u8 next_state;
Joe Perches22bbf5f2014-12-10 09:55:50 -080022 const llc_sap_action_t *ev_actions;
Linus Torvalds1da177e2005-04-16 15:20:36 -070023};
24
25struct llc_sap_state {
26 u8 curr_state;
27 struct llc_sap_state_trans **transitions;
28};
29
30/* only access to SAP state table */
31extern struct llc_sap_state llc_sap_state_table[LLC_NR_SAP_STATES];
32#endif /* LLC_S_ST_H */