Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
vme.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/mm.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/poll.h>
#include <linux/highmem.h>
#include <linux/interrupt.h>
#include <linux/pagemap.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/syscalls.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/vme.h>
#include "vme_bridge.h"

Go to the source code of this file.

Functions

voidvme_alloc_consistent (struct vme_resource *resource, size_t size, dma_addr_t *dma)
 
 EXPORT_SYMBOL (vme_alloc_consistent)
 
void vme_free_consistent (struct vme_resource *resource, size_t size, void *vaddr, dma_addr_t dma)
 
 EXPORT_SYMBOL (vme_free_consistent)
 
size_t vme_get_size (struct vme_resource *resource)
 
 EXPORT_SYMBOL (vme_get_size)
 
struct vme_resourcevme_slave_request (struct vme_dev *vdev, u32 address, u32 cycle)
 
 EXPORT_SYMBOL (vme_slave_request)
 
int vme_slave_set (struct vme_resource *resource, int enabled, unsigned long long vme_base, unsigned long long size, dma_addr_t buf_base, u32 aspace, u32 cycle)
 
 EXPORT_SYMBOL (vme_slave_set)
 
int vme_slave_get (struct vme_resource *resource, int *enabled, unsigned long long *vme_base, unsigned long long *size, dma_addr_t *buf_base, u32 *aspace, u32 *cycle)
 
 EXPORT_SYMBOL (vme_slave_get)
 
void vme_slave_free (struct vme_resource *resource)
 
 EXPORT_SYMBOL (vme_slave_free)
 
struct vme_resourcevme_master_request (struct vme_dev *vdev, u32 address, u32 cycle, u32 dwidth)
 
 EXPORT_SYMBOL (vme_master_request)
 
int vme_master_set (struct vme_resource *resource, int enabled, unsigned long long vme_base, unsigned long long size, u32 aspace, u32 cycle, u32 dwidth)
 
 EXPORT_SYMBOL (vme_master_set)
 
int vme_master_get (struct vme_resource *resource, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth)
 
 EXPORT_SYMBOL (vme_master_get)
 
ssize_t vme_master_read (struct vme_resource *resource, void *buf, size_t count, loff_t offset)
 
 EXPORT_SYMBOL (vme_master_read)
 
ssize_t vme_master_write (struct vme_resource *resource, void *buf, size_t count, loff_t offset)
 
 EXPORT_SYMBOL (vme_master_write)
 
unsigned int vme_master_rmw (struct vme_resource *resource, unsigned int mask, unsigned int compare, unsigned int swap, loff_t offset)
 
 EXPORT_SYMBOL (vme_master_rmw)
 
void vme_master_free (struct vme_resource *resource)
 
 EXPORT_SYMBOL (vme_master_free)
 
struct vme_resourcevme_dma_request (struct vme_dev *vdev, u32 route)
 
 EXPORT_SYMBOL (vme_dma_request)
 
struct vme_dma_listvme_new_dma_list (struct vme_resource *resource)
 
 EXPORT_SYMBOL (vme_new_dma_list)
 
struct vme_dma_attrvme_dma_pattern_attribute (u32 pattern, u32 type)
 
 EXPORT_SYMBOL (vme_dma_pattern_attribute)
 
struct vme_dma_attrvme_dma_pci_attribute (dma_addr_t address)
 
 EXPORT_SYMBOL (vme_dma_pci_attribute)
 
struct vme_dma_attrvme_dma_vme_attribute (unsigned long long address, u32 aspace, u32 cycle, u32 dwidth)
 
 EXPORT_SYMBOL (vme_dma_vme_attribute)
 
void vme_dma_free_attribute (struct vme_dma_attr *attributes)
 
 EXPORT_SYMBOL (vme_dma_free_attribute)
 
int vme_dma_list_add (struct vme_dma_list *list, struct vme_dma_attr *src, struct vme_dma_attr *dest, size_t count)
 
 EXPORT_SYMBOL (vme_dma_list_add)
 
