irlan_event.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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