/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
/*
 * Copyright (c) 2023 MediaTek Inc.
 */

#ifndef _DEMOD_HAL_DVBS_EXT_UAPI_H_
#define _DEMOD_HAL_DVBS_EXT_UAPI_H_

#include <linux/version.h>
#include <linux/dvb/frontend.h>

#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0)
enum mtk_fe_code_rate_ext {
	FEC_1_3 = FEC_2_5 + 1,
	FEC_1_4,
	FEC_5_9,
	FEC_7_9,
	FEC_8_15,
	FEC_11_15,
	FEC_13_18,
	FEC_9_20,
	FEC_11_20,
	FEC_23_36,
	FEC_25_36,
	FEC_13_45,
	FEC_26_45,
	FEC_28_45,
	FEC_32_45,
	FEC_77_90,
	FEC_11_45,
	FEC_4_15,
	FEC_14_45,
	FEC_7_15,
};

enum mtk_fe_rolloff_ext {
	ROLLOFF_15 = ROLLOFF_AUTO + 1,
	ROLLOFF_10,
	ROLLOFF_5,
};
#endif

#endif
