xref: /illumos-gate/usr/src/cmd/cxgbetool/cudbg_view_compat.h (revision 3665ce8aeee26b1a84fb98951ef011e0779e1ae2)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright (c) 2019 by Chelsio Communications, Inc.
14  */
15 
16 #ifndef __CUDBG_ENTITY_COMPAT_H__
17 #define __CUDBG_ENTITY_COMPAT_H__
18 
19 #include "cudbg_entity.h"
20 
21 struct cudbg_ulptx_la_rev0 {
22 	u32 rdptr[CUDBG_NUM_ULPTX];
23 	u32 wrptr[CUDBG_NUM_ULPTX];
24 	u32 rddata[CUDBG_NUM_ULPTX];
25 	u32 rd_data[CUDBG_NUM_ULPTX][CUDBG_NUM_ULPTX_READ];
26 };
27 
28 struct struct_meminfo_rev0 {
29 	struct struct_mem_desc avail[4];
30 	struct struct_mem_desc mem[ARRAY_SIZE(region) + 3];
31 	u32 avail_c;
32 	u32 mem_c;
33 	u32 up_ram_lo;
34 	u32 up_ram_hi;
35 	u32 up_extmem2_lo;
36 	u32 up_extmem2_hi;
37 	u32 rx_pages_data[3];
38 	u32 tx_pages_data[4];
39 	u32 p_structs;
40 	struct struct_port_usage port_data[4];
41 	u32 port_used[4];
42 	u32 port_alloc[4];
43 	u32 loopback_used[NCHAN];
44 	u32 loopback_alloc[NCHAN];
45 };
46 
47 int view_ulptx_la_rev0(void *, struct cudbg_buffer *);
48 
49 #endif
50