xref: /freebsd/sys/dev/iwm/if_iwm_led.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1ee55925eSAdrian Chadd /*	$OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp $	*/
2ee55925eSAdrian Chadd 
3ee55925eSAdrian Chadd /*
4ee55925eSAdrian Chadd  * Copyright (c) 2014 genua mbh <info@genua.de>
5ee55925eSAdrian Chadd  * Copyright (c) 2014 Fixup Software Ltd.
6ee55925eSAdrian Chadd  *
7ee55925eSAdrian Chadd  * Permission to use, copy, modify, and distribute this software for any
8ee55925eSAdrian Chadd  * purpose with or without fee is hereby granted, provided that the above
9ee55925eSAdrian Chadd  * copyright notice and this permission notice appear in all copies.
10ee55925eSAdrian Chadd  *
11ee55925eSAdrian Chadd  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12ee55925eSAdrian Chadd  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13ee55925eSAdrian Chadd  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14ee55925eSAdrian Chadd  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15ee55925eSAdrian Chadd  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16ee55925eSAdrian Chadd  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17ee55925eSAdrian Chadd  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18ee55925eSAdrian Chadd  */
19ee55925eSAdrian Chadd 
20ee55925eSAdrian Chadd /*-
21ee55925eSAdrian Chadd  * Based on BSD-licensed source modules in the Linux iwlwifi driver,
22ee55925eSAdrian Chadd  * which were used as the reference documentation for this implementation.
23ee55925eSAdrian Chadd  *
24ee55925eSAdrian Chadd  * Driver version we are currently based off of is
25ee55925eSAdrian Chadd  * Linux 3.14.3 (tag id a2df521e42b1d9a23f620ac79dbfe8655a8391dd)
26ee55925eSAdrian Chadd  *
27ee55925eSAdrian Chadd  ***********************************************************************
28ee55925eSAdrian Chadd  *
29ee55925eSAdrian Chadd  * This file is provided under a dual BSD/GPLv2 license.  When using or
30ee55925eSAdrian Chadd  * redistributing this file, you may do so under either license.
31ee55925eSAdrian Chadd  *
32ee55925eSAdrian Chadd  * GPL LICENSE SUMMARY
33ee55925eSAdrian Chadd  *
34ee55925eSAdrian Chadd  * Copyright(c) 2007 - 2013 Intel Corporation. All rights reserved.
35ee55925eSAdrian Chadd  *
36ee55925eSAdrian Chadd  * This program is free software; you can redistribute it and/or modify
37ee55925eSAdrian Chadd  * it under the terms of version 2 of the GNU General Public License as
38ee55925eSAdrian Chadd  * published by the Free Software Foundation.
39ee55925eSAdrian Chadd  *
40ee55925eSAdrian Chadd  * This program is distributed in the hope that it will be useful, but
41ee55925eSAdrian Chadd  * WITHOUT ANY WARRANTY; without even the implied warranty of
42ee55925eSAdrian Chadd  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
43ee55925eSAdrian Chadd  * General Public License for more details.
44ee55925eSAdrian Chadd  *
45ee55925eSAdrian Chadd  * You should have received a copy of the GNU General Public License
46ee55925eSAdrian Chadd  * along with this program; if not, write to the Free Software
47ee55925eSAdrian Chadd  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
48ee55925eSAdrian Chadd  * USA
49ee55925eSAdrian Chadd  *
50ee55925eSAdrian Chadd  * The full GNU General Public License is included in this distribution
51ee55925eSAdrian Chadd  * in the file called COPYING.
52ee55925eSAdrian Chadd  *
53ee55925eSAdrian Chadd  * Contact Information:
54ee55925eSAdrian Chadd  *  Intel Linux Wireless <ilw@linux.intel.com>
55ee55925eSAdrian Chadd  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
56ee55925eSAdrian Chadd  *
57ee55925eSAdrian Chadd  *
58ee55925eSAdrian Chadd  * BSD LICENSE
59ee55925eSAdrian Chadd  *
60ee55925eSAdrian Chadd  * Copyright(c) 2005 - 2013 Intel Corporation. All rights reserved.
61ee55925eSAdrian Chadd  * All rights reserved.
62ee55925eSAdrian Chadd  *
63ee55925eSAdrian Chadd  * Redistribution and use in source and binary forms, with or without
64ee55925eSAdrian Chadd  * modification, are permitted provided that the following conditions
65ee55925eSAdrian Chadd  * are met:
66ee55925eSAdrian Chadd  *
67ee55925eSAdrian Chadd  *  * Redistributions of source code must retain the above copyright
68ee55925eSAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
69ee55925eSAdrian Chadd  *  * Redistributions in binary form must reproduce the above copyright
70ee55925eSAdrian Chadd  *    notice, this list of conditions and the following disclaimer in
71ee55925eSAdrian Chadd  *    the documentation and/or other materials provided with the
72ee55925eSAdrian Chadd  *    distribution.
73ee55925eSAdrian Chadd  *  * Neither the name Intel Corporation nor the names of its
74ee55925eSAdrian Chadd  *    contributors may be used to endorse or promote products derived
75ee55925eSAdrian Chadd  *    from this software without specific prior written permission.
76ee55925eSAdrian Chadd  *
77ee55925eSAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
78ee55925eSAdrian Chadd  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
79ee55925eSAdrian Chadd  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
80ee55925eSAdrian Chadd  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
81ee55925eSAdrian Chadd  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
82ee55925eSAdrian Chadd  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
83ee55925eSAdrian Chadd  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
84ee55925eSAdrian Chadd  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
85ee55925eSAdrian Chadd  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
86ee55925eSAdrian Chadd  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
87ee55925eSAdrian Chadd  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
88ee55925eSAdrian Chadd  */
89ee55925eSAdrian Chadd #ifndef	__IF_IWM_LED_H__
90ee55925eSAdrian Chadd #define	__IF_IWM_LED_H__
91ee55925eSAdrian Chadd 
92*e7065dd1SMark Johnston extern	void iwm_led_enable(struct iwm_softc *);
93*e7065dd1SMark Johnston extern	void iwm_led_disable(struct iwm_softc *);
946a5bc1d1SSean Bruno extern	void iwm_led_blink_start(struct iwm_softc *);
956a5bc1d1SSean Bruno extern	void iwm_led_blink_stop(struct iwm_softc *);
96ee55925eSAdrian Chadd 
97ee55925eSAdrian Chadd #endif	/* __IF_IWM_LED_H__ */
98