linux/drivers/accel/habanalabs/include/common/qman_if.h

/* SPDX-License-Identifier: GPL-2.0
 *
 * Copyright 2016-2018 HabanaLabs, Ltd.
 * All Rights Reserved.
 *
 */

#ifndef QMAN_IF_H
#define QMAN_IF_H

#include <linux/types.h>

/*
 * PRIMARY QUEUE
 */

struct hl_bd {};

#define HL_BD_SIZE

/*
 * S/W CTL FIELDS.
 *
 * BD_CTL_REPEAT_VALID tells the CP whether the repeat field in the BD CTL is
 * valid. 1 means the repeat field is valid, 0 means not-valid,
 * i.e. repeat == 1
 */
#define BD_CTL_REPEAT_VALID_SHIFT
#define BD_CTL_REPEAT_VALID_MASK

#define BD_CTL_SHADOW_INDEX_SHIFT
#define BD_CTL_SHADOW_INDEX_MASK

/*
 * H/W CTL FIELDS
 */

#define BD_CTL_COMP_OFFSET_SHIFT
#define BD_CTL_COMP_OFFSET_MASK

#define BD_CTL_COMP_DATA_SHIFT
#define BD_CTL_COMP_DATA_MASK

/*
 * COMPLETION QUEUE
 */

struct hl_cq_entry {};

#define HL_CQ_ENTRY_SIZE

#define CQ_ENTRY_READY_SHIFT
#define CQ_ENTRY_READY_MASK

#define CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT
#define CQ_ENTRY_SHADOW_INDEX_VALID_MASK

#define CQ_ENTRY_SHADOW_INDEX_SHIFT
#define CQ_ENTRY_SHADOW_INDEX_MASK


#endif /* QMAN_IF_H */