Christopher Ferris | 63fcca4 | 2024-09-26 01:12:10 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
| 7 | #ifndef __MRVL_CN10K_DPI_H__ |
| 8 | #define __MRVL_CN10K_DPI_H__ |
| 9 | #include <linux/types.h> |
| 10 | #define DPI_MAX_ENGINES 6 |
| 11 | struct dpi_mps_mrrs_cfg { |
| 12 | __u16 max_read_req_sz; |
| 13 | __u16 max_payload_sz; |
| 14 | __u16 port; |
| 15 | __u16 reserved; |
| 16 | }; |
| 17 | struct dpi_engine_cfg { |
| 18 | __u64 fifo_mask; |
| 19 | __u16 molr[DPI_MAX_ENGINES]; |
| 20 | __u16 update_molr; |
| 21 | __u16 reserved; |
| 22 | }; |
| 23 | #define DPI_MAGIC_NUM 0xB8 |
| 24 | #define DPI_MPS_MRRS_CFG _IOW(DPI_MAGIC_NUM, 1, struct dpi_mps_mrrs_cfg) |
| 25 | #define DPI_ENGINE_CFG _IOW(DPI_MAGIC_NUM, 2, struct dpi_engine_cfg) |
| 26 | #endif |