File: mrvl_cn10k_dpi.h

package info (click to toggle)
linux 6.12.73-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 1,675,820 kB
  • sloc: ansic: 25,915,858; asm: 269,648; sh: 136,658; python: 65,456; makefile: 55,721; perl: 37,753; xml: 19,284; cpp: 5,895; yacc: 4,927; lex: 2,939; awk: 1,594; sed: 28; ruby: 25
file content (39 lines) | stat: -rw-r--r-- 972 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * Marvell Octeon CN10K DPI driver
 *
 * Copyright (C) 2024 Marvell.
 *
 */

#ifndef __MRVL_CN10K_DPI_H__
#define __MRVL_CN10K_DPI_H__

#include <linux/types.h>

#define DPI_MAX_ENGINES 6

struct dpi_mps_mrrs_cfg {
	__u16 max_read_req_sz; /* Max read request size */
	__u16 max_payload_sz;  /* Max payload size */
	__u16 port; /* Ebus port */
	__u16 reserved; /* Reserved */
};

struct dpi_engine_cfg {
	__u64 fifo_mask; /* FIFO size mask in KBytes */
	__u16 molr[DPI_MAX_ENGINES]; /* Max outstanding load requests */
	__u16 update_molr; /* '1' to update engine MOLR */
	__u16 reserved; /* Reserved */
};

/* DPI ioctl numbers */
#define DPI_MAGIC_NUM	0xB8

/* Set MPS & MRRS parameters */
#define DPI_MPS_MRRS_CFG _IOW(DPI_MAGIC_NUM, 1, struct dpi_mps_mrrs_cfg)

/* Set Engine FIFO configuration */
#define DPI_ENGINE_CFG   _IOW(DPI_MAGIC_NUM, 2, struct dpi_engine_cfg)

#endif /* __MRVL_CN10K_DPI_H__ */