rt2x00leds.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com>
  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, see <http://www.gnu.org/licenses/>.
  14. */
  15. /*
  16. Module: rt2x00lib
  17. Abstract: rt2x00 led datastructures and routines
  18. */
  19. #ifndef RT2X00LEDS_H
  20. #define RT2X00LEDS_H
  21. enum led_type {
  22. LED_TYPE_RADIO,
  23. LED_TYPE_ASSOC,
  24. LED_TYPE_ACTIVITY,
  25. LED_TYPE_QUALITY,
  26. };
  27. struct rt2x00_led {
  28. struct rt2x00_dev *rt2x00dev;
  29. struct led_classdev led_dev;
  30. enum led_type type;
  31. unsigned int flags;
  32. #define LED_INITIALIZED ( 1 << 0 )
  33. #define LED_REGISTERED ( 1 << 1 )
  34. };
  35. #endif /* RT2X00LEDS_H */