Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mailbox.c File Reference
#include <linux/module.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/pm_runtime.h>
#include <plat/mailbox.h>
#include "soc.h"

Go to the source code of this file.

Data Structures

struct  omap_mbox2_fifo
 
struct  omap_mbox2_priv
 

Macros

#define MAILBOX_REVISION   0x000
 
#define MAILBOX_MESSAGE(m)   (0x040 + 4 * (m))
 
#define MAILBOX_FIFOSTATUS(m)   (0x080 + 4 * (m))
 
#define MAILBOX_MSGSTATUS(m)   (0x0c0 + 4 * (m))
 
#define MAILBOX_IRQSTATUS(u)   (0x100 + 8 * (u))
 
#define MAILBOX_IRQENABLE(u)   (0x104 + 8 * (u))
 
#define OMAP4_MAILBOX_IRQSTATUS(u)   (0x104 + 0x10 * (u))
 
#define OMAP4_MAILBOX_IRQENABLE(u)   (0x108 + 0x10 * (u))
 
#define OMAP4_MAILBOX_IRQENABLE_CLR(u)   (0x10c + 0x10 * (u))
 
#define MAILBOX_IRQ_NEWMSG(m)   (1 << (2 * (m)))
 
#define MAILBOX_IRQ_NOTFULL(m)   (1 << (2 * (m) + 1))
 
#define MBOX_REG_SIZE   0x120
 
#define OMAP4_MBOX_REG_SIZE   0x130
 
#define MBOX_NR_REGS   (MBOX_REG_SIZE / sizeof(u32))
 
#define OMAP4_MBOX_NR_REGS   (OMAP4_MBOX_REG_SIZE / sizeof(u32))
 

Functions

 module_init (omap2_mbox_init)
 
 module_exit (omap2_mbox_exit)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DESCRIPTION ("omap mailbox: omap2/3/4 architecture specific functions")
 
 MODULE_AUTHOR ("Hiroshi DOYU <[email protected]>")
 
 MODULE_AUTHOR ("Paul Mundt")
 
 MODULE_ALIAS ("platform:omap2-mailbox")
 

Macro Definition Documentation

#define MAILBOX_FIFOSTATUS (   m)    (0x080 + 4 * (m))

Definition at line 26 of file mailbox.c.

#define MAILBOX_IRQ_NEWMSG (   m)    (1 << (2 * (m)))

Definition at line 35 of file mailbox.c.

#define MAILBOX_IRQ_NOTFULL (   m)    (1 << (2 * (m) + 1))

Definition at line 36 of file mailbox.c.

#define MAILBOX_IRQENABLE (   u)    (0x104 + 8 * (u))

Definition at line 29 of file mailbox.c.

#define MAILBOX_IRQSTATUS (   u)    (0x100 + 8 * (u))

Definition at line 28 of file mailbox.c.

#define MAILBOX_MESSAGE (   m)    (0x040 + 4 * (m))

Definition at line 25 of file mailbox.c.

#define MAILBOX_MSGSTATUS (   m)    (0x0c0 + 4 * (m))

Definition at line 27 of file mailbox.c.

#define MAILBOX_REVISION   0x000

Definition at line 24 of file mailbox.c.

#define MBOX_NR_REGS   (MBOX_REG_SIZE / sizeof(u32))

Definition at line 42 of file mailbox.c.

#define MBOX_REG_SIZE   0x120

Definition at line 38 of file mailbox.c.

#define OMAP4_MAILBOX_IRQENABLE (   u)    (0x108 + 0x10 * (u))

Definition at line 32 of file mailbox.c.

#define OMAP4_MAILBOX_IRQENABLE_CLR (   u)    (0x10c + 0x10 * (u))

Definition at line 33 of file mailbox.c.

#define OMAP4_MAILBOX_IRQSTATUS (   u)    (0x104 + 0x10 * (u))

Definition at line 31 of file mailbox.c.

#define OMAP4_MBOX_NR_REGS   (OMAP4_MBOX_REG_SIZE / sizeof(u32))

Definition at line 43 of file mailbox.c.

#define OMAP4_MBOX_REG_SIZE   0x130

Definition at line 40 of file mailbox.c.

Function Documentation

MODULE_ALIAS ( "platform:omap2-mailbox )
MODULE_AUTHOR ( "Hiroshi DOYU <[email protected]>"  )
MODULE_AUTHOR ( "Paul Mundt"  )
MODULE_DESCRIPTION ( "omap mailbox: omap2/3/4 architecture specific functions"  )
module_exit ( omap2_mbox_exit  )
module_init ( omap2_mbox_init  )
MODULE_LICENSE ( "GPL v2 )