leds-kirkwood-ns2.h 742 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Platform data structure for Network Space v2 LED driver
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License version 2. This program is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. #ifndef __LEDS_KIRKWOOD_NS2_H
  9. #define __LEDS_KIRKWOOD_NS2_H
  10. enum ns2_led_modes {
  11. NS_V2_LED_OFF,
  12. NS_V2_LED_ON,
  13. NS_V2_LED_SATA,
  14. };
  15. struct ns2_led_modval {
  16. enum ns2_led_modes mode;
  17. int cmd_level;
  18. int slow_level;
  19. };
  20. struct ns2_led {
  21. const char *name;
  22. const char *default_trigger;
  23. unsigned cmd;
  24. unsigned slow;
  25. int num_modes;
  26. struct ns2_led_modval *modval;
  27. };
  28. struct ns2_led_platform_data {
  29. int num_leds;
  30. struct ns2_led *leds;
  31. };
  32. #endif /* __LEDS_KIRKWOOD_NS2_H */