| .. | .. |
|---|
| 24 | 24 | #ifndef _I915_PVINFO_H_ |
|---|
| 25 | 25 | #define _I915_PVINFO_H_ |
|---|
| 26 | 26 | |
|---|
| 27 | +#include <linux/types.h> |
|---|
| 28 | + |
|---|
| 27 | 29 | /* The MMIO offset of the shared info between guest and host emulator */ |
|---|
| 28 | 30 | #define VGT_PVINFO_PAGE 0x78000 |
|---|
| 29 | 31 | #define VGT_PVINFO_SIZE 0x1000 |
|---|
| .. | .. |
|---|
| 52 | 54 | /* |
|---|
| 53 | 55 | * VGT capabilities type |
|---|
| 54 | 56 | */ |
|---|
| 55 | | -#define VGT_CAPS_FULL_48BIT_PPGTT BIT(2) |
|---|
| 57 | +#define VGT_CAPS_FULL_PPGTT BIT(2) |
|---|
| 56 | 58 | #define VGT_CAPS_HWSP_EMULATION BIT(3) |
|---|
| 57 | 59 | #define VGT_CAPS_HUGE_GTT BIT(4) |
|---|
| 58 | 60 | |
|---|
| .. | .. |
|---|
| 110 | 112 | u32 rsv7[0x200 - 24]; /* pad to one page */ |
|---|
| 111 | 113 | } __packed; |
|---|
| 112 | 114 | |
|---|
| 113 | | -#define vgtif_reg(x) \ |
|---|
| 114 | | - _MMIO((VGT_PVINFO_PAGE + offsetof(struct vgt_if, x))) |
|---|
| 115 | +#define vgtif_offset(x) (offsetof(struct vgt_if, x)) |
|---|
| 116 | + |
|---|
| 117 | +#define vgtif_reg(x) _MMIO(VGT_PVINFO_PAGE + vgtif_offset(x)) |
|---|
| 115 | 118 | |
|---|
| 116 | 119 | /* vGPU display status to be used by the host side */ |
|---|
| 117 | 120 | #define VGT_DRV_DISPLAY_NOT_READY 0 |
|---|