int vme_dma_list_exec (struct vme_dma_list *list)
 
 EXPORT_SYMBOL (vme_dma_list_exec)
 
int vme_dma_list_free (struct vme_dma_list *list)
 
 EXPORT_SYMBOL (vme_dma_list_free)
 
int vme_dma_free (struct vme_resource *resource)
 
 EXPORT_SYMBOL (vme_dma_free)
 
void vme_irq_handler (struct vme_bridge *bridge, int level, int statid)
 
 EXPORT_SYMBOL (vme_irq_handler)
 
int vme_irq_request (struct vme_dev *vdev, int level, int statid, void(*callback)(int, int, void *), void *priv_data)
 
 EXPORT_SYMBOL (vme_irq_request)
 
void vme_irq_free (struct vme_dev *vdev, int level, int statid)
 
 EXPORT_SYMBOL (vme_irq_free)
 
int vme_irq_generate (struct vme_dev *vdev, int level, int statid)
 
 EXPORT_SYMBOL (vme_irq_generate)
 
struct vme_resourcevme_lm_request (struct vme_dev *vdev)
 
 EXPORT_SYMBOL (vme_lm_request)
 
int vme_lm_count (struct vme_resource *resource)
 
 EXPORT_SYMBOL (vme_lm_count)
 
int vme_lm_set (struct vme_resource *resource, unsigned long long lm_base, u32 aspace, u32 cycle)
 
 EXPORT_SYMBOL (vme_lm_set)
 
int vme_lm_get (struct vme_resource *resource, unsigned long long *lm_base, u32 *aspace, u32 *cycle)
 
 EXPORT_SYMBOL (vme_lm_get)
 
int vme_lm_attach (struct vme_resource *resource, int monitor, void(*callback)(int))
 
 EXPORT_SYMBOL (vme_lm_attach)
 
int vme_lm_detach (struct vme_resource *resource, int monitor)
 
 EXPORT_SYMBOL (vme_lm_detach)
 
void vme_lm_free (struct vme_resource *resource)
 
 EXPORT_SYMBOL (vme_lm_free)
 
int vme_slot_get (struct vme_dev *vdev)
 
 EXPORT_SYMBOL (vme_slot_get)
 
int vme_register_bridge (struct vme_bridge *bridge)
 
 EXPORT_SYMBOL (vme_register_bridge)
 
void vme_unregister_bridge (struct vme_bridge *bridge)
 
 EXPORT_SYMBOL (vme_unregister_bridge)
 
int vme_register_driver (struct vme_driver *drv, unsigned int ndevs)
 
 EXPORT_SYMBOL (vme_register_driver)
 
void vme_unregister_driver (struct vme_driver *drv)
 
 EXPORT_SYMBOL (vme_unregister_driver)
 
 EXPORT_SYMBOL (vme_bus_type)
 
 MODULE_DESCRIPTION ("VME bridge driver framework")
 
 MODULE_AUTHOR ("Martyn Welch <[email protected]")
 
 MODULE_LICENSE ("GPL")
 
 module_init (vme_init)
 
 module_exit (vme_exit)
 

Variables

struct bus_type vme_bus_type
 

Function Documentation

