Changeset 63e27ef in mainline for kernel/genarch/include
- Timestamp:
- 2017-06-19T21:47:42Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- Location:
- kernel/genarch/include/genarch/drivers
- Files:
-
- 5 edited
-
amdm37x/gpt.h (modified) (4 diffs)
-
bcm2835/irc.h (modified) (3 diffs)
-
bcm2835/timer.h (modified) (3 diffs)
-
omap/irc.h (modified) (3 diffs)
-
pl050/pl050.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/genarch/drivers/amdm37x/gpt.h
r7354b5e r63e27ef 37 37 #define KERN_AMDM37x_GPT_H_ 38 38 39 #include <assert.h> 39 40 #include <typedefs.h> 40 41 #include <mm/km.h> … … 211 212 km_unmap((uintptr_t)clksel, 4); 212 213 213 ASSERT(timer);214 assert(timer); 214 215 /* Map control register */ 215 216 timer->regs = (void*) km_map(ioregs, iosize, PAGE_NOT_CACHEABLE); … … 247 248 static inline void amdm37x_gpt_timer_ticks_start(amdm37x_gpt_t* timer) 248 249 { 249 ASSERT(timer);250 ASSERT(timer->regs);250 assert(timer); 251 assert(timer->regs); 251 252 /* Enable overflow interrupt */ 252 253 timer->regs->tier |= AMDM37x_GPT_TIER_OVF_IRQ_FLAG; … … 257 258 static inline bool amdm37x_gpt_irq_ack(amdm37x_gpt_t* timer) 258 259 { 259 ASSERT(timer);260 ASSERT(timer->regs);260 assert(timer); 261 assert(timer->regs); 261 262 /* Clear all pending interrupts */ 262 263 const uint32_t tisr = timer->regs->tisr; -
kernel/genarch/include/genarch/drivers/bcm2835/irc.h
r7354b5e r63e27ef 38 38 #define KERN_BCM2835_IRQC_H_ 39 39 40 #include <assert.h> 40 41 #include <typedefs.h> 41 42 … … 158 159 static inline void bcm2835_irc_enable(bcm2835_irc_t *regs, unsigned inum) 159 160 { 160 ASSERT(inum < BCM2835_IRQ_COUNT);161 assert(inum < BCM2835_IRQ_COUNT); 161 162 regs->irq_enable[IRQ_TO_BANK(inum)] |= (1 << IRQ_TO_NUM(inum)); 162 163 } … … 164 165 static inline void bcm2835_irc_disable(bcm2835_irc_t *regs, unsigned inum) 165 166 { 166 ASSERT(inum < BCM2835_IRQ_COUNT);167 assert(inum < BCM2835_IRQ_COUNT); 167 168 regs->irq_disable[IRQ_TO_BANK(inum)] |= (1 << IRQ_TO_NUM(inum)); 168 169 } -
kernel/genarch/include/genarch/drivers/bcm2835/timer.h
r7354b5e r63e27ef 36 36 #ifndef KERN_BCM2835_TIMER_H_ 37 37 38 #include <assert.h> 38 39 #include <typedefs.h> 39 40 #include <mm/km.h> … … 66 67 static inline void bcm2835_timer_start(bcm2835_timer_t* timer) 67 68 { 68 ASSERT(timer);69 assert(timer); 69 70 /* Clear pending interrupt on channel 1 */ 70 71 timer->cs |= BCM2835_TIMER_CS_M1; … … 75 76 static inline void bcm2835_timer_irq_ack(bcm2835_timer_t* timer) 76 77 { 77 ASSERT(timer);78 assert(timer); 78 79 /* Clear pending interrupt on channel 1 */ 79 80 timer->cs |= BCM2835_TIMER_CS_M1; -
kernel/genarch/include/genarch/drivers/omap/irc.h
r7354b5e r63e27ef 39 39 #define KERN_OMAP_IRQC_H_ 40 40 41 #include <assert.h> 41 42 #include <typedefs.h> 42 43 … … 230 231 static inline void omap_irc_enable(omap_irc_regs_t *regs, unsigned inum) 231 232 { 232 ASSERT(inum < OMAP_IRC_IRQ_COUNT);233 assert(inum < OMAP_IRC_IRQ_COUNT); 233 234 const unsigned set = inum / 32; 234 235 const unsigned pos = inum % 32; … … 243 244 static inline void omap_irc_disable(omap_irc_regs_t *regs, unsigned inum) 244 245 { 245 ASSERT(inum < OMAP_IRC_IRQ_COUNT);246 assert(inum < OMAP_IRC_IRQ_COUNT); 246 247 const unsigned set = inum / 32; 247 248 const unsigned pos = inum % 32; -
kernel/genarch/include/genarch/drivers/pl050/pl050.h
r7354b5e r63e27ef 27 27 */ 28 28 29 /** @addtogroup genarch 29 /** @addtogroup genarch 30 30 * @{ 31 31 */
Note:
See TracChangeset
for help on using the changeset viewer.
