#ifndef _CE_H_
#define _CE_H_
#include "hif.h"
#define CE_HTT_H2T_MSG_SRC_NENTRIES …
#define CE_DESC_RING_ALIGN …
#define CE_SEND_FLAG_GATHER …
struct ath10k_ce_pipe;
#define CE_DESC_FLAGS_GATHER …
#define CE_DESC_FLAGS_BYTE_SWAP …
#define CE_WCN3990_DESC_FLAGS_GATHER …
#define CE_DESC_ADDR_MASK …
#define CE_DESC_ADDR_HI_MASK …
#define CE_DESC_FLAGS_HOST_INT_DIS …
#define CE_DESC_FLAGS_TGT_INT_DIS …
#define CE_DESC_FLAGS_META_DATA_MASK …
#define CE_DESC_FLAGS_META_DATA_LSB …
#define CE_DDR_RRI_MASK …
#define CE_DDR_DRRI_SHIFT …
struct ce_desc { … };
struct ce_desc_64 { … };
#define CE_DESC_SIZE …
#define CE_DESC_SIZE_64 …
struct ath10k_ce_ring { … };
struct ath10k_ce_pipe { … };
struct ce_attr;
struct ath10k_bus_ops { … };
static inline struct ath10k_ce *ath10k_ce_priv(struct ath10k *ar)
{ … }
struct ath10k_ce { … };
#define CE_SEND_FLAG_BYTE_SWAP …
int ath10k_ce_send(struct ath10k_ce_pipe *ce_state,
void *per_transfer_send_context,
dma_addr_t buffer,
unsigned int nbytes,
unsigned int transfer_id,
unsigned int flags);
int ath10k_ce_send_nolock(struct ath10k_ce_pipe *ce_state,
void *per_transfer_context,
dma_addr_t buffer,
unsigned int nbytes,
unsigned int transfer_id,
unsigned int flags);
void __ath10k_ce_send_revert(struct ath10k_ce_pipe *pipe);
int ath10k_ce_num_free_src_entries(struct ath10k_ce_pipe *pipe);
int __ath10k_ce_rx_num_free_bufs(struct ath10k_ce_pipe *pipe);
int ath10k_ce_rx_post_buf(struct ath10k_ce_pipe *pipe, void *ctx,
dma_addr_t paddr);
void ath10k_ce_rx_update_write_idx(struct ath10k_ce_pipe *pipe, u32 nentries);
#define CE_RECV_FLAG_SWAPPED …
int ath10k_ce_completed_recv_next(struct ath10k_ce_pipe *ce_state,
void **per_transfer_contextp,
unsigned int *nbytesp);
int ath10k_ce_completed_send_next(struct ath10k_ce_pipe *ce_state,
void **per_transfer_contextp);
int ath10k_ce_completed_send_next_nolock(struct ath10k_ce_pipe *ce_state,
void **per_transfer_contextp);
int ath10k_ce_init_pipe(struct ath10k *ar, unsigned int ce_id,
const struct ce_attr *attr);
void ath10k_ce_deinit_pipe(struct ath10k *ar, unsigned int ce_id);
int ath10k_ce_alloc_pipe(struct ath10k *ar, int ce_id,
const struct ce_attr *attr);
void ath10k_ce_free_pipe(struct ath10k *ar, int ce_id);
int ath10k_ce_revoke_recv_next(struct ath10k_ce_pipe *ce_state,
void **per_transfer_contextp,
dma_addr_t *bufferp);
int ath10k_ce_completed_recv_next_nolock(struct ath10k_ce_pipe *ce_state,
void **per_transfer_contextp,
unsigned int *nbytesp);
int ath10k_ce_cancel_send_next(struct ath10k_ce_pipe *ce_state,
void **per_transfer_contextp,
dma_addr_t *bufferp,
unsigned int *nbytesp,
unsigned int *transfer_idp);
void ath10k_ce_per_engine_service_any(struct ath10k *ar);
void ath10k_ce_per_engine_service(struct ath10k *ar, unsigned int ce_id);
void ath10k_ce_disable_interrupt(struct ath10k *ar, int ce_id);
void ath10k_ce_disable_interrupts(struct ath10k *ar);
void ath10k_ce_enable_interrupt(struct ath10k *ar, int ce_id);
void ath10k_ce_enable_interrupts(struct ath10k *ar);
void ath10k_ce_dump_registers(struct ath10k *ar,
struct ath10k_fw_crash_data *crash_data);
void ath10k_ce_alloc_rri(struct ath10k *ar);
void ath10k_ce_free_rri(struct ath10k *ar);
#define CE_ATTR_NO_SNOOP …
#define CE_ATTR_BYTE_SWAP_DATA …
#define CE_ATTR_SWIZZLE_DESCRIPTORS …
#define CE_ATTR_DIS_INTR …
#define CE_ATTR_POLL …
struct ce_attr { … };
struct ath10k_ce_ops { … };
static inline u32 ath10k_ce_base_address(struct ath10k *ar, unsigned int ce_id)
{ … }
#define COPY_ENGINE_ID(COPY_ENGINE_BASE_ADDRESS) …
#define CE_SRC_RING_TO_DESC(baddr, idx) …
#define CE_DEST_RING_TO_DESC(baddr, idx) …
#define CE_SRC_RING_TO_DESC_64(baddr, idx) …
#define CE_DEST_RING_TO_DESC_64(baddr, idx) …
#define CE_RING_DELTA(nentries_mask, fromidx, toidx) …
#define CE_RING_IDX_INCR(nentries_mask, idx) …
#define CE_RING_IDX_ADD(nentries_mask, idx, num) …
#define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB …
#define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK …
#define CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_GET(x) …
#define CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS …
static inline u32 ath10k_ce_interrupt_summary(struct ath10k *ar)
{ … }
#define CE_ATTR_FLAGS …
struct ce_pipe_config { … };
#define PIPEDIR_NONE …
#define PIPEDIR_IN …
#define PIPEDIR_OUT …
#define PIPEDIR_INOUT …
struct ce_service_to_pipe { … };
#endif