Add Broadcom / Netgear changes from RAXE 1.0.0.48
[project/bcm63xx/u-boot.git] / arch / arm / mach-bcmbca / xrdp / rdpa_gpl_sbpm.h
diff --git a/arch/arm/mach-bcmbca/xrdp/rdpa_gpl_sbpm.h b/arch/arm/mach-bcmbca/xrdp/rdpa_gpl_sbpm.h
new file mode 100644 (file)
index 0000000..025385a
--- /dev/null
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2019 Broadcom
+ */
+/*
+       
+*/
+
+#ifndef _RDP_DRV_SBPM_H_
+#define _RDP_DRV_SBPM_H_
+
+#include <linux/types.h>
+#include <bdmf_errno.h>
+
+#define SBPM_BUF_SIZE 128
+
+bdmf_error_t drv_sbpm_copy_list(uint16_t bn, uint8_t *dest_buffer);
+bdmf_error_t drv_sbpm_alloc_list(uint32_t size, uint32_t headroom,
+                                uint8_t *data, uint16_t *bn0, uint16_t *bn1,
+                                uint8_t *bns_num);
+bdmf_error_t drv_sbpm_free_list(uint16_t head_bn);
+
+#endif