aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dpaa/fman_port.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/dpaa/fman_port.h')
-rw-r--r--sys/dev/dpaa/fman_port.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/dev/dpaa/fman_port.h b/sys/dev/dpaa/fman_port.h
new file mode 100644
index 000000000000..8803c5e5f7c9
--- /dev/null
+++ b/sys/dev/dpaa/fman_port.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2026 Justin Hibbits
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#ifndef DPAA_FMAN_PORT_H
+#define DPAA_FMAN_PORT_H
+
+#define FMAN_PORT_MAX_POOLS 4
+struct fman_port_buffer_pool {
+ uint8_t bpid;
+ uint16_t size;
+};
+
+struct fman_port_params {
+ uint32_t dflt_fqid; /* Must not be 0 */
+ uint32_t err_fqid;
+ union {
+ struct {
+ int num_pools;
+ struct fman_port_buffer_pool bpools[FMAN_PORT_MAX_POOLS];
+ } rx_params;
+ struct {
+ } tx_params;
+ };
+};
+
+#endif