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_IF_H__
19 #define __CUDBG_IF_H__
22 #define CUDBG_STATUS_NO_MEM -19
23 #define CUDBG_STATUS_ENTITY_NOT_FOUND -24
24 #define CUDBG_SYSTEM_ERROR -29
26 #define CUDBG_MAJOR_VERSION 1
27 #define CUDBG_MINOR_VERSION 14
29 enum cudbg_dbg_entity_type {
34 CUDBG_TP_INDIRECT = 36,
36 CUDBG_MAX_ENTITY = 70,
40 struct adapter *adap; /* Pointer to adapter structure */
41 void *outbuf; /* Output buffer */
42 u32 outbuf_size; /* Output buffer size */
45 static inline unsigned int cudbg_mbytes_to_bytes(unsigned int size)
47 return size * 1024 * 1024;
49 #endif /* __CUDBG_IF_H__ */