Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
sta2x11-mfd.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/errno.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/platform_device.h>
#include <linux/mfd/core.h>
#include <linux/mfd/sta2x11-mfd.h>
#include <asm/sta2x11.h>

Go to the source code of this file.

Data Structures

struct  sta2x11_mfd
 

Macros

#define REG(regname)   {.name = #regname, .offset = SCTL_ ## regname}
 
#define REG(regname)   {.name = #regname, .offset = regname}
 
#define CELL_4K(_name, _cell)
 
#define DEV(_name, _r)   { .name = _name, .num_resources = ARRAY_SIZE(_r), .resources = _r, }
 

Enumerations

enum  bar0_cells {
  STA2X11_GPIO_0 = 0, STA2X11_GPIO_1, STA2X11_GPIO_2, STA2X11_GPIO_3,
  STA2X11_SCTL, STA2X11_SCR, STA2X11_TIME
}
 
enum  bar1_cells { STA2X11_APBREG = 0 }
 

Functions

u32 sta2x11_sctl_mask (struct pci_dev *pdev, u32 reg, u32 mask, u32 val)
 
 EXPORT_SYMBOL (sta2x11_sctl_mask)
 
u32 sta2x11_apbreg_mask (struct pci_dev *pdev, u32 reg, u32 mask, u32 val)
 
 EXPORT_SYMBOL (sta2x11_apbreg_mask)
 
 subsys_initcall (sta2x11_apbreg_init)
 
 subsys_initcall (sta2x11_sctl_init)
 
 rootfs_initcall (sta2x11_mfd_init)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Wind River")
 
 MODULE_DESCRIPTION ("STA2x11 mfd for GPIO, SCTL and APBREG")
 
 MODULE_DEVICE_TABLE (pci, sta2x11_mfd_tbl)
 

Macro Definition Documentation

#define CELL_4K (   _name,
  _cell 
)
Value:
{ \
.name = _name, \
.start = _cell * 4096, .end = _cell * 4096 + 4095, \
.flags = IORESOURCE_MEM, \
}

Definition at line 302 of file sta2x11-mfd.c.

#define DEV (   _name,
  _r 
)    { .name = _name, .num_resources = ARRAY_SIZE(_r), .resources = _r, }

Definition at line 330 of file sta2x11-mfd.c.

#define REG (   regname)    {.name = #regname, .offset = SCTL_ ## regname}

Definition at line 171 of file sta2x11-mfd.c.

#define REG (   regname)    {.name = #regname, .offset = regname}

Definition at line 171 of file sta2x11-mfd.c.

Enumeration Type Documentation

enum bar0_cells
Enumerator:
STA2X11_GPIO_0 
STA2X11_GPIO_1 
STA2X11_GPIO_2 
STA2X11_GPIO_3 
STA2X11_SCTL 
STA2X11_SCR 
STA2X11_TIME 

Definition at line 289 of file sta2x11-mfd.c.

enum bar1_cells
Enumerator:
STA2X11_APBREG 

Definition at line 299 of file sta2x11-mfd.c.

Function Documentation

EXPORT_SYMBOL ( sta2x11_sctl_mask  )
EXPORT_SYMBOL ( sta2x11_apbreg_mask  )
MODULE_AUTHOR ( "Wind River"  )
MODULE_DESCRIPTION ( "STA2x11 mfd for  GPIO,
SCTL and APBREG"   
)
MODULE_DEVICE_TABLE ( pci  ,
sta2x11_mfd_tbl   
)
MODULE_LICENSE ( "GPL v2 )
rootfs_initcall ( sta2x11_mfd_init  )
u32 sta2x11_apbreg_mask ( struct pci_dev pdev,
u32  reg,
u32  mask,
u32  val 
)

Definition at line 129 of file sta2x11-mfd.c.

u32 sta2x11_sctl_mask ( struct pci_dev pdev,
u32  reg,
u32  mask,
u32  val 
)

Definition at line 104 of file sta2x11-mfd.c.

subsys_initcall ( sta2x11_apbreg_init  )
subsys_initcall ( sta2x11_sctl_init  )