forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/rknpu/include/rknpu_ioctl.h
....@@ -25,7 +25,6 @@
2525 #define RKNPU_OFFSET_PC_DATA_AMOUNT 0x14
2626 #define RKNPU_OFFSET_PC_TASK_CONTROL 0x30
2727 #define RKNPU_OFFSET_PC_DMA_BASE_ADDR 0x34
28
-#define RKNPU_OFFSET_PC_TASK_STATUS 0x3c
2928
3029 #define RKNPU_OFFSET_INT_MASK 0x20
3130 #define RKNPU_OFFSET_INT_CLEAR 0x24
....@@ -74,15 +73,17 @@
7473 RKNPU_MEM_ZEROING = 1 << 5,
7574 /* allocate secure buffer */
7675 RKNPU_MEM_SECURE = 1 << 6,
77
- /* allocate from non-dma32 zone */
78
- RKNPU_MEM_NON_DMA32 = 1 << 7,
76
+ /* allocate from dma32 zone */
77
+ RKNPU_MEM_DMA32 = 1 << 7,
7978 /* request SRAM */
8079 RKNPU_MEM_TRY_ALLOC_SRAM = 1 << 8,
80
+ /* request NBUF */
81
+ RKNPU_MEM_TRY_ALLOC_NBUF = 1 << 9,
8182 RKNPU_MEM_MASK = RKNPU_MEM_NON_CONTIGUOUS | RKNPU_MEM_CACHEABLE |
8283 RKNPU_MEM_WRITE_COMBINE | RKNPU_MEM_KERNEL_MAPPING |
8384 RKNPU_MEM_IOMMU | RKNPU_MEM_ZEROING |
84
- RKNPU_MEM_SECURE | RKNPU_MEM_NON_DMA32 |
85
- RKNPU_MEM_TRY_ALLOC_SRAM
85
+ RKNPU_MEM_SECURE | RKNPU_MEM_DMA32 |
86
+ RKNPU_MEM_TRY_ALLOC_SRAM | RKNPU_MEM_TRY_ALLOC_NBUF
8687 };
8788
8889 /* sync mode definitions. */