drm/amdgpu: Introduce new SETUP_TMR interface
[linux-2.6-microblaze.git] / drivers / gpu / drm / amd / amdgpu / psp_gfx_if.h
index dd4d65f..96064c3 100644 (file)
@@ -185,10 +185,19 @@ struct psp_gfx_cmd_setup_tmr
     uint32_t        buf_phy_addr_lo;       /* bits [31:0] of GPU Virtual address of TMR buffer (must be 4 KB aligned) */
     uint32_t        buf_phy_addr_hi;       /* bits [63:32] of GPU Virtual address of TMR buffer */
     uint32_t        buf_size;              /* buffer size in bytes (must be multiple of 4 KB) */
+    union {
+       struct {
+               uint32_t        sriov_enabled:1; /* whether the device runs under SR-IOV*/
+               uint32_t        virt_phy_addr:1; /* driver passes both virtual and physical address to PSP*/
+               uint32_t        reserved:30;
+       } bitfield;
+       uint32_t        tmr_flags;
+    };
+    uint32_t        system_phy_addr_lo;        /* bits [31:0] of system physical address of TMR buffer (must be 4 KB aligned) */
+    uint32_t        system_phy_addr_hi;        /* bits [63:32] of system physical address of TMR buffer */
 
 };
 
-
 /* FW types for GFX_CMD_ID_LOAD_IP_FW command. Limit 31. */
 enum psp_gfx_fw_type {
        GFX_FW_TYPE_NONE        = 0,    /* */