linux/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Support for Intel Camera Imaging ISP subsystem.
 * Copyright (c) 2010 - 2015, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 */

#ifndef __QUEUE_ACCESS_H
#define __QUEUE_ACCESS_H

#include <linux/errno.h>

#include <type_support.h>
#include <ia_css_queue_comm.h>
#include <ia_css_circbuf.h>

#define QUEUE_IGNORE_START_FLAG
#define QUEUE_IGNORE_END_FLAG
#define QUEUE_IGNORE_SIZE_FLAG
#define QUEUE_IGNORE_STEP_FLAG
#define QUEUE_IGNORE_DESC_FLAGS_MAX

#define QUEUE_IGNORE_SIZE_START_STEP_FLAGS

#define QUEUE_IGNORE_SIZE_END_STEP_FLAGS

#define QUEUE_IGNORE_START_END_STEP_FLAGS

#define QUEUE_CB_DESC_INIT(cb_desc)

struct ia_css_queue {};

int ia_css_queue_load(
    struct ia_css_queue *rdesc,
    ia_css_circbuf_desc_t *cb_desc,
    uint32_t ignore_desc_flags);

int ia_css_queue_store(
    struct ia_css_queue *rdesc,
    ia_css_circbuf_desc_t *cb_desc,
    uint32_t ignore_desc_flags);

int ia_css_queue_item_load(
    struct ia_css_queue *rdesc,
    u8 position,
    ia_css_circbuf_elem_t *item);

int ia_css_queue_item_store(
    struct ia_css_queue *rdesc,
    u8 position,
    ia_css_circbuf_elem_t *item);

#endif /* __QUEUE_ACCESS_H */