Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
mailbox.h File Reference
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/kfifo.h>

Go to the source code of this file.

Data Structures

struct  omap_mbox_ops
 
struct  omap_mbox_queue
 
struct  omap_mbox
 

Macros

#define IRQ_TX   ((__force omap_mbox_irq_t) 1)
 
#define IRQ_RX   ((__force omap_mbox_irq_t) 2)
 
#define OMAP_MBOX_TYPE1   ((__force omap_mbox_type_t) 1)
 
#define OMAP_MBOX_TYPE2   ((__force omap_mbox_type_t) 2)
 

Typedefs

typedef u32 mbox_msg_t
 
typedef int __bitwise omap_mbox_irq_t
 
typedef int __bitwise omap_mbox_type_t
 

Functions

int omap_mbox_msg_send (struct omap_mbox *, mbox_msg_t msg)
 
void omap_mbox_init_seq (struct omap_mbox *)
 
struct omap_mboxomap_mbox_get (const char *, struct notifier_block *nb)
 
void omap_mbox_put (struct omap_mbox *mbox, struct notifier_block *nb)
 
int omap_mbox_register (struct device *parent, struct omap_mbox **)
 
int omap_mbox_unregister (void)
 

Macro Definition Documentation

#define IRQ_RX   ((__force omap_mbox_irq_t) 2)

Definition at line 17 of file mailbox.h.

#define IRQ_TX   ((__force omap_mbox_irq_t) 1)

Definition at line 16 of file mailbox.h.

#define OMAP_MBOX_TYPE1   ((__force omap_mbox_type_t) 1)

Definition at line 20 of file mailbox.h.

#define OMAP_MBOX_TYPE2   ((__force omap_mbox_type_t) 2)

Definition at line 21 of file mailbox.h.

Typedef Documentation

typedef u32 mbox_msg_t

Definition at line 12 of file mailbox.h.

Definition at line 13 of file mailbox.h.

Definition at line 19 of file mailbox.h.

Function Documentation

struct omap_mbox* omap_mbox_get ( const char ,
struct notifier_block nb 
)
read

Definition at line 326 of file mailbox.c.

void omap_mbox_init_seq ( struct omap_mbox )
int omap_mbox_msg_send ( struct omap_mbox ,
mbox_msg_t  msg 
)

Definition at line 91 of file mailbox.c.

void omap_mbox_put ( struct omap_mbox mbox,
struct notifier_block nb 
)

Definition at line 357 of file mailbox.c.

int omap_mbox_register ( struct device parent,
struct omap_mbox **   
)

Definition at line 366 of file mailbox.c.

int omap_mbox_unregister ( void  )

Definition at line 395 of file mailbox.c.