1ad75b7d3SRahul Lakkireddy /*
2ad75b7d3SRahul Lakkireddy  *  Copyright (C) 2017 Chelsio Communications.  All rights reserved.
3ad75b7d3SRahul Lakkireddy  *
4ad75b7d3SRahul Lakkireddy  *  This program is free software; you can redistribute it and/or modify it
5ad75b7d3SRahul Lakkireddy  *  under the terms and conditions of the GNU General Public License,
6ad75b7d3SRahul Lakkireddy  *  version 2, as published by the Free Software Foundation.
7ad75b7d3SRahul Lakkireddy  *
8ad75b7d3SRahul Lakkireddy  *  This program is distributed in the hope it will be useful, but WITHOUT
9ad75b7d3SRahul Lakkireddy  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10ad75b7d3SRahul Lakkireddy  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11ad75b7d3SRahul Lakkireddy  *  more details.
12ad75b7d3SRahul Lakkireddy  *
13ad75b7d3SRahul Lakkireddy  *  The full GNU General Public License is included in this distribution in
14ad75b7d3SRahul Lakkireddy  *  the file called "COPYING".
15ad75b7d3SRahul Lakkireddy  *
16ad75b7d3SRahul Lakkireddy  */
17ad75b7d3SRahul Lakkireddy 
18ad75b7d3SRahul Lakkireddy #ifndef __CXGB4_CUDBG_H__
19ad75b7d3SRahul Lakkireddy #define __CXGB4_CUDBG_H__
20ad75b7d3SRahul Lakkireddy 
21ad75b7d3SRahul Lakkireddy #include "cudbg_if.h"
22ad75b7d3SRahul Lakkireddy #include "cudbg_lib_common.h"
23ad75b7d3SRahul Lakkireddy 
24ad75b7d3SRahul Lakkireddy enum CXGB4_ETHTOOL_DUMP_FLAGS {
25ad75b7d3SRahul Lakkireddy 	CXGB4_ETH_DUMP_NONE = ETH_FW_DUMP_DISABLE,
26ad75b7d3SRahul Lakkireddy };
27ad75b7d3SRahul Lakkireddy 
28ad75b7d3SRahul Lakkireddy u32 cxgb4_get_dump_length(struct adapter *adap, u32 flag);
29ad75b7d3SRahul Lakkireddy int cxgb4_cudbg_collect(struct adapter *adap, void *buf, u32 *buf_size,
30ad75b7d3SRahul Lakkireddy 			u32 flag);
31ad75b7d3SRahul Lakkireddy void cxgb4_init_ethtool_dump(struct adapter *adapter);
32ad75b7d3SRahul Lakkireddy #endif /* __CXGB4_CUDBG_H__ */
33