Simon Guinot | 11efe71 | 2010-07-06 16:08:46 +0200 | [diff] [blame] | 1 | /* |
Simon Guinot | 11efe71 | 2010-07-06 16:08:46 +0200 | [diff] [blame] | 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 | |
Sachin Kamat | 00d1955 | 2014-01-02 01:58:45 -0800 | [diff] [blame] | 9 | #ifndef __LEDS_KIRKWOOD_NS2_H |
| 10 | #define __LEDS_KIRKWOOD_NS2_H |
Simon Guinot | 11efe71 | 2010-07-06 16:08:46 +0200 | [diff] [blame] | 11 | |
Vincent Donnefort | f7fafd0 | 2015-07-02 19:56:40 +0200 | [diff] [blame] | 12 | enum ns2_led_modes { |
| 13 | NS_V2_LED_OFF, |
| 14 | NS_V2_LED_ON, |
| 15 | NS_V2_LED_SATA, |
| 16 | }; |
| 17 | |
| 18 | struct ns2_led_modval { |
| 19 | enum ns2_led_modes mode; |
| 20 | int cmd_level; |
| 21 | int slow_level; |
| 22 | }; |
| 23 | |
Simon Guinot | 11efe71 | 2010-07-06 16:08:46 +0200 | [diff] [blame] | 24 | struct ns2_led { |
| 25 | const char *name; |
| 26 | const char *default_trigger; |
| 27 | unsigned cmd; |
| 28 | unsigned slow; |
Vincent Donnefort | f7fafd0 | 2015-07-02 19:56:40 +0200 | [diff] [blame] | 29 | int num_modes; |
| 30 | struct ns2_led_modval *modval; |
Simon Guinot | 11efe71 | 2010-07-06 16:08:46 +0200 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | struct ns2_led_platform_data { |
| 34 | int num_leds; |
| 35 | struct ns2_led *leds; |
| 36 | }; |
| 37 | |
Sachin Kamat | 00d1955 | 2014-01-02 01:58:45 -0800 | [diff] [blame] | 38 | #endif /* __LEDS_KIRKWOOD_NS2_H */ |