File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 28
28
#define VCMD_CMD_ALLOC 0x1
29
29
#define VCMD_CMD_FREE 0x2
30
30
#define VCMD_VRSP_IP 0x1
31
- #define VCMD_VRSP_SC (e ) (((e) >> 1) & 0x3 )
31
+ #define VCMD_VRSP_SC (e ) (((e) & 0xff) >> 1 )
32
32
#define VCMD_VRSP_SC_SUCCESS 0
33
- #define VCMD_VRSP_SC_NO_PASID_AVAIL 2
34
- #define VCMD_VRSP_SC_INVALID_PASID 2
35
- #define VCMD_VRSP_RESULT_PASID (e ) (((e) >> 8 ) & 0xfffff)
36
- #define VCMD_CMD_OPERAND (e ) ((e) << 8 )
33
+ #define VCMD_VRSP_SC_NO_PASID_AVAIL 16
34
+ #define VCMD_VRSP_SC_INVALID_PASID 16
35
+ #define VCMD_VRSP_RESULT_PASID (e ) (((e) >> 16 ) & 0xfffff)
36
+ #define VCMD_CMD_OPERAND (e ) ((e) << 16 )
37
37
/*
38
38
* Domain ID reserved for pasid entries programmed for first-level
39
39
* only and pass-through transfer modes.
Original file line number Diff line number Diff line change 124
124
#define DMAR_MTRR_PHYSMASK8_REG 0x208
125
125
#define DMAR_MTRR_PHYSBASE9_REG 0x210
126
126
#define DMAR_MTRR_PHYSMASK9_REG 0x218
127
- #define DMAR_VCCAP_REG 0xe00 /* Virtual command capability register */
128
- #define DMAR_VCMD_REG 0xe10 /* Virtual command register */
129
- #define DMAR_VCRSP_REG 0xe20 /* Virtual command response register */
127
+ #define DMAR_VCCAP_REG 0xe30 /* Virtual command capability register */
128
+ #define DMAR_VCMD_REG 0xe00 /* Virtual command register */
129
+ #define DMAR_VCRSP_REG 0xe10 /* Virtual command response register */
130
130
131
131
#define DMAR_IQER_REG_IQEI (reg ) FIELD_GET(GENMASK_ULL(3, 0), reg)
132
132
#define DMAR_IQER_REG_ITESID (reg ) FIELD_GET(GENMASK_ULL(47, 32), reg)
You can’t perform that action at this time.
0 commit comments