isdnl3.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* $Id: isdnl3.h,v 2.6.6.2 2001/09/23 22:24:49 kai Exp $
  2. *
  3. * This software may be used and distributed according to the terms
  4. * of the GNU General Public License, incorporated herein by reference.
  5. *
  6. */
  7. #define SBIT(state) (1<<state)
  8. #define ALL_STATES 0x03ffffff
  9. #define PROTO_DIS_EURO 0x08
  10. #define L3_DEB_WARN 0x01
  11. #define L3_DEB_PROTERR 0x02
  12. #define L3_DEB_STATE 0x04
  13. #define L3_DEB_CHARGE 0x08
  14. #define L3_DEB_CHECK 0x10
  15. #define L3_DEB_SI 0x20
  16. struct stateentry {
  17. int state;
  18. int primitive;
  19. void (*rout) (struct l3_process *, u8, void *);
  20. };
  21. #define l3_debug(st, fmt, args...) HiSax_putstatus(st->l1.hardware, "l3 ", fmt, ## args)
  22. struct PStack;
  23. void newl3state(struct l3_process *pc, int state);
  24. void L3InitTimer(struct l3_process *pc, struct L3Timer *t);
  25. void L3DelTimer(struct L3Timer *t);
  26. int L3AddTimer(struct L3Timer *t, int millisec, int event);
  27. void StopAllL3Timer(struct l3_process *pc);
  28. struct sk_buff *l3_alloc_skb(int len);
  29. struct l3_process *new_l3_process(struct PStack *st, int cr);
  30. void release_l3_process(struct l3_process *p);
  31. struct l3_process *getl3proc(struct PStack *st, int cr);
  32. void l3_msg(struct PStack *st, int pr, void *arg);
  33. void setstack_dss1(struct PStack *st);
  34. void setstack_ni1(struct PStack *st);
  35. void setstack_1tr6(struct PStack *st);