logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

mrvl_cn10k_dpi.h (972B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Marvell Octeon CN10K DPI driver
  4. *
  5. * Copyright (C) 2024 Marvell.
  6. *
  7. */
  8. #ifndef __MRVL_CN10K_DPI_H__
  9. #define __MRVL_CN10K_DPI_H__
  10. #include <linux/types.h>
  11. #define DPI_MAX_ENGINES 6
  12. struct dpi_mps_mrrs_cfg {
  13. __u16 max_read_req_sz; /* Max read request size */
  14. __u16 max_payload_sz; /* Max payload size */
  15. __u16 port; /* Ebus port */
  16. __u16 reserved; /* Reserved */
  17. };
  18. struct dpi_engine_cfg {
  19. __u64 fifo_mask; /* FIFO size mask in KBytes */
  20. __u16 molr[DPI_MAX_ENGINES]; /* Max outstanding load requests */
  21. __u16 update_molr; /* '1' to update engine MOLR */
  22. __u16 reserved; /* Reserved */
  23. };
  24. /* DPI ioctl numbers */
  25. #define DPI_MAGIC_NUM 0xB8
  26. /* Set MPS & MRRS parameters */
  27. #define DPI_MPS_MRRS_CFG _IOW(DPI_MAGIC_NUM, 1, struct dpi_mps_mrrs_cfg)
  28. /* Set Engine FIFO configuration */
  29. #define DPI_ENGINE_CFG _IOW(DPI_MAGIC_NUM, 2, struct dpi_engine_cfg)
  30. #endif /* __MRVL_CN10K_DPI_H__ */