diff options
| author | Oded Gabbay <oded.gabbay@gmail.com> | 2019-03-07 07:20:05 -0500 |
|---|---|---|
| committer | Oded Gabbay <oded.gabbay@gmail.com> | 2019-03-07 07:20:05 -0500 |
| commit | e1266004872c837db4ed8a72f066820ebb5d5353 (patch) | |
| tree | 341e3ecdea71404ea7aa63b7af261780cf45c0c2 /include/uapi/misc | |
| parent | 393e5b55e2228fdb8382cca78b2b1dcae2b17590 (diff) | |
uapi/habanalabs: add some comments in habanalabs.h
This patch adds two comments in uapi/habanalabs.h:
- From which queue id the internal queues begin
- Invalid values that can be returned in the seq field from the CS IOCTL
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'include/uapi/misc')
| -rw-r--r-- | include/uapi/misc/habanalabs.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h index 7fd6f633534c..ab1957e31077 100644 --- a/include/uapi/misc/habanalabs.h +++ b/include/uapi/misc/habanalabs.h | |||
| @@ -33,7 +33,7 @@ enum goya_queue_id { | |||
| 33 | GOYA_QUEUE_ID_DMA_3, | 33 | GOYA_QUEUE_ID_DMA_3, |
| 34 | GOYA_QUEUE_ID_DMA_4, | 34 | GOYA_QUEUE_ID_DMA_4, |
| 35 | GOYA_QUEUE_ID_CPU_PQ, | 35 | GOYA_QUEUE_ID_CPU_PQ, |
| 36 | GOYA_QUEUE_ID_MME, | 36 | GOYA_QUEUE_ID_MME, /* Internal queues start here */ |
| 37 | GOYA_QUEUE_ID_TPC0, | 37 | GOYA_QUEUE_ID_TPC0, |
| 38 | GOYA_QUEUE_ID_TPC1, | 38 | GOYA_QUEUE_ID_TPC1, |
| 39 | GOYA_QUEUE_ID_TPC2, | 39 | GOYA_QUEUE_ID_TPC2, |
| @@ -181,7 +181,10 @@ struct hl_cs_in { | |||
| 181 | }; | 181 | }; |
| 182 | 182 | ||
| 183 | struct hl_cs_out { | 183 | struct hl_cs_out { |
| 184 | /* this holds the sequence number of the CS to pass to wait ioctl */ | 184 | /* |
| 185 | * seq holds the sequence number of the CS to pass to wait ioctl. All | ||
| 186 | * values are valid except for 0 and ULLONG_MAX | ||
| 187 | */ | ||
| 185 | __u64 seq; | 188 | __u64 seq; |
| 186 | /* HL_CS_STATUS_* */ | 189 | /* HL_CS_STATUS_* */ |
| 187 | __u32 status; | 190 | __u32 status; |
