Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
abx500-core.c File Reference
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/mfd/abx500.h>

Go to the source code of this file.

Data Structures

struct  abx500_device_entry
 

Functions

int abx500_register_ops (struct device *dev, struct abx500_ops *ops)
 
 EXPORT_SYMBOL (abx500_register_ops)
 
void abx500_remove_ops (struct device *dev)
 
 EXPORT_SYMBOL (abx500_remove_ops)
 
int abx500_set_register_interruptible (struct device *dev, u8 bank, u8 reg, u8 value)
 
 EXPORT_SYMBOL (abx500_set_register_interruptible)
 
int abx500_get_register_interruptible (struct device *dev, u8 bank, u8 reg, u8 *value)
 
 EXPORT_SYMBOL (abx500_get_register_interruptible)
 
int abx500_get_register_page_interruptible (struct device *dev, u8 bank, u8 first_reg, u8 *regvals, u8 numregs)
 
 EXPORT_SYMBOL (abx500_get_register_page_interruptible)
 
int abx500_mask_and_set_register_interruptible (struct device *dev, u8 bank, u8 reg, u8 bitmask, u8 bitvalues)
 
 EXPORT_SYMBOL (abx500_mask_and_set_register_interruptible)
 
int abx500_get_chip_id (struct device *dev)
 
 EXPORT_SYMBOL (abx500_get_chip_id)
 
int abx500_event_registers_startup_state_get (struct device *dev, u8 *event)
 
 EXPORT_SYMBOL (abx500_event_registers_startup_state_get)
 
int abx500_startup_irq_enabled (struct device *dev, unsigned int irq)
 
 EXPORT_SYMBOL (abx500_startup_irq_enabled)
 
 MODULE_AUTHOR ("Mattias Wallin <[email protected]>")
 
 MODULE_DESCRIPTION ("ABX500 core driver")
 
 MODULE_LICENSE ("GPL")
 

Function Documentation

int abx500_event_registers_startup_state_get ( struct device dev,
u8 event 
)

Definition at line 132 of file abx500-core.c.

int abx500_get_chip_id ( struct device dev)

Definition at line 120 of file abx500-core.c.

int abx500_get_register_interruptible ( struct device dev,
u8  bank,
u8  reg,
u8 value 
)

Definition at line 79 of file abx500-core.c.

int abx500_get_register_page_interruptible ( struct device dev,
u8  bank,
u8  first_reg,
u8 regvals,
u8  numregs 
)

Definition at line 92 of file abx500-core.c.

int abx500_mask_and_set_register_interruptible ( struct device dev,
u8  bank,
u8  reg,
u8  bitmask,
u8  bitvalues 
)

abx500_mask_and_set_register_inerruptible() - Modifies selected bits of a target register

: The AB sub device. : The i2c bank number. : The bit mask to use. : The new bit values.

Updates the value of an AB register: value -> ((value & ~bitmask) | (bitvalues & bitmask))

Definition at line 106 of file abx500-core.c.

int abx500_register_ops ( struct device dev,
struct abx500_ops ops 
)

Definition at line 35 of file abx500-core.c.

void abx500_remove_ops ( struct device dev)

Definition at line 52 of file abx500-core.c.

int abx500_set_register_interruptible ( struct device dev,
u8  bank,
u8  reg,
u8  value 
)

Definition at line 66 of file abx500-core.c.

int abx500_startup_irq_enabled ( struct device dev,
unsigned int  irq 
)

Definition at line 144 of file abx500-core.c.

EXPORT_SYMBOL ( abx500_register_ops  )
EXPORT_SYMBOL ( abx500_remove_ops  )
EXPORT_SYMBOL ( abx500_set_register_interruptible  )
EXPORT_SYMBOL ( abx500_get_register_interruptible  )
EXPORT_SYMBOL ( abx500_get_chip_id  )
EXPORT_SYMBOL ( abx500_startup_irq_enabled  )
MODULE_AUTHOR ( "Mattias Wallin <[email protected]>"  )
MODULE_DESCRIPTION ( "ABX500 core driver )
MODULE_LICENSE ( "GPL"  )