rt2x00leds.h 590 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com>
  4. <http://rt2x00.serialmonkey.com>
  5. */
  6. /*
  7. Module: rt2x00lib
  8. Abstract: rt2x00 led datastructures and routines
  9. */
  10. #ifndef RT2X00LEDS_H
  11. #define RT2X00LEDS_H
  12. enum led_type {
  13. LED_TYPE_RADIO,
  14. LED_TYPE_ASSOC,
  15. LED_TYPE_ACTIVITY,
  16. LED_TYPE_QUALITY,
  17. };
  18. struct rt2x00_led {
  19. struct rt2x00_dev *rt2x00dev;
  20. struct led_classdev led_dev;
  21. enum led_type type;
  22. unsigned int flags;
  23. #define LED_INITIALIZED ( 1 << 0 )
  24. #define LED_REGISTERED ( 1 << 1 )
  25. };
  26. #endif /* RT2X00LEDS_H */