1156283Srwatson/*	$NetBSD: vmid.h,v 1.2 2021/12/18 23:45:05 riastradh Exp $	*/
2156283Srwatson
3156283Srwatson/*
4156283Srwatson * Copyright 2018 Advanced Micro Devices, Inc.
5156283Srwatson *
6156283Srwatson * Permission is hereby granted, free of charge, to any person obtaining a
7156283Srwatson * copy of this software and associated documentation files (the "Software"),
8156283Srwatson * to deal in the Software without restriction, including without limitation
9156283Srwatson * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10156283Srwatson * and/or sell copies of the Software, and to permit persons to whom the
11156283Srwatson * Software is furnished to do so, subject to the following conditions:
12156283Srwatson *
13156283Srwatson * The above copyright notice and this permission notice shall be included in
14156283Srwatson * all copies or substantial portions of the Software.
15156283Srwatson *
16156283Srwatson * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17156283Srwatson * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18159248Srwatson * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19156283Srwatson * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20156283Srwatson * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21156283Srwatson * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22156283Srwatson * OTHER DEALINGS IN THE SOFTWARE.
23156283Srwatson *
24156283Srwatson * Authors: AMD
25156283Srwatson *
26156283Srwatson */
27156283Srwatson
28156283Srwatson#ifndef DAL_DC_INC_HW_VMID_H_
29156283Srwatson#define DAL_DC_INC_HW_VMID_H_
30156283Srwatson
31156283Srwatson#include "core_types.h"
32156283Srwatson#include "dchubbub.h"
33156283Srwatson
34156283Srwatsonstruct dcn_vmid_registers {
35156283Srwatson	uint32_t CNTL;
36156283Srwatson	uint32_t PAGE_TABLE_BASE_ADDR_HI32;
37156283Srwatson	uint32_t PAGE_TABLE_BASE_ADDR_LO32;
38156283Srwatson	uint32_t PAGE_TABLE_START_ADDR_HI32;
39156283Srwatson	uint32_t PAGE_TABLE_START_ADDR_LO32;
40156283Srwatson	uint32_t PAGE_TABLE_END_ADDR_HI32;
41156283Srwatson	uint32_t PAGE_TABLE_END_ADDR_LO32;
42156283Srwatson};
43156283Srwatson
44156283Srwatsonstruct dcn_vmid_page_table_config {
45156283Srwatson	uint64_t	page_table_start_addr;
46156283Srwatson	uint64_t	page_table_end_addr;
47156283Srwatson	enum dcn_hubbub_page_table_depth	depth;
48156283Srwatson	enum dcn_hubbub_page_table_block_size	block_size;
49156283Srwatson	uint64_t	page_table_base_addr;
50156283Srwatson};
51156283Srwatson
52156283Srwatson#endif /* DAL_DC_INC_HW_VMID_H_ */
53156283Srwatson