EXPORT_SYMBOL ( vme_alloc_consistent  )
EXPORT_SYMBOL ( vme_free_consistent  )
EXPORT_SYMBOL ( vme_get_size  )
EXPORT_SYMBOL ( vme_slave_request  )
EXPORT_SYMBOL ( vme_slave_set  )
EXPORT_SYMBOL ( vme_slave_get  )
EXPORT_SYMBOL ( vme_slave_free  )
EXPORT_SYMBOL ( vme_master_request  )
EXPORT_SYMBOL ( vme_master_set  )
EXPORT_SYMBOL ( vme_master_get  )
EXPORT_SYMBOL ( vme_master_read  )
EXPORT_SYMBOL ( vme_master_write  )
EXPORT_SYMBOL ( vme_master_rmw  )
EXPORT_SYMBOL ( vme_master_free  )
EXPORT_SYMBOL ( vme_dma_request  )
EXPORT_SYMBOL ( vme_new_dma_list  )
EXPORT_SYMBOL ( vme_dma_pattern_attribute  )
EXPORT_SYMBOL ( vme_dma_pci_attribute  )
EXPORT_SYMBOL ( vme_dma_vme_attribute  )
EXPORT_SYMBOL ( vme_dma_free_attribute  )
EXPORT_SYMBOL ( vme_dma_list_add  )
EXPORT_SYMBOL ( vme_dma_list_exec  )
EXPORT_SYMBOL ( vme_dma_list_free  )
EXPORT_SYMBOL ( vme_dma_free  )
EXPORT_SYMBOL ( vme_irq_handler  )
EXPORT_SYMBOL ( vme_irq_request  )
EXPORT_SYMBOL ( vme_irq_free  )
EXPORT_SYMBOL ( vme_irq_generate  )
EXPORT_SYMBOL ( vme_lm_request  )
EXPORT_SYMBOL ( vme_lm_count  )
EXPORT_SYMBOL ( vme_lm_set  )
EXPORT_SYMBOL ( vme_lm_get  )
EXPORT_SYMBOL ( vme_lm_attach  )
EXPORT_SYMBOL ( vme_lm_detach  )
EXPORT_SYMBOL ( vme_lm_free  )
EXPORT_SYMBOL ( vme_slot_get  )
EXPORT_SYMBOL ( vme_register_bridge  )
EXPORT_SYMBOL ( vme_unregister_bridge  )
EXPORT_SYMBOL ( vme_register_driver  )
EXPORT_SYMBOL ( vme_unregister_driver  )
EXPORT_SYMBOL ( vme_bus_type  )
MODULE_AUTHOR ( )
MODULE_DESCRIPTION ( "VME bridge driver framework"  )
module_exit ( vme_exit  )
module_init ( vme_init  )
MODULE_LICENSE ( "GPL"  )
void* vme_alloc_consistent ( struct vme_resource resource,
size_t  size,
dma_addr_t dma 
)

Definition at line 84 of file vme.c.

int vme_dma_free ( struct vme_resource resource)

Definition at line 936 of file vme.c.

void vme_dma_free_attribute ( struct vme_dma_attr attributes)

Definition at line 853 of file vme.c.

int vme_dma_list_add ( struct vme_dma_list list,
struct vme_dma_attr src,
struct vme_dma_attr dest,
size_t  count 
)

Definition at line 860 of file vme.c.

int vme_dma_list_exec ( struct vme_dma_list list)

Definition at line 884 of file vme.c.

int vme_dma_list_free ( struct vme_dma_list list)

Definition at line 904 of file vme.c.

struct vme_dma_attr* vme_dma_pattern_attribute ( u32  pattern,
u32  type 
)
read

Definition at line 741 of file vme.c.

struct vme_dma_attr* vme_dma_pci_attribute ( dma_addr_t  address)
read

Definition at line 776 of file vme.c.

struct vme_resource* vme_dma_request ( struct vme_dev vdev,
u32  route 
)
read

Definition at line 645 of file vme.c.

struct vme_dma_attr* vme_dma_vme_attribute ( unsigned long long  address,
u32  aspace,
u32  cycle,
u32  dwidth 
)
read

Definition at line 814 of file vme.c.

void vme_free_consistent ( struct vme_resource resource,
size_t  size,
void vaddr,
dma_addr_t  dma 
)

Definition at line 118 of file vme.c.

size_t vme_get_size ( struct vme_resource resource)

Definition at line 149 of file vme.c.

void vme_irq_free ( struct vme_dev vdev,
int  level,
int  statid 
)

Definition at line 1025 of file vme.c.

int vme_irq_generate ( struct vme_dev vdev,
int  level,
int  statid 
)

Definition at line 1060 of file vme.c.

void vme_irq_handler ( struct vme_bridge bridge,
int  level,
int  statid 
)

Definition at line 966 of file vme.c.

