2 * Copyright (C) 2017 Chelsio Communications. All rights reserved.
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.
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
13 * The full GNU General Public License is included in this distribution in
14 * the file called "COPYING".
18 #ifndef __CUDBG_LIB_H__
19 #define __CUDBG_LIB_H__
21 int cudbg_collect_reg_dump(struct cudbg_init *pdbg_init,
22 struct cudbg_buffer *dbg_buff,
23 struct cudbg_error *cudbg_err);
24 int cudbg_collect_edc0_meminfo(struct cudbg_init *pdbg_init,
25 struct cudbg_buffer *dbg_buff,
26 struct cudbg_error *cudbg_err);
27 int cudbg_collect_edc1_meminfo(struct cudbg_init *pdbg_init,
28 struct cudbg_buffer *dbg_buff,
29 struct cudbg_error *cudbg_err);
31 struct cudbg_entity_hdr *cudbg_get_entity_hdr(void *outbuf, int i);
32 void cudbg_align_debug_buffer(struct cudbg_buffer *dbg_buff,
33 struct cudbg_entity_hdr *entity_hdr);
34 #endif /* __CUDBG_LIB_H__ */