rt2x00leds.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. Copyright (C) 2004 - 2008 rt2x00 SourceForge Project
  3. <http://rt2x00.serialmonkey.com>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the
  14. Free Software Foundation, Inc.,
  15. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. */
  17. /*
  18. Module: rt2x00lib
  19. Abstract: rt2x00 led datastructures and routines
  20. */
  21. #ifndef RT2X00LEDS_H
  22. #define RT2X00LEDS_H
  23. /*
  24. * Flags used by driver to indicate which
  25. * which led types are supported.
  26. */
  27. #define LED_SUPPORT_RADIO 0x000001
  28. #define LED_SUPPORT_ASSOC 0x000002
  29. #define LED_SUPPORT_ACTIVITY 0x000004
  30. #define LED_SUPPORT_QUALITY 0x000008
  31. enum led_type {
  32. LED_TYPE_RADIO,
  33. LED_TYPE_ASSOC,
  34. LED_TYPE_QUALITY,
  35. };
  36. #ifdef CONFIG_RT2X00_LIB_LEDS
  37. struct rt2x00_led {
  38. struct rt2x00_dev *rt2x00dev;
  39. struct led_classdev led_dev;
  40. enum led_type type;
  41. unsigned int registered;
  42. };
  43. struct rt2x00_trigger {
  44. struct led_trigger trigger;
  45. enum led_type type;
  46. unsigned int registered;
  47. };
  48. #endif /* CONFIG_RT2X00_LIB_LEDS */
  49. #endif /* RT2X00LEDS_H */