int vme_irq_request ( struct vme_dev vdev,
int  level,
int  statid,
void(*)(int, int, void *)  callback,
void priv_data 
)

Definition at line 982 of file vme.c.

int vme_lm_attach ( struct vme_resource resource,
int  monitor,
void(*)(int callback 
)

Definition at line 1206 of file vme.c.

int vme_lm_count ( struct vme_resource resource)

Definition at line 1147 of file vme.c.

int vme_lm_detach ( struct vme_resource resource,
int  monitor 
)

Definition at line 1228 of file vme.c.

void vme_lm_free ( struct vme_resource resource)

Definition at line 1249 of file vme.c.

int vme_lm_get ( struct vme_resource resource,
unsigned long long lm_base,
u32 aspace,
u32 cycle 
)

Definition at line 1184 of file vme.c.

struct vme_resource* vme_lm_request ( struct vme_dev vdev)
read

Definition at line 1087 of file vme.c.

int vme_lm_set ( struct vme_resource resource,
unsigned long long  lm_base,
u32  aspace,
u32  cycle 
)

Definition at line 1162 of file vme.c.

void vme_master_free ( struct vme_resource resource)

Definition at line 612 of file vme.c.

int vme_master_get ( struct vme_resource resource,
int enabled,
unsigned long long vme_base,
unsigned long long size,
u32 aspace,
u32 cycle,
u32 dwidth 
)

Definition at line 490 of file vme.c.

ssize_t vme_master_read ( struct vme_resource resource,
void buf,
size_t  count,
loff_t  offset 
)

Definition at line 517 of file vme.c.

struct vme_resource* vme_master_request ( struct vme_dev vdev,
u32  address,
u32  cycle,
u32  dwidth 
)
read

Definition at line 387 of file vme.c.

unsigned int vme_master_rmw ( struct vme_resource resource,
unsigned int  mask,
unsigned int  compare,
unsigned int  swap,
loff_t  offset 
)

Definition at line 590 of file vme.c.

int vme_master_set ( struct vme_resource resource,
int  enabled,
unsigned long long  vme_base,
unsigned long long  size,
u32  aspace,
u32  cycle,
u32  dwidth 
)

Definition at line 454 of file vme.c.

ssize_t vme_master_write ( struct vme_resource resource,
void buf,
size_t  count,
loff_t  offset 
)

Definition at line 554 of file vme.c.

struct vme_dma_list* vme_new_dma_list ( struct vme_resource resource)
read

Definition at line 713 of file vme.c.

int vme_register_bridge ( struct vme_bridge bridge)

Definition at line 1302 of file vme.c.

int vme_register_driver ( struct vme_driver drv,
unsigned int  ndevs 
)

Definition at line 1411 of file vme.c.

void vme_slave_free ( struct vme_resource resource)

Definition at line 354 of file vme.c.

int vme_slave_get ( struct vme_resource resource,
int enabled,
unsigned long long vme_base,
unsigned long long size,
dma_addr_t buf_base,
u32 aspace,
u32 cycle 
)

Definition at line 330 of file vme.c.

struct vme_resource* vme_slave_request ( struct vme_dev vdev,
u32  address,
u32  cycle 
)
read

Definition at line 231 of file vme.c.

int vme_slave_set ( struct vme_resource resource,
int  enabled,
unsigned long long  vme_base,
unsigned long long  size,
dma_addr_t  buf_base,
u32  aspace,
u32  cycle 
)

Definition at line 295 of file vme.c.

int vme_slot_get ( struct vme_dev vdev)

Definition at line 1275 of file vme.c.

void vme_unregister_bridge ( struct vme_bridge bridge)

Definition at line 1324 of file vme.c.

void vme_unregister_driver ( struct vme_driver drv)

Definition at line 1431 of file vme.c.

Variable Documentation

struct bus_type vme_bus_type
Initial value:
= {
.name = "vme",
.match = vme_bus_match,
.probe = vme_bus_probe,
.remove = vme_bus_remove,
}

Definition at line 1494 of file vme.c.