llc_s_st.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #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 <[email protected]>
  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. #include <linux/types.h>
  15. #include <net/llc_s_ac.h>
  16. #include <net/llc_s_ev.h>
  17. struct llc_sap_state_trans;
  18. #define LLC_NR_SAP_STATES 2 /* size of state table */
  19. /* structures and types */
  20. /* SAP state table structure */
  21. struct llc_sap_state_trans {
  22. llc_sap_ev_t ev;
  23. u8 next_state;
  24. const llc_sap_action_t *ev_actions;
  25. };
  26. struct llc_sap_state {
  27. u8 curr_state;
  28. struct llc_sap_state_trans **transitions;
  29. };
  30. /* only access to SAP state table */
  31. extern struct llc_sap_state llc_sap_state_table[LLC_NR_SAP_STATES];
  32. #endif /* LLC_S_ST_H */