if_iwm_led.h revision 301187
1301187Sadrian/* $OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp $ */ 2301187Sadrian 3301187Sadrian/* 4301187Sadrian * Copyright (c) 2014 genua mbh <info@genua.de> 5301187Sadrian * Copyright (c) 2014 Fixup Software Ltd. 6301187Sadrian * 7301187Sadrian * Permission to use, copy, modify, and distribute this software for any 8301187Sadrian * purpose with or without fee is hereby granted, provided that the above 9301187Sadrian * copyright notice and this permission notice appear in all copies. 10301187Sadrian * 11301187Sadrian * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12301187Sadrian * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13301187Sadrian * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14301187Sadrian * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15301187Sadrian * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16301187Sadrian * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17301187Sadrian * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18301187Sadrian */ 19301187Sadrian 20301187Sadrian/*- 21301187Sadrian * Based on BSD-licensed source modules in the Linux iwlwifi driver, 22301187Sadrian * which were used as the reference documentation for this implementation. 23301187Sadrian * 24301187Sadrian * Driver version we are currently based off of is 25301187Sadrian * Linux 3.14.3 (tag id a2df521e42b1d9a23f620ac79dbfe8655a8391dd) 26301187Sadrian * 27301187Sadrian *********************************************************************** 28301187Sadrian * 29301187Sadrian * This file is provided under a dual BSD/GPLv2 license. When using or 30301187Sadrian * redistributing this file, you may do so under either license. 31301187Sadrian * 32301187Sadrian * GPL LICENSE SUMMARY 33301187Sadrian * 34301187Sadrian * Copyright(c) 2007 - 2013 Intel Corporation. All rights reserved. 35301187Sadrian * 36301187Sadrian * This program is free software; you can redistribute it and/or modify 37301187Sadrian * it under the terms of version 2 of the GNU General Public License as 38301187Sadrian * published by the Free Software Foundation. 39301187Sadrian * 40301187Sadrian * This program is distributed in the hope that it will be useful, but 41301187Sadrian * WITHOUT ANY WARRANTY; without even the implied warranty of 42301187Sadrian * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 43301187Sadrian * General Public License for more details. 44301187Sadrian * 45301187Sadrian * You should have received a copy of the GNU General Public License 46301187Sadrian * along with this program; if not, write to the Free Software 47301187Sadrian * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, 48301187Sadrian * USA 49301187Sadrian * 50301187Sadrian * The full GNU General Public License is included in this distribution 51301187Sadrian * in the file called COPYING. 52301187Sadrian * 53301187Sadrian * Contact Information: 54301187Sadrian * Intel Linux Wireless <ilw@linux.intel.com> 55301187Sadrian * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 56301187Sadrian * 57301187Sadrian * 58301187Sadrian * BSD LICENSE 59301187Sadrian * 60301187Sadrian * Copyright(c) 2005 - 2013 Intel Corporation. All rights reserved. 61301187Sadrian * All rights reserved. 62301187Sadrian * 63301187Sadrian * Redistribution and use in source and binary forms, with or without 64301187Sadrian * modification, are permitted provided that the following conditions 65301187Sadrian * are met: 66301187Sadrian * 67301187Sadrian * * Redistributions of source code must retain the above copyright 68301187Sadrian * notice, this list of conditions and the following disclaimer. 69301187Sadrian * * Redistributions in binary form must reproduce the above copyright 70301187Sadrian * notice, this list of conditions and the following disclaimer in 71301187Sadrian * the documentation and/or other materials provided with the 72301187Sadrian * distribution. 73301187Sadrian * * Neither the name Intel Corporation nor the names of its 74301187Sadrian * contributors may be used to endorse or promote products derived 75301187Sadrian * from this software without specific prior written permission. 76301187Sadrian * 77301187Sadrian * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 78301187Sadrian * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 79301187Sadrian * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 80301187Sadrian * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 81301187Sadrian * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 82301187Sadrian * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 83301187Sadrian * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 84301187Sadrian * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 85301187Sadrian * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 86301187Sadrian * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 87301187Sadrian * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 88301187Sadrian * 89301187Sadrian * $FreeBSD: head/sys/dev/iwm/if_iwm_led.h 301187 2016-06-02 04:42:28Z adrian $ 90301187Sadrian */ 91301187Sadrian#ifndef __IF_IWM_LED_H__ 92301187Sadrian#define __IF_IWM_LED_H__ 93301187Sadrian 94301187Sadrianvoid iwm_mvm_led_enable(struct iwm_softc *); 95301187Sadrianvoid iwm_mvm_led_disable(struct iwm_softc *); 96301187Sadrianint iwm_mvm_led_is_enabled(struct iwm_softc *); 97301187Sadrianvoid iwm_led_blink_timeout(void *); 98301187Sadrianvoid iwm_led_blink_start(struct iwm_softc *); 99301187Sadrianvoid iwm_led_blink_stop(struct iwm_softc *); 100301187Sadrian 101301187Sadrian#endif /* __IF_IWM_LED_H__ */ 102