Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mpic.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/smp.h>
#include <linux/interrupt.h>
#include <linux/bootmem.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/syscore_ops.h>
#include <linux/ratelimit.h>
#include <asm/ptrace.h>
#include <asm/signal.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/machdep.h>
#include <asm/mpic.h>
#include <asm/smp.h>
#include "mpic.h"

Go to the source code of this file.

Macros

#define DBG(fmt...)
 
#define MPIC_INFO(name)   MPIC_##name
 
#define mpic_read(b, r)   _mpic_read(mpic->reg_type,&(b),(r))
 
#define mpic_write(b, r, v)   _mpic_write(mpic->reg_type,&(b),(r),(v))
 
#define mpic_ipi_read(i)   _mpic_ipi_read(mpic,(i))
 
#define mpic_ipi_write(i, v)   _mpic_ipi_write(mpic,(i),(v))
 
#define mpic_tm_read(i)   _mpic_tm_read(mpic,(i))
 
#define mpic_tm_write(i, v)   _mpic_tm_write(mpic,(i),(v))
 
#define mpic_cpu_read(i)   _mpic_cpu_read(mpic,(i))
 
#define mpic_cpu_write(i, v)   _mpic_cpu_write(mpic,(i),(v))
 
#define mpic_irq_read(s, r)   _mpic_irq_read(mpic,(s),(r))
 
#define mpic_irq_write(s, r, v)   _mpic_irq_write(mpic,(s),(r),(v))
 
#define mpic_map(m, p, b, o, s)   _mpic_map_mmio(m,p,b,o,s)
 

Functions

void mpic_unmask_irq (struct irq_data *d)
 
void mpic_mask_irq (struct irq_data *d)
 
void mpic_end_irq (struct irq_data *d)
 
int mpic_set_affinity (struct irq_data *d, const struct cpumask *cpumask, bool force)
 
int mpic_set_irq_type (struct irq_data *d, unsigned int flow_type)
 
void mpic_set_vector (unsigned int virq, unsigned int vector)
 
void mpic_set_destination (unsigned int virq, unsigned int cpuid)
 
struct mpic *__init mpic_alloc (struct device_node *node, phys_addr_t phys_addr, unsigned int flags, unsigned int isu_size, unsigned int irq_count, const char *name)
 
void __init mpic_assign_isu (struct mpic *mpic, unsigned int isu_num, phys_addr_t paddr)
 
void __init mpic_init (struct mpic *mpic)
 
void __init mpic_set_clk_ratio (struct mpic *mpic, u32 clock_ratio)
 
void __init mpic_set_serial_int (struct mpic *mpic, int enable)
 
void mpic_irq_set_priority (unsigned int irq, unsigned int pri)
 
void mpic_setup_this_cpu (void)
 
int mpic_cpu_get_priority (void)
 
void mpic_cpu_set_priority (int prio)
 
void mpic_teardown_this_cpu (int secondary)
 
unsigned int mpic_get_one_irq (struct mpic *mpic)
 
unsigned int mpic_get_irq (void)
 
unsigned int mpic_get_coreint_irq (void)
 
unsigned int mpic_get_mcirq (void)
 

Macro Definition Documentation

#define DBG (   fmt...)

Definition at line 48 of file mpic.c.

#define mpic_cpu_read (   i)    _mpic_cpu_read(mpic,(i))

Definition at line 298 of file mpic.c.

#define mpic_cpu_write (   i,
  v 
)    _mpic_cpu_write(mpic,(i),(v))

Definition at line 299 of file mpic.c.

#define MPIC_INFO (   name)    MPIC_##name

Definition at line 149 of file mpic.c.

#define mpic_ipi_read (   i)    _mpic_ipi_read(mpic,(i))

Definition at line 294 of file mpic.c.

#define mpic_ipi_write (   i,
  v 
)    _mpic_ipi_write(mpic,(i),(v))

Definition at line 295 of file mpic.c.

#define mpic_irq_read (   s,
  r 
)    _mpic_irq_read(mpic,(s),(r))

Definition at line 300 of file mpic.c.

#define mpic_irq_write (   s,
  r,
  v 
)    _mpic_irq_write(mpic,(s),(r),(v))

Definition at line 301 of file mpic.c.

#define mpic_map (   m,
  p,
  b,
  o,
  s 
)    _mpic_map_mmio(m,p,b,o,s)

Definition at line 336 of file mpic.c.

#define mpic_read (   b,
  r 
)    _mpic_read(mpic->reg_type,&(b),(r))

Definition at line 292 of file mpic.c.

#define mpic_tm_read (   i)    _mpic_tm_read(mpic,(i))

Definition at line 296 of file mpic.c.

#define mpic_tm_write (   i,
  v 
)    _mpic_tm_write(mpic,(i),(v))

Definition at line 297 of file mpic.c.

#define mpic_write (   b,
  r,
  v 
)    _mpic_write(mpic->reg_type,&(b),(r),(v))

Definition at line 293 of file mpic.c.

Function Documentation

struct mpic* __init mpic_alloc ( struct device_node node,
phys_addr_t  phys_addr,
unsigned int  flags,
unsigned int  isu_size,
unsigned int  irq_count,
const char name 
)
read

Definition at line 1172 of file mpic.c.

void __init mpic_assign_isu ( struct mpic *  mpic,
unsigned int  isu_num,
phys_addr_t  paddr 
)

Definition at line 1473 of file mpic.c.

int mpic_cpu_get_priority ( void  )

Definition at line 1691 of file mpic.c.

void mpic_cpu_set_priority ( int  prio)

Definition at line 1698 of file mpic.c.

void mpic_end_irq ( struct irq_data d)

Definition at line 704 of file mpic.c.

unsigned int mpic_get_coreint_irq ( void  )

Definition at line 1771 of file mpic.c.

unsigned int mpic_get_irq ( void  )

Definition at line 1762 of file mpic.c.

unsigned int mpic_get_mcirq ( void  )

Definition at line 1798 of file mpic.c.

unsigned int mpic_get_one_irq ( struct mpic *  mpic)

Definition at line 1757 of file mpic.c.

void __init mpic_init ( struct mpic *  mpic)

Definition at line 1488 of file mpic.c.

void mpic_irq_set_priority ( unsigned int  irq,
unsigned int  pri 
)

Definition at line 1629 of file mpic.c.

void mpic_mask_irq ( struct irq_data d)

Definition at line 682 of file mpic.c.

int mpic_set_affinity ( struct irq_data d,
const struct cpumask cpumask,
bool  force 
)

Definition at line 820 of file mpic.c.

void __init mpic_set_clk_ratio ( struct mpic *  mpic,
u32  clock_ratio 
)

Definition at line 1604 of file mpic.c.

void mpic_set_destination ( unsigned int  virq,
unsigned int  cpuid 
)

Definition at line 941 of file mpic.c.

int mpic_set_irq_type ( struct irq_data d,
unsigned int  flow_type 
)

Definition at line 863 of file mpic.c.

void __init mpic_set_serial_int ( struct mpic *  mpic,
int  enable 
)

Definition at line 1614 of file mpic.c.

void mpic_set_vector ( unsigned int  virq,
unsigned int  vector 
)

Definition at line 923 of file mpic.c.

void mpic_setup_this_cpu ( void  )

Definition at line 1659 of file mpic.c.

void mpic_teardown_this_cpu ( int  secondary)

Definition at line 1706 of file mpic.c.

void mpic_unmask_irq ( struct irq_data d)

Definition at line 661 of file mpic.c.