/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LMAC_HOST_PORT_IF__ #define __LMAC_HOST_PORT_IF__ #include "lmac_if.h" #include "lmac_if_common.h" void RPU_read_mem(unsigned char *src, unsigned char *dst, unsigned int size); void RPU_write_mem(unsigned char *dst, unsigned char *data, unsigned int size); unsigned int RPU_read_word(unsigned int *src); void RPU_write_word(unsigned int *src, unsigned int data); void hpqm_init(unsigned long rpu_gram_base_addr, struct lmac_fw_config_params *params); void hpqm_rpu_isr_en(unsigned long rpu_sysbus_base_addr, struct lmac_fw_config_params *params); void hpqm_rpu_assert_isr(unsigned long rpu_sysbus_base_addr, struct lmac_fw_config_params *params); void hpqm_rpu_isr_clear(unsigned long rpu_sysbus_base_addr, struct lmac_fw_config_params *params); unsigned int hpqm_get_cmd_buf_ptr(unsigned long rpu_perip_base_addr, struct lmac_fw_config_params *params); void hpqm_submit_cmd_buf_ptr(unsigned long rpu_sysbus_base_addr, unsigned long rpu_perip_base_addr, unsigned int gramCmdPtr, struct lmac_fw_config_params *params); unsigned int hpqm_get_event_ptr(unsigned long rpu_perip_base_addr, struct lmac_fw_config_params *params); void hpqm_free_event_ptr(unsigned long rpu_perip_base_addr, unsigned long rpu_gram_base_addr, unsigned int event_ptr); unsigned int hpqm_submit_macHdr_ptr(unsigned long rpu_perip_base_addr, struct lmac_fw_config_params *params, unsigned long *skb_ptr); #endif /*__HOST_PORT_IF__*/