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