Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
mmio.c File Reference
#include <linux/clocksource.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  clocksource_mmio


cycle_t clocksource_mmio_readl_up (struct clocksource *c)
cycle_t clocksource_mmio_readl_down (struct clocksource *c)
cycle_t clocksource_mmio_readw_up (struct clocksource *c)
cycle_t clocksource_mmio_readw_down (struct clocksource *c)
: Name of the clocksource

clocksource_mmio_init - Initialize a simple mmio based clocksource : Virtual address of the clock readout register

: Frequency of the clocksource in Hz : Rating of the clocksource : Number of valid bits : One of clocksource_mmio_read*() above

int __init clocksource_mmio_init (void __iomem *base, const char *name, unsigned long hz, int rating, unsigned bits, cycle_t(*read)(struct clocksource *))

Function Documentation

int __init clocksource_mmio_init ( void __iomem base,
const char name,
unsigned long  hz,
int  rating,
unsigned  bits,
cycle_t(*)(struct clocksource *)  read 

Definition at line 52 of file mmio.c.

cycle_t clocksource_mmio_readl_down ( struct clocksource c)

Definition at line 28 of file mmio.c.

cycle_t clocksource_mmio_readl_up ( struct clocksource c)

Definition at line 23 of file mmio.c.

cycle_t clocksource_mmio_readw_down ( struct clocksource c)

Definition at line 38 of file mmio.c.

cycle_t clocksource_mmio_readw_up ( struct clocksource c)

Definition at line 33 of file mmio.c.