xref: /linux/drivers/iommu/generic_pt/fmt/defs_x86_64.h (revision ce5cfb0fa20dc6454da039612e34325b7b4a8243)
1*aef5de75SJason Gunthorpe /* SPDX-License-Identifier: GPL-2.0-only */
2*aef5de75SJason Gunthorpe /*
3*aef5de75SJason Gunthorpe  * Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES
4*aef5de75SJason Gunthorpe  *
5*aef5de75SJason Gunthorpe  */
6*aef5de75SJason Gunthorpe #ifndef __GENERIC_PT_FMT_DEFS_X86_64_H
7*aef5de75SJason Gunthorpe #define __GENERIC_PT_FMT_DEFS_X86_64_H
8*aef5de75SJason Gunthorpe 
9*aef5de75SJason Gunthorpe #include <linux/generic_pt/common.h>
10*aef5de75SJason Gunthorpe #include <linux/types.h>
11*aef5de75SJason Gunthorpe 
12*aef5de75SJason Gunthorpe typedef u64 pt_vaddr_t;
13*aef5de75SJason Gunthorpe typedef u64 pt_oaddr_t;
14*aef5de75SJason Gunthorpe 
15*aef5de75SJason Gunthorpe struct x86_64_pt_write_attrs {
16*aef5de75SJason Gunthorpe 	u64 descriptor_bits;
17*aef5de75SJason Gunthorpe 	gfp_t gfp;
18*aef5de75SJason Gunthorpe };
19*aef5de75SJason Gunthorpe #define pt_write_attrs x86_64_pt_write_attrs
20*aef5de75SJason Gunthorpe 
21*aef5de75SJason Gunthorpe #endif
22