Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mcp-sa11x0.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/mfd/mcp.h>
#include <mach/hardware.h>
#include <asm/mach-types.h>
#include <linux/platform_data/mfd-mcp-sa11x0.h>

Go to the source code of this file.

Data Structures

struct  mcp_sa11x0
 

Macros

#define DRIVER_NAME   "sa11x0-mcp"
 
#define MCCR0(m)   ((m)->base0 + 0x00)
 
#define MCDR0(m)   ((m)->base0 + 0x08)
 
#define MCDR1(m)   ((m)->base0 + 0x0c)
 
#define MCDR2(m)   ((m)->base0 + 0x10)
 
#define MCSR(m)   ((m)->base0 + 0x18)
 
#define MCCR1(m)   ((m)->base1 + 0x00)
 
#define priv(mcp)   ((struct mcp_sa11x0 *)mcp_priv(mcp))
 

Functions

 module_platform_driver (mcp_sa11x0_driver)
 
 MODULE_ALIAS ("platform:"DRIVER_NAME)
 
 MODULE_AUTHOR ("Russell King <[email protected]>")
 
 MODULE_DESCRIPTION ("SA11x0 multimedia communications port driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRIVER_NAME   "sa11x0-mcp"

Definition at line 29 of file mcp-sa11x0.c.

#define MCCR0 (   m)    ((m)->base0 + 0x00)

Definition at line 39 of file mcp-sa11x0.c.

#define MCCR1 (   m)    ((m)->base1 + 0x00)

Definition at line 44 of file mcp-sa11x0.c.

#define MCDR0 (   m)    ((m)->base0 + 0x08)

Definition at line 40 of file mcp-sa11x0.c.

#define MCDR1 (   m)    ((m)->base0 + 0x0c)

Definition at line 41 of file mcp-sa11x0.c.

#define MCDR2 (   m)    ((m)->base0 + 0x10)

Definition at line 42 of file mcp-sa11x0.c.

#define MCSR (   m)    ((m)->base0 + 0x18)

Definition at line 43 of file mcp-sa11x0.c.

#define priv (   mcp)    ((struct mcp_sa11x0 *)mcp_priv(mcp))

Definition at line 46 of file mcp-sa11x0.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRIVER_NAME)
MODULE_AUTHOR ( "Russell King <[email protected]>"  )
MODULE_DESCRIPTION ( "SA11x0 multimedia communications port driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( mcp_sa11x0_driver  )