/* * reg_fields.h * * Created on: Aug 29, 2013 * Author: dzagrebin */ #ifndef REG_FIELDS_H_UMCTL2 #define REG_FIELDS_H_UMCTL2 #define MASK_SNPS_DDR_REG_FIELDS_H_FIELD(max_,min_) ((1<<(max_-min_+1))-1) #define SNPS_DDR_REG_FIELDS_H_FIELD(a,max_,min_) (((a)&MASK_SNPS_DDR_REG_FIELDS_H_FIELD(max_,min_))<>min_)&MASK_SNPS_DDR_REG_FIELDS_H_FIELD(max_,min_)) #define SET_SNPS_DDR_REG_FIELDS_H_FIELD(reg,f,max_,min_) (((reg)&(~(MASK_SNPS_DDR_REG_FIELDS_H_FIELD(max_,min_)<>min_)&MASK_SNPS_DDR_PUB_REG_FIELDS_H_FIELD(max_,min_)) #define SET_SNPS_DDR_PUB_REG_FIELDS_H_FIELD(reg,f,max_,min_) (((reg)&(~(MASK_SNPS_DDR_PUB_REG_FIELDS_H_FIELD(max_,min_)<