/*
 * cfg_var.c
 *
 *  Created on: 10-09-2013
 *      Author: Krzysztof Jakubczyk
 */

#include "cfg_var.h"
#include "misc.h"


const struct config_lookup_table cfg_lut[]=
{
    /* var name, var type, var addr, var size, bit mask, flags */
	{"klapacz_enabled", ARG_TYPE_BOOL, &dev_cfg.bits, sizeof(dev_cfg.bits), CFG_BIT_KLAPACZ_ENABLED },
	{"device_bits", ARG_TYPE_LONG, &dev_cfg.bits, sizeof(dev_cfg.bits)},
	{"mwd0_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[0],sizeof(dev_cfg.mwd_ac_mask[0]), 0, NEED_RELOAD_IC},
	{"mwd1_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[1],sizeof(dev_cfg.mwd_ac_mask[1]), 0, NEED_RELOAD_IC},
	{"mwd2_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[2],sizeof(dev_cfg.mwd_ac_mask[2]), 0, NEED_RELOAD_IC},
	{"mwd3_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[3],sizeof(dev_cfg.mwd_ac_mask[3]), 0, NEED_RELOAD_IC},
	{"mwd4_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[4],sizeof(dev_cfg.mwd_ac_mask[4]), 0, NEED_RELOAD_IC},
	{"mwd5_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[5],sizeof(dev_cfg.mwd_ac_mask[5]), 0, NEED_RELOAD_IC},
	{"mwd6_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[6],sizeof(dev_cfg.mwd_ac_mask[6]), 0, NEED_RELOAD_IC},
	{"mwd7_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[7],sizeof(dev_cfg.mwd_ac_mask[7]), 0, NEED_RELOAD_IC},
	{"mwd8_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[8],sizeof(dev_cfg.mwd_ac_mask[8]), 0, NEED_RELOAD_IC},
	{"mwd9_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[9],sizeof(dev_cfg.mwd_ac_mask[9]), 0, NEED_RELOAD_IC},
	{"mwd10_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[10],sizeof(dev_cfg.mwd_ac_mask[10]), 0, NEED_RELOAD_IC},
	{"mwd11_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[11],sizeof(dev_cfg.mwd_ac_mask[11]), 0, NEED_RELOAD_IC},
	{"mwd12_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[12],sizeof(dev_cfg.mwd_ac_mask[12]), 0, NEED_RELOAD_IC},
	{"mwd13_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[13],sizeof(dev_cfg.mwd_ac_mask[13]), 0, NEED_RELOAD_IC},
	{"mwd14_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[14],sizeof(dev_cfg.mwd_ac_mask[14]), 0, NEED_RELOAD_IC},
	{"mwd15_ac_bits", ARG_TYPE_LONG,&dev_cfg.mwd_ac_mask[15],sizeof(dev_cfg.mwd_ac_mask[15]), 0, NEED_RELOAD_IC},
};

const unsigned int cfg_lut_elements = sizeof(cfg_lut)/sizeof(struct config_lookup_table);
