Ignore:
Timestamp:
Jun 5, 2009, 11:24:02 PM (16 years ago)
Author:
Paul Smedley
Message:

Move definitions from config.h to interrupt.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/include/linux/interrupt.h

    r410 r438  
    1 /* $Id: interrupt.h,v 1.1.1.1 2003/07/02 13:57:00 eleph Exp $ */
    2 
    31/* interrupt.h */
    42#ifndef _LINUX_INTERRUPT_H
     
    86//#include <asm/bitops.h>
    97#include <asm/atomic.h>
     8
     9/*
     10 * For 2.4.x compatibility, 2.4.x can use
     11 *
     12 *      typedef void irqreturn_t;
     13 *      #define IRQ_NONE
     14 *      #define IRQ_HANDLED
     15 *      #define IRQ_RETVAL(x)
     16 *
     17 * To mix old-style and new-style irq handler returns.
     18 *
     19 * IRQ_NONE means we didn't handle it.
     20 * IRQ_HANDLED means that we did have a valid interrupt and handled it.
     21 * IRQ_RETVAL(x) selects on the two depending on x being non-zero (for handled)
     22 */
     23typedef int irqreturn_t;
     24
     25#define IRQ_NONE        (0)
     26#define IRQ_HANDLED     (1)
     27#define IRQ_RETVAL(x)   ((x) != 0)
    1028
    1129struct irqaction {
Note: See TracChangeset for help on using the changeset viewer.