17e6ad46Vishal Kulkarni/*
27e6ad46Vishal Kulkarni * This file and its contents are supplied under the terms of the
37e6ad46Vishal Kulkarni * Common Development and Distribution License ("CDDL"), version 1.0.
47e6ad46Vishal Kulkarni * You may only use this file in accordance with the terms of version
57e6ad46Vishal Kulkarni * 1.0 of the CDDL.
67e6ad46Vishal Kulkarni *
77e6ad46Vishal Kulkarni * A full copy of the text of the CDDL should have accompanied this
87e6ad46Vishal Kulkarni * source.  A copy of the CDDL is also available via the Internet at
97e6ad46Vishal Kulkarni * http://www.illumos.org/license/CDDL.
107e6ad46Vishal Kulkarni */
117e6ad46Vishal Kulkarni
127e6ad46Vishal Kulkarni/*
137e6ad46Vishal Kulkarni * Copyright (c) 2019 by Chelsio Communications, Inc.
147e6ad46Vishal Kulkarni */
157e6ad46Vishal Kulkarni
167e6ad46Vishal Kulkarni#ifndef __CUDBG_ENTITY_COMPAT_H__
177e6ad46Vishal Kulkarni#define __CUDBG_ENTITY_COMPAT_H__
187e6ad46Vishal Kulkarni
197e6ad46Vishal Kulkarni#include "cudbg_entity.h"
207e6ad46Vishal Kulkarni
217e6ad46Vishal Kulkarnistruct cudbg_ulptx_la_rev0 {
227e6ad46Vishal Kulkarni	u32 rdptr[CUDBG_NUM_ULPTX];
237e6ad46Vishal Kulkarni	u32 wrptr[CUDBG_NUM_ULPTX];
247e6ad46Vishal Kulkarni	u32 rddata[CUDBG_NUM_ULPTX];
257e6ad46Vishal Kulkarni	u32 rd_data[CUDBG_NUM_ULPTX][CUDBG_NUM_ULPTX_READ];
267e6ad46Vishal Kulkarni};
277e6ad46Vishal Kulkarni
287e6ad46Vishal Kulkarnistruct struct_meminfo_rev0 {
297e6ad46Vishal Kulkarni	struct struct_mem_desc avail[4];
307e6ad46Vishal Kulkarni	struct struct_mem_desc mem[ARRAY_SIZE(region) + 3];
317e6ad46Vishal Kulkarni	u32 avail_c;
327e6ad46Vishal Kulkarni	u32 mem_c;
337e6ad46Vishal Kulkarni	u32 up_ram_lo;
347e6ad46Vishal Kulkarni	u32 up_ram_hi;
357e6ad46Vishal Kulkarni	u32 up_extmem2_lo;
367e6ad46Vishal Kulkarni	u32 up_extmem2_hi;
377e6ad46Vishal Kulkarni	u32 rx_pages_data[3];
387e6ad46Vishal Kulkarni	u32 tx_pages_data[4];
397e6ad46Vishal Kulkarni	u32 p_structs;
407e6ad46Vishal Kulkarni	struct struct_port_usage port_data[4];
417e6ad46Vishal Kulkarni	u32 port_used[4];
427e6ad46Vishal Kulkarni	u32 port_alloc[4];
437e6ad46Vishal Kulkarni	u32 loopback_used[NCHAN];
447e6ad46Vishal Kulkarni	u32 loopback_alloc[NCHAN];
457e6ad46Vishal Kulkarni};
467e6ad46Vishal Kulkarni
477e6ad46Vishal Kulkarniint view_ulptx_la_rev0(void *, struct cudbg_buffer *);
487e6ad46Vishal Kulkarni
497e6ad46Vishal Kulkarni#endif
50