irlan_event.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*********************************************************************
  2. *
  3. * Filename: irlan_event.h
  4. * Version:
  5. * Description: LAN access
  6. * Status: Experimental.
  7. * Author: Dag Brattli <dagb@cs.uit.no>
  8. * Created at: Sun Aug 31 20:14:37 1997
  9. * Modified at: Tue Feb 2 09:45:17 1999
  10. * Modified by: Dag Brattli <dagb@cs.uit.no>
  11. *
  12. * Copyright (c) 1997 Dag Brattli <dagb@cs.uit.no>, All Rights Reserved.
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of
  17. * the License, or (at your option) any later version.
  18. *
  19. * Neither Dag Brattli nor University of Tromsø admit liability nor
  20. * provide warranty for any of this software. This material is
  21. * provided "AS-IS" and at no charge.
  22. *
  23. ********************************************************************/
  24. #ifndef IRLAN_EVENT_H
  25. #define IRLAN_EVENT_H
  26. #include <linux/kernel.h>
  27. #include <linux/skbuff.h>
  28. #include <net/irda/irlan_common.h>
  29. typedef enum {
  30. IRLAN_IDLE,
  31. IRLAN_QUERY,
  32. IRLAN_CONN,
  33. IRLAN_INFO,
  34. IRLAN_MEDIA,
  35. IRLAN_OPEN,
  36. IRLAN_WAIT,
  37. IRLAN_ARB,
  38. IRLAN_DATA,
  39. IRLAN_CLOSE,
  40. IRLAN_SYNC
  41. } IRLAN_STATE;
  42. typedef enum {
  43. IRLAN_DISCOVERY_INDICATION,
  44. IRLAN_IAS_PROVIDER_AVAIL,
  45. IRLAN_IAS_PROVIDER_NOT_AVAIL,
  46. IRLAN_LAP_DISCONNECT,
  47. IRLAN_LMP_DISCONNECT,
  48. IRLAN_CONNECT_COMPLETE,
  49. IRLAN_DATA_INDICATION,
  50. IRLAN_DATA_CONNECT_INDICATION,
  51. IRLAN_RETRY_CONNECT,
  52. IRLAN_CONNECT_INDICATION,
  53. IRLAN_GET_INFO_CMD,
  54. IRLAN_GET_MEDIA_CMD,
  55. IRLAN_OPEN_DATA_CMD,
  56. IRLAN_FILTER_CONFIG_CMD,
  57. IRLAN_CHECK_CON_ARB,
  58. IRLAN_PROVIDER_SIGNAL,
  59. IRLAN_WATCHDOG_TIMEOUT,
  60. } IRLAN_EVENT;
  61. extern const char * const irlan_state[];
  62. void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event,
  63. struct sk_buff *skb);
  64. void irlan_do_provider_event(struct irlan_cb *self, IRLAN_EVENT event,
  65. struct sk_buff *skb);
  66. void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state);
  67. void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state);
  68. #endif