xref: /freebsd/sys/dev/dpaa/fman_port.h (revision 7a40b8a89e7da2a7e8d8e132bc37885b22e9bfb1)
1 /*
2  * Copyright (c) 2026 Justin Hibbits
3  *
4  * SPDX-License-Identifier: BSD-2-Clause
5  */
6 
7 #ifndef DPAA_FMAN_PORT_H
8 #define	DPAA_FMAN_PORT_H
9 
10 #define	FMAN_PORT_MAX_POOLS	4
11 struct fman_port_buffer_pool {
12 	uint8_t bpid;
13 	uint16_t size;
14 };
15 
16 struct fman_port_params {
17 	uint32_t dflt_fqid;	/* Must not be 0 */
18 	uint32_t err_fqid;
19 	union {
20 		struct {
21 			int num_pools;
22 			struct fman_port_buffer_pool bpools[FMAN_PORT_MAX_POOLS];
23 		} rx_params;
24 		struct {
25 		} tx_params;
26 	};
27 };
28 
29 #endif
30