Lines Matching refs:irq
115 static inline int get_mfp_bit( unsigned irq, int type ) in get_mfp_bit() argument
119 mask = 1 << (irq & 7); in get_mfp_bit()
121 ((irq & 8) >> 2) + (((irq-8) & 16) << 3); in get_mfp_bit()
125 static inline void set_mfp_bit( unsigned irq, int type ) in set_mfp_bit() argument
129 mask = 1 << (irq & 7); in set_mfp_bit()
131 ((irq & 8) >> 2) + (((irq-8) & 16) << 3); in set_mfp_bit()
136 static inline void clear_mfp_bit( unsigned irq, int type ) in clear_mfp_bit() argument
140 mask = ~(1 << (irq & 7)); in clear_mfp_bit()
142 ((irq & 8) >> 2) + (((irq-8) & 16) << 3); in clear_mfp_bit()
157 static inline void atari_enable_irq( unsigned irq ) in atari_enable_irq() argument
160 if (irq < STMFP_SOURCE_BASE || irq >= SCC_SOURCE_BASE) return; in atari_enable_irq()
161 set_mfp_bit( irq, MFP_MASK ); in atari_enable_irq()
164 static inline void atari_disable_irq( unsigned irq ) in atari_disable_irq() argument
167 if (irq < STMFP_SOURCE_BASE || irq >= SCC_SOURCE_BASE) return; in atari_disable_irq()
168 clear_mfp_bit( irq, MFP_MASK ); in atari_disable_irq()
176 static inline void atari_turnon_irq( unsigned irq ) in atari_turnon_irq() argument
179 if (irq < STMFP_SOURCE_BASE || irq >= SCC_SOURCE_BASE) return; in atari_turnon_irq()
180 set_mfp_bit( irq, MFP_ENABLE ); in atari_turnon_irq()
183 static inline void atari_turnoff_irq( unsigned irq ) in atari_turnoff_irq() argument
186 if (irq < STMFP_SOURCE_BASE || irq >= SCC_SOURCE_BASE) return; in atari_turnoff_irq()
187 clear_mfp_bit( irq, MFP_ENABLE ); in atari_turnoff_irq()
188 clear_mfp_bit( irq, MFP_PENDING ); in atari_turnoff_irq()
191 static inline void atari_clear_pending_irq( unsigned irq ) in atari_clear_pending_irq() argument
194 if (irq < STMFP_SOURCE_BASE || irq >= SCC_SOURCE_BASE) return; in atari_clear_pending_irq()
195 clear_mfp_bit( irq, MFP_PENDING ); in atari_clear_pending_irq()
198 static inline int atari_irq_pending( unsigned irq ) in atari_irq_pending() argument
201 if (irq < STMFP_SOURCE_BASE || irq >= SCC_SOURCE_BASE) return( 0 ); in atari_irq_pending()
202 return( get_mfp_bit( irq, MFP_PENDING ) ); in atari_irq_pending()