xref: /linux/drivers/net/ethernet/sunplus/spl2sw_desc.h (revision dec1c62e91ba268ab2a6e339d4d7a59287d5eba1)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright Sunplus Technology Co., Ltd.
3  *       All rights reserved.
4  */
5 
6 #ifndef __SPL2SW_DESC_H__
7 #define __SPL2SW_DESC_H__
8 
9 void spl2sw_rx_descs_flush(struct spl2sw_common *comm);
10 void spl2sw_tx_descs_clean(struct spl2sw_common *comm);
11 void spl2sw_rx_descs_clean(struct spl2sw_common *comm);
12 void spl2sw_descs_clean(struct spl2sw_common *comm);
13 void spl2sw_descs_free(struct spl2sw_common *comm);
14 void spl2sw_tx_descs_init(struct spl2sw_common *comm);
15 int  spl2sw_rx_descs_init(struct spl2sw_common *comm);
16 int  spl2sw_descs_alloc(struct spl2sw_common *comm);
17 int  spl2sw_descs_init(struct spl2sw_common *comm);
18 
19 #endif
20