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