The values in this enum are not used by h/w but are a contract between userspace and the kernel driver so they must be defined in the uapi file.
Showing the changes to include/uapi/misc (1 of 3 files). Show all
Unified · Split
| @@ -275,6 +275,33 @@ enum hl_gaudi_pll_index { · 274 unmodified lines | |||
| 275 | HL_GAUDI_PLL_MAX | 275 | HL_GAUDI_PLL_MAX |
| 276 | }; | 276 | }; |
| 277 | 277 | ||
| 278 | /** | ||
| 279 | * enum hl_goya_dma_direction - Direction of DMA operation inside a LIN_DMA packet that is | ||
| 280 | * submitted to the GOYA's DMA QMAN. This attribute is not relevant | ||
| 281 | * to the H/W but the kernel driver use it to parse the packet's | ||
| 282 | * addresses and patch/validate them. | ||
| 283 | * @HL_DMA_HOST_TO_DRAM: DMA operation from Host memory to GOYA's DDR. | ||
| 284 | * @HL_DMA_HOST_TO_SRAM: DMA operation from Host memory to GOYA's SRAM. | ||
| 285 | * @HL_DMA_DRAM_TO_SRAM: DMA operation from GOYA's DDR to GOYA's SRAM. | ||
| 286 | * @HL_DMA_SRAM_TO_DRAM: DMA operation from GOYA's SRAM to GOYA's DDR. | ||
| 287 | * @HL_DMA_SRAM_TO_HOST: DMA operation from GOYA's SRAM to Host memory. | ||
| 288 | * @HL_DMA_DRAM_TO_HOST: DMA operation from GOYA's DDR to Host memory. | ||
| 289 | * @HL_DMA_DRAM_TO_DRAM: DMA operation from GOYA's DDR to GOYA's DDR. | ||
| 290 | * @HL_DMA_SRAM_TO_SRAM: DMA operation from GOYA's SRAM to GOYA's SRAM. | ||
| 291 | * @HL_DMA_ENUM_MAX: number of values in enum | ||
| 292 | */ | ||
| 293 | enum hl_goya_dma_direction { | ||
| 294 | HL_DMA_HOST_TO_DRAM, | ||
| 295 | HL_DMA_HOST_TO_SRAM, | ||
| 296 | HL_DMA_DRAM_TO_SRAM, | ||
| 297 | HL_DMA_SRAM_TO_DRAM, | ||
| 298 | HL_DMA_SRAM_TO_HOST, | ||
| 299 | HL_DMA_DRAM_TO_HOST, | ||
| 300 | HL_DMA_DRAM_TO_DRAM, | ||
| 301 | HL_DMA_SRAM_TO_SRAM, | ||
| 302 | HL_DMA_ENUM_MAX | ||
| 303 | }; | ||
| 304 | |||
| 278 | /** | 305 | /** |
| 279 | * enum hl_device_status - Device status information. | 306 | * enum hl_device_status - Device status information. |
| 280 | * @HL_DEVICE_STATUS_OPERATIONAL: Device is operational. | 307 | * @HL_DEVICE_STATUS_OPERATIONAL: Device is operational. |