18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/****************************************************************************** 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Contact Information: 78c2ecf20Sopenharmony_ci * Intel Linux Wireless <linuxwifi@intel.com> 88c2ecf20Sopenharmony_ci * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci *****************************************************************************/ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef __iwl_leds_h__ 138c2ecf20Sopenharmony_ci#define __iwl_leds_h__ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_cistruct iwl_priv; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define IWL_LED_SOLID 11 198c2ecf20Sopenharmony_ci#define IWL_DEF_LED_INTRVL cpu_to_le32(1000) 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#define IWL_LED_ACTIVITY (0<<1) 228c2ecf20Sopenharmony_ci#define IWL_LED_LINK (1<<1) 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#ifdef CONFIG_IWLWIFI_LEDS 258c2ecf20Sopenharmony_civoid iwlagn_led_enable(struct iwl_priv *priv); 268c2ecf20Sopenharmony_civoid iwl_leds_init(struct iwl_priv *priv); 278c2ecf20Sopenharmony_civoid iwl_leds_exit(struct iwl_priv *priv); 288c2ecf20Sopenharmony_ci#else 298c2ecf20Sopenharmony_cistatic inline void iwlagn_led_enable(struct iwl_priv *priv) 308c2ecf20Sopenharmony_ci{ 318c2ecf20Sopenharmony_ci} 328c2ecf20Sopenharmony_cistatic inline void iwl_leds_init(struct iwl_priv *priv) 338c2ecf20Sopenharmony_ci{ 348c2ecf20Sopenharmony_ci} 358c2ecf20Sopenharmony_cistatic inline void iwl_leds_exit(struct iwl_priv *priv) 368c2ecf20Sopenharmony_ci{ 378c2ecf20Sopenharmony_ci} 388c2ecf20Sopenharmony_ci#endif 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#endif /* __iwl_leds_h__ */ 41