linux/drivers/staging/media/atomisp/pci/sh_css_frac.h

/* 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.
 */

#ifndef __SH_CSS_FRAC_H
#define __SH_CSS_FRAC_H

#include <linux/minmax.h>

#include "mamoiada_params.h"

#define sISP_REG_BIT
#define uISP_REG_BIT
#define sSHIFT
#define uSHIFT
#define sFRACTION_BITS_FITTING(a)
#define uFRACTION_BITS_FITTING(a)
#define sISP_VAL_MIN
#define sISP_VAL_MAX
#define uISP_VAL_MIN
#define uISP_VAL_MAX

/* a:fraction bits for 16bit precision, b:fraction bits for ISP precision */
#define sDIGIT_FITTING(v, a, b)
#define uDIGIT_FITTING(v, a, b)

#endif /* __SH_CSS_FRAC_H */