Changeset 438


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

Move definitions from config.h to interrupt.h

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/config.h

    r431 r438  
    6767#include <linux/config.h>
    6868#include <linux/version.h>
    69 
    70 #define IRQ_NONE      (0)  /*void*/
    71 #define IRQ_HANDLED   (1)  /*void*/
    72 #define IRQ_RETVAL(x) ((x) != 0)  /*void*/
    73 typedef int irqreturn_t;
    7469
    7570#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 2, 3)
  • 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.