Define an instruction structure for gce driver to append command. This structure can make the client's code more readability.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -20,6 +20,16 @@ · 19 unmodified lines | ||
| 20 | 20 | #define CMDQ_WFE_WAIT BIT(15) |
| 21 | 21 | #define CMDQ_WFE_WAIT_VALUE 0x1 |
| 22 | 22 | |
| 23 | +/* | |
| 24 | + * WFE arg_b | |
| 25 | + * bit 0-11: wait value | |
| 26 | + * bit 15: 1 - wait, 0 - no wait | |
| 27 | + * bit 16-27: update value | |
| 28 | + * bit 31: 1 - update, 0 - no update | |
| 29 | + */ | |
| 30 | +#define CMDQ_WFE_OPTION (CMDQ_WFE_UPDATE | CMDQ_WFE_WAIT | \ | |
| 31 | + CMDQ_WFE_WAIT_VALUE) | |
| 32 | + | |
| 23 | 33 | /** cmdq event maximum */ |
| 24 | 34 | #define CMDQ_MAX_EVENT 0x3ff |
| 25 | 35 | |