linux/drivers/crypto/cavium/cpt/request_manager.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2016 Cavium, Inc.
 */

#ifndef __REQUEST_MANAGER_H
#define __REQUEST_MANAGER_H

#include "cpt_common.h"

#define TIME_IN_RESET_COUNT
#define COMPLETION_CODE_SIZE
#define COMPLETION_CODE_INIT
#define PENDING_THOLD
#define MAX_SG_IN_CNT
#define MAX_SG_OUT_CNT
#define SG_LIST_HDR_SIZE
#define MAX_BUF_CNT

ctrl_info;

opcode_info;

struct cptvf_request {};

struct buf_ptr {};

struct cpt_request_info {};

struct sglist_component {};

struct cpt_info_buffer {};

/*
 * CPT_INST_S software command definitions
 * Words EI (0-3)
 */
vq_cmd_word0;

vq_cmd_word3;

struct cpt_vq_command {};

void vq_post_process(struct cpt_vf *cptvf, u32 qno);
int process_request(struct cpt_vf *cptvf, struct cpt_request_info *req);
#endif /* __REQUEST_MANAGER_H */