Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mpic_msgr.c File Reference
#include <linux/list.h>
#include <linux/of_platform.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <asm/prom.h>
#include <asm/hw_irq.h>
#include <asm/ppc-pci.h>
#include <asm/mpic_msgr.h>

Go to the source code of this file.

Macros

#define MPIC_MSGR_REGISTERS_PER_BLOCK   4
 
#define MPIC_MSGR_STRIDE   0x10
 
#define MPIC_MSGR_MER_OFFSET   0x100
 
#define MSGR_INUSE   0
 
#define MSGR_FREE   1
 

Functions

struct mpic_msgrmpic_msgr_get (unsigned int reg_num)
 
 EXPORT_SYMBOL_GPL (mpic_msgr_get)
 
void mpic_msgr_put (struct mpic_msgr *msgr)
 
 EXPORT_SYMBOL_GPL (mpic_msgr_put)
 
void mpic_msgr_enable (struct mpic_msgr *msgr)
 
 EXPORT_SYMBOL_GPL (mpic_msgr_enable)
 
void mpic_msgr_disable (struct mpic_msgr *msgr)
 
 EXPORT_SYMBOL_GPL (mpic_msgr_disable)
 
 subsys_initcall (mpic_msgr_init)
 

Macro Definition Documentation

#define MPIC_MSGR_MER_OFFSET   0x100

Definition at line 27 of file mpic_msgr.c.

#define MPIC_MSGR_REGISTERS_PER_BLOCK   4

Definition at line 25 of file mpic_msgr.c.

#define MPIC_MSGR_STRIDE   0x10

Definition at line 26 of file mpic_msgr.c.

#define MSGR_FREE   1

Definition at line 29 of file mpic_msgr.c.

#define MSGR_INUSE   0

Definition at line 28 of file mpic_msgr.c.

Function Documentation

EXPORT_SYMBOL_GPL ( mpic_msgr_get  )
EXPORT_SYMBOL_GPL ( mpic_msgr_put  )
EXPORT_SYMBOL_GPL ( mpic_msgr_enable  )
EXPORT_SYMBOL_GPL ( mpic_msgr_disable  )
void mpic_msgr_disable ( struct mpic_msgr msgr)

Definition at line 96 of file mpic_msgr.c.

void mpic_msgr_enable ( struct mpic_msgr msgr)

Definition at line 84 of file mpic_msgr.c.

struct mpic_msgr* mpic_msgr_get ( unsigned int  reg_num)
read

Definition at line 52 of file mpic_msgr.c.

void mpic_msgr_put ( struct mpic_msgr msgr)

Definition at line 73 of file mpic_msgr.c.

subsys_initcall ( mpic_msgr_init  )