Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
u8500_hsem.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/hwspinlock.h>
#include <linux/platform_device.h>
#include "hwspinlock_internal.h"

Go to the source code of this file.

Macros

#define U8500_MAX_SEMAPHORE   32 /* a total of 32 semaphore */
 
#define RESET_SEMAPHORE   (0) /* free */
 
#define HSEM_MASTER_ID   0x01
 
#define HSEM_REGISTER_OFFSET   0x08
 
#define HSEM_CTRL_REG   0x00
 
#define HSEM_ICRALL   0x90
 
#define HSEM_PROTOCOL_1   0x01
 

Functions

 postcore_initcall (u8500_hsem_init)
 
 module_exit (u8500_hsem_exit)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DESCRIPTION ("Hardware Spinlock driver for u8500")
 
 MODULE_AUTHOR ("Mathieu Poirier <[email protected]>")
 

Macro Definition Documentation

#define HSEM_CTRL_REG   0x00

Definition at line 55 of file u8500_hsem.c.

#define HSEM_ICRALL   0x90

Definition at line 56 of file u8500_hsem.c.

#define HSEM_MASTER_ID   0x01

Definition at line 51 of file u8500_hsem.c.

#define HSEM_PROTOCOL_1   0x01

Definition at line 57 of file u8500_hsem.c.

#define HSEM_REGISTER_OFFSET   0x08

Definition at line 53 of file u8500_hsem.c.

#define RESET_SEMAPHORE   (0) /* free */

Definition at line 43 of file u8500_hsem.c.

#define U8500_MAX_SEMAPHORE   32 /* a total of 32 semaphore */

Definition at line 42 of file u8500_hsem.c.

Function Documentation

MODULE_AUTHOR ( "Mathieu Poirier <[email protected]>"  )
MODULE_DESCRIPTION ( "Hardware Spinlock driver for u8500"  )
module_exit ( u8500_hsem_exit  )
MODULE_LICENSE ( "GPL v2 )
postcore_initcall ( u8500_hsem_init  )