rt2x00leds.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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, 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. enum led_type {
  24. LED_TYPE_RADIO,
  25. LED_TYPE_ASSOC,
  26. LED_TYPE_ACTIVITY,
  27. LED_TYPE_QUALITY,
  28. };
  29. struct rt2x00_led {
  30. struct rt2x00_dev *rt2x00dev;
  31. struct led_classdev led_dev;
  32. enum led_type type;
  33. unsigned int flags;
  34. #define LED_INITIALIZED ( 1 << 0 )
  35. #define LED_REGISTERED ( 1 << 1 )
  36. };
  37. #endif /* RT2X00LEDS_H */