1*230ead01SArkadi Sharshevsky /* 2*230ead01SArkadi Sharshevsky * drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h 3*230ead01SArkadi Sharshevsky * Copyright (c) 2017 Mellanox Technologies. All rights reserved. 4*230ead01SArkadi Sharshevsky * Copyright (c) 2017 Arkadi Sharshevsky <arkadis@mellanox.com> 5*230ead01SArkadi Sharshevsky * 6*230ead01SArkadi Sharshevsky * Redistribution and use in source and binary forms, with or without 7*230ead01SArkadi Sharshevsky * modification, are permitted provided that the following conditions are met: 8*230ead01SArkadi Sharshevsky * 9*230ead01SArkadi Sharshevsky * 1. Redistributions of source code must retain the above copyright 10*230ead01SArkadi Sharshevsky * notice, this list of conditions and the following disclaimer. 11*230ead01SArkadi Sharshevsky * 2. Redistributions in binary form must reproduce the above copyright 12*230ead01SArkadi Sharshevsky * notice, this list of conditions and the following disclaimer in the 13*230ead01SArkadi Sharshevsky * documentation and/or other materials provided with the distribution. 14*230ead01SArkadi Sharshevsky * 3. Neither the names of the copyright holders nor the names of its 15*230ead01SArkadi Sharshevsky * contributors may be used to endorse or promote products derived from 16*230ead01SArkadi Sharshevsky * this software without specific prior written permission. 17*230ead01SArkadi Sharshevsky * 18*230ead01SArkadi Sharshevsky * Alternatively, this software may be distributed under the terms of the 19*230ead01SArkadi Sharshevsky * GNU General Public License ("GPL") version 2 as published by the Free 20*230ead01SArkadi Sharshevsky * Software Foundation. 21*230ead01SArkadi Sharshevsky * 22*230ead01SArkadi Sharshevsky * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 23*230ead01SArkadi Sharshevsky * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24*230ead01SArkadi Sharshevsky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25*230ead01SArkadi Sharshevsky * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 26*230ead01SArkadi Sharshevsky * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27*230ead01SArkadi Sharshevsky * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 28*230ead01SArkadi Sharshevsky * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29*230ead01SArkadi Sharshevsky * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30*230ead01SArkadi Sharshevsky * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31*230ead01SArkadi Sharshevsky * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32*230ead01SArkadi Sharshevsky * POSSIBILITY OF SUCH DAMAGE. 33*230ead01SArkadi Sharshevsky */ 34*230ead01SArkadi Sharshevsky 35*230ead01SArkadi Sharshevsky #ifndef _MLXSW_PIPELINE_H_ 36*230ead01SArkadi Sharshevsky #define _MLXSW_PIPELINE_H_ 37*230ead01SArkadi Sharshevsky 38*230ead01SArkadi Sharshevsky int mlxsw_sp_dpipe_init(struct mlxsw_sp *mlxsw_sp); 39*230ead01SArkadi Sharshevsky void mlxsw_sp_dpipe_fini(struct mlxsw_sp *mlxsw_sp); 40*230ead01SArkadi Sharshevsky 41*230ead01SArkadi Sharshevsky #endif /* _MLXSW_PIPELINE_H_*/ 42