#ifndef _COMMON_H #define _COMMON_H #include #include #include //#define Si4709_DEBUG #define error(fmt,arg...) printk(KERN_CRIT fmt "\n",## arg) #ifdef Si4709_DEBUG #define debug(fmt,arg...) printk(KERN_CRIT "--------" fmt "\n",## arg) #else #define debug(fmt,arg...) #endif #define FM_RESET GPIO_FM_RST /*VNVS:28-OCT'09---- For testing FM tune and seek operation status*/ #define TEST_FM /*VNVS:7-JUNE'10 ---- RDS Interrupt ON Always (Enabling interrupt when RDS is enabled)*/ #define RDS_INTERRUPT_ON_ALWAYS /*VNVS:18-JUN'10---- For testing RDS*/ /*Enable only for debugging RDS*/ //#define RDS_TESTING #ifdef RDS_TESTING #define debug_rds(fmt,arg...) printk(KERN_CRIT "--------" fmt "\n",## arg) #define GROUP_TYPE_2A ( 2 * 2 + 0) #define GROUP_TYPE_2B ( 2 * 2 + 1) #else #define debug_rds(fmt,arg...) #endif #define YES 1 #define NO 0 #endif