Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ge_pic.c File Reference
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/irq.h>
#include "ge_pic.h"

Go to the source code of this file.

Macros

#define DEBUG
 
#define DBG(fmt...)   do { printk(KERN_DEBUG "gef_pic: " fmt); } while (0)
 
#define GEF_PIC_NUM_IRQS   32
 
#define GEF_PIC_INTR_STATUS   0x0000
 
#define GEF_PIC_INTR_MASK(cpu)   (0x0010 + (0x4 * cpu))
 
#define GEF_PIC_CPU0_INTR_MASK   GEF_PIC_INTR_MASK(0)
 
#define GEF_PIC_CPU1_INTR_MASK   GEF_PIC_INTR_MASK(1)
 
#define GEF_PIC_MCP_MASK(cpu)   (0x0018 + (0x4 * cpu))
 
#define GEF_PIC_CPU0_MCP_MASK   GEF_PIC_MCP_MASK(0)
 
#define GEF_PIC_CPU1_MCP_MASK   GEF_PIC_MCP_MASK(1)
 

Functions

void gef_pic_cascade (unsigned int irq, struct irq_desc *desc)
 
void __init gef_pic_init (struct device_node *np)
 
unsigned int gef_pic_get_irq (void)
 

Macro Definition Documentation

#define DBG (   fmt...)    do { printk(KERN_DEBUG "gef_pic: " fmt); } while (0)

Definition at line 31 of file ge_pic.c.

#define DEBUG

Definition at line 27 of file ge_pic.c.

#define GEF_PIC_CPU0_INTR_MASK   GEF_PIC_INTR_MASK(0)

Definition at line 42 of file ge_pic.c.

#define GEF_PIC_CPU0_MCP_MASK   GEF_PIC_MCP_MASK(0)

Definition at line 46 of file ge_pic.c.

#define GEF_PIC_CPU1_INTR_MASK   GEF_PIC_INTR_MASK(1)

Definition at line 43 of file ge_pic.c.

#define GEF_PIC_CPU1_MCP_MASK   GEF_PIC_MCP_MASK(1)

Definition at line 47 of file ge_pic.c.

#define GEF_PIC_INTR_MASK (   cpu)    (0x0010 + (0x4 * cpu))

Definition at line 41 of file ge_pic.c.

#define GEF_PIC_INTR_STATUS   0x0000

Definition at line 39 of file ge_pic.c.

#define GEF_PIC_MCP_MASK (   cpu)    (0x0018 + (0x4 * cpu))

Definition at line 45 of file ge_pic.c.

#define GEF_PIC_NUM_IRQS   32

Definition at line 36 of file ge_pic.c.

Function Documentation

void gef_pic_cascade ( unsigned int  irq,
struct irq_desc desc 
)

Definition at line 94 of file ge_pic.c.

unsigned int gef_pic_get_irq ( void  )

Definition at line 228 of file ge_pic.c.

void __init gef_pic_init ( struct device_node np)

Definition at line 189 of file ge_pic.c.