linux/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Support for Intel Camera Imaging ISP subsystem.
 * Copyright (c) 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.
 */

#include "hmm.h"

#include "ia_css_refcount.h"
#include "sh_css_defs.h"

#include "platform_support.h"

#include "assert_support.h"

#include "ia_css_debug.h"

/* TODO: enable for other memory aswell
	 now only for ia_css_ptr */
struct ia_css_refcount_entry {};

struct ia_css_refcount_list {};

static struct ia_css_refcount_list myrefcount;

static struct ia_css_refcount_entry *refcount_find_entry(ia_css_ptr ptr,
	bool firstfree)
{}

int ia_css_refcount_init(uint32_t size)
{}

void ia_css_refcount_uninit(void)
{}

ia_css_ptr ia_css_refcount_increment(s32 id, ia_css_ptr ptr)
{}

bool ia_css_refcount_decrement(s32 id, ia_css_ptr ptr)
{}

bool ia_css_refcount_is_single(ia_css_ptr ptr)
{}

void ia_css_refcount_clear(s32 id, clear_func clear_func_ptr)
{}

bool ia_css_refcount_is_valid(ia_css_ptr ptr)
{}