5.6.2. Interrupt Handling
- simple! Write a handler:
irqreturn_t handler(int irq, void *dev_id);
- register it with the kernel...
int request_irq(unsigned int irq, irq_handler_t handler, unsigned long irqflags, const char *devname, void * dev_id);
- ...enable device to generate interrupts
int fiddle_with_registers();
- and handle! (when done undo in reverse order)
- But... this is not the case anymore for ARCH=powerpc! (but still for ARM)
- Virtual vs. real interrupts
5.6.1. Accessing devices | 1. Denx Training Topics | 5.6.3. Deferring work | |||
Prev | Home | Next | |||