lkml.org 
[lkml]   [2008]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 37/56] microblaze_v2: headers for irq
    Date
    From: Michal Simek <monstr@monstr.eu>


    Signed-off-by: Michal Simek <monstr@monstr.eu>
    ---
    include/asm-microblaze/hardirq.h | 31 +++++++++++++++++++++++++++++++
    include/asm-microblaze/hw_irq.h | 19 +++++++++++++++++++
    include/asm-microblaze/irq_regs.h | 19 +++++++++++++++++++
    3 files changed, 69 insertions(+), 0 deletions(-)
    create mode 100644 include/asm-microblaze/hardirq.h
    create mode 100644 include/asm-microblaze/hw_irq.h
    create mode 100644 include/asm-microblaze/irq_regs.h

    diff --git a/include/asm-microblaze/hardirq.h b/include/asm-microblaze/hardirq.h
    new file mode 100644
    index 0000000..8a143fa
    --- /dev/null
    +++ b/include/asm-microblaze/hardirq.h
    @@ -0,0 +1,31 @@
    +/*
    + * include/asm-microblaze/hardirq.h
    + *
    + * This file is subject to the terms and conditions of the GNU General Public
    + * License. See the file "COPYING" in the main directory of this archive
    + * for more details.
    + *
    + * Copyright (C) 2006 Atmark Techno, Inc.
    + */
    +
    +#ifndef _ASM_MICROBLAZE_HARDIRQ_H
    +#define _ASM_MICROBLAZE_HARDIRQ_H
    +
    +#include <linux/cache.h>
    +#include <linux/irq.h>
    +#include <asm/irq.h>
    +#include <asm/current.h>
    +#include <asm/ptrace.h>
    +
    +/* should be defined in each interrupt controller driver */
    +extern unsigned int get_irq(struct pt_regs *regs);
    +
    +typedef struct {
    + unsigned int __softirq_pending;
    +} ____cacheline_aligned irq_cpustat_t;
    +
    +void ack_bad_irq(unsigned int irq);
    +
    +#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
    +
    +#endif /* _ASM_MICROBLAZE_HARDIRQ_H */
    diff --git a/include/asm-microblaze/hw_irq.h b/include/asm-microblaze/hw_irq.h
    new file mode 100644
    index 0000000..467fa26
    --- /dev/null
    +++ b/include/asm-microblaze/hw_irq.h
    @@ -0,0 +1,19 @@
    +/*
    + * include/asm-microblaze/hw_irq.h
    + *
    + * This file is subject to the terms and conditions of the GNU General Public
    + * License. See the file "COPYING" in the main directory of this archive
    + * for more details.
    + *
    + * Copyright (C) 2006 Atmark Techno, Inc.
    + */
    +
    +#ifndef _ASM_MICROBLAZE_HW_IRQ_H
    +#define _ASM_MICROBLAZE_HW_IRQ_H
    +
    +static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i)
    +{
    + /* Nothing to do */
    +}
    +
    +#endif /* _ASM_MICROBLAZE_HW_IRQ_H */
    diff --git a/include/asm-microblaze/irq_regs.h b/include/asm-microblaze/irq_regs.h
    new file mode 100644
    index 0000000..0876847
    --- /dev/null
    +++ b/include/asm-microblaze/irq_regs.h
    @@ -0,0 +1,19 @@
    +/*
    + * include/asm-microblaze/irq_regs.h
    + *
    + * This file is subject to the terms and conditions of the GNU General Public
    + * License. See the file "COPYING" in the main directory of this archive
    + * for more details.
    + *
    + * Copyright (C) 2006 Atmark Techno, Inc.
    + */
    +
    +#ifndef _ASM_MICROBLAZE_IRQ_REGS_H
    +#define _ASM_MICROBLAZE_IRQ_REGS_H
    +
    +#include <asm-generic/irq_regs.h>
    +
    +#endif /* _ASM_MICROBLAZE_IRQ_REGS_H */
    +
    +
    +
    --
    1.5.4.GIT


    \
     
     \ /
      Last update: 2008-05-04 16:55    [W:0.024 / U:64.136 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site