wcmd.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
  3. * All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. *
  16. * File: wcmd.h
  17. *
  18. * Purpose: Handles the management command interface functions
  19. *
  20. * Author: Lyndon Chen
  21. *
  22. * Date: May 8, 2002
  23. *
  24. */
  25. #ifndef __WCMD_H__
  26. #define __WCMD_H__
  27. #include "device.h"
  28. /* Command code */
  29. enum vnt_cmd {
  30. WLAN_CMD_INIT_MAC80211,
  31. WLAN_CMD_SETPOWER,
  32. WLAN_CMD_TBTT_WAKEUP,
  33. WLAN_CMD_BECON_SEND,
  34. WLAN_CMD_CHANGE_ANTENNA
  35. };
  36. #define CMD_Q_SIZE 32
  37. /* Command state */
  38. enum vnt_cmd_state {
  39. WLAN_CMD_INIT_MAC80211_START,
  40. WLAN_CMD_SETPOWER_START,
  41. WLAN_CMD_TBTT_WAKEUP_START,
  42. WLAN_CMD_BECON_SEND_START,
  43. WLAN_CMD_CHANGE_ANTENNA_START,
  44. WLAN_CMD_IDLE
  45. };
  46. struct vnt_private;
  47. void vnt_reset_command_timer(struct vnt_private *);
  48. int vnt_schedule_command(struct vnt_private *, enum vnt_cmd);
  49. void vnt_run_command(struct work_struct *work);
  50. #endif /* __WCMD_H__ */