xref: /openbmc/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.h (revision 0791faebfe750292a8a842b64795a390ca4a3b51)
187444254SRoy Sun /* SPDX-License-Identifier: MIT
287444254SRoy Sun  * Copyright 2021 Advanced Micro Devices, Inc.
387444254SRoy Sun  *
487444254SRoy Sun  * Permission is hereby granted, free of charge, to any person obtaining a
587444254SRoy Sun  * copy of this software and associated documentation files (the "Software"),
687444254SRoy Sun  * to deal in the Software without restriction, including without limitation
787444254SRoy Sun  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
887444254SRoy Sun  * and/or sell copies of the Software, and to permit persons to whom the
987444254SRoy Sun  * Software is furnished to do so, subject to the following conditions:
1087444254SRoy Sun  *
1187444254SRoy Sun  * The above copyright notice and this permission notice shall be included in
1287444254SRoy Sun  * all copies or substantial portions of the Software.
1387444254SRoy Sun  *
1487444254SRoy Sun  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1587444254SRoy Sun  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1687444254SRoy Sun  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1787444254SRoy Sun  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1887444254SRoy Sun  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1987444254SRoy Sun  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2087444254SRoy Sun  * OTHER DEALINGS IN THE SOFTWARE.
2187444254SRoy Sun  *
2287444254SRoy Sun  * Authors: David Nieto
2387444254SRoy Sun  *          Roy Sun
2487444254SRoy Sun  */
2587444254SRoy Sun #ifndef __AMDGPU_SMI_H__
2687444254SRoy Sun #define __AMDGPU_SMI_H__
2787444254SRoy Sun 
2887444254SRoy Sun #include <linux/idr.h>
2987444254SRoy Sun #include <linux/kfifo.h>
3087444254SRoy Sun #include <linux/rbtree.h>
3187444254SRoy Sun #include <drm/gpu_scheduler.h>
3287444254SRoy Sun #include <drm/drm_file.h>
3387444254SRoy Sun #include <linux/sched/mm.h>
3487444254SRoy Sun 
3587444254SRoy Sun #include "amdgpu_sync.h"
3687444254SRoy Sun #include "amdgpu_ring.h"
3787444254SRoy Sun #include "amdgpu_ids.h"
3887444254SRoy Sun 
3987444254SRoy Sun uint32_t amdgpu_get_ip_count(struct amdgpu_device *adev, int id);
40*376c25f8SRob Clark void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file);
4187444254SRoy Sun 
4287444254SRoy Sun #endif
43