diff options
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 17604d32..aa950dfa 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -1576,6 +1576,14 @@ struct nvgpu_sched_tsg_runlist_interleave_args { | |||
1576 | __u32 runlist_interleave; | 1576 | __u32 runlist_interleave; |
1577 | }; | 1577 | }; |
1578 | 1578 | ||
1579 | struct nvgpu_sched_api_version_args { | ||
1580 | __u32 version; | ||
1581 | }; | ||
1582 | |||
1583 | struct nvgpu_sched_tsg_refcount_args { | ||
1584 | __u32 tsgid; /* in: TSG identifier */ | ||
1585 | }; | ||
1586 | |||
1579 | #define NVGPU_SCHED_IOCTL_GET_TSGS \ | 1587 | #define NVGPU_SCHED_IOCTL_GET_TSGS \ |
1580 | _IOWR(NVGPU_SCHED_IOCTL_MAGIC, 1, \ | 1588 | _IOWR(NVGPU_SCHED_IOCTL_MAGIC, 1, \ |
1581 | struct nvgpu_sched_get_tsgs_args) | 1589 | struct nvgpu_sched_get_tsgs_args) |
@@ -1598,9 +1606,17 @@ struct nvgpu_sched_tsg_runlist_interleave_args { | |||
1598 | _IO(NVGPU_SCHED_IOCTL_MAGIC, 7) | 1606 | _IO(NVGPU_SCHED_IOCTL_MAGIC, 7) |
1599 | #define NVGPU_SCHED_IOCTL_UNLOCK_CONTROL \ | 1607 | #define NVGPU_SCHED_IOCTL_UNLOCK_CONTROL \ |
1600 | _IO(NVGPU_SCHED_IOCTL_MAGIC, 8) | 1608 | _IO(NVGPU_SCHED_IOCTL_MAGIC, 8) |
1601 | 1609 | #define NVGPU_SCHED_IOCTL_GET_API_VERSION \ | |
1610 | _IOR(NVGPU_SCHED_IOCTL_MAGIC, 9, \ | ||
1611 | struct nvgpu_sched_api_version_args) | ||
1612 | #define NVGPU_SCHED_IOCTL_GET_TSG \ | ||
1613 | _IOW(NVGPU_SCHED_IOCTL_MAGIC, 10, \ | ||
1614 | struct nvgpu_sched_tsg_refcount_args) | ||
1615 | #define NVGPU_SCHED_IOCTL_PUT_TSG \ | ||
1616 | _IOW(NVGPU_SCHED_IOCTL_MAGIC, 11, \ | ||
1617 | struct nvgpu_sched_tsg_refcount_args) | ||
1602 | #define NVGPU_SCHED_IOCTL_LAST \ | 1618 | #define NVGPU_SCHED_IOCTL_LAST \ |
1603 | _IOC_NR(NVGPU_SCHED_IOCTL_UNLOCK_CONTROL) | 1619 | _IOC_NR(NVGPU_SCHED_IOCTL_PUT_TSG) |
1604 | 1620 | ||
1605 | #define NVGPU_SCHED_IOCTL_MAX_ARG_SIZE \ | 1621 | #define NVGPU_SCHED_IOCTL_MAX_ARG_SIZE \ |
1606 | sizeof(struct nvgpu_sched_tsg_get_params_args) | 1622 | sizeof(struct nvgpu_sched_tsg_get_params_args) |
@@ -1620,4 +1636,6 @@ struct nvgpu_sched_event_arg { | |||
1620 | __u64 status; | 1636 | __u64 status; |
1621 | }; | 1637 | }; |
1622 | 1638 | ||
1639 | #define NVGPU_SCHED_API_VERSION 1 | ||
1640 | |||
1623 | #endif | 1641 | #endif |