1 /****************************************************************************** 2 * 3 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 * The full GNU General Public License is included in this distribution in the 15 * file called LICENSE. 16 * 17 * Contact Information: 18 * Intel Linux Wireless <linuxwifi@intel.com> 19 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 20 * 21 *****************************************************************************/ 22 23 #ifndef __iwl_leds_h__ 24 #define __iwl_leds_h__ 25 26 27 struct iwl_priv; 28 29 #define IWL_LED_SOLID 11 30 #define IWL_DEF_LED_INTRVL cpu_to_le32(1000) 31 32 #define IWL_LED_ACTIVITY (0<<1) 33 #define IWL_LED_LINK (1<<1) 34 35 #ifdef CONFIG_IWLWIFI_LEDS 36 void iwlagn_led_enable(struct iwl_priv *priv); 37 void iwl_leds_init(struct iwl_priv *priv); 38 void iwl_leds_exit(struct iwl_priv *priv); 39 #else 40 static inline void iwlagn_led_enable(struct iwl_priv *priv) 41 { 42 } 43 static inline void iwl_leds_init(struct iwl_priv *priv) 44 { 45 } 46 static inline void iwl_leds_exit(struct iwl_priv *priv) 47 { 48 } 49 #endif 50 51 #endif /* __iwl_leds_h__ */ 52