Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
vme.h File Reference

Go to the source code of this file.

Data Structures

struct  vme_dma_attr
 
struct  vme_resource
 
struct  vme_dev
 
struct  vme_driver
 

Macros

#define VME_A16   0x1
 
#define VME_A24   0x2
 
#define VME_A32   0x4
 
#define VME_A64   0x8
 
#define VME_CRCSR   0x10
 
#define VME_USER1   0x20
 
#define VME_USER2   0x40
 
#define VME_USER3   0x80
 
#define VME_USER4   0x100
 
#define VME_A16_MAX   0x10000ULL
 
#define VME_A24_MAX   0x1000000ULL
 
#define VME_A32_MAX   0x100000000ULL
 
#define VME_A64_MAX   0x10000000000000000ULL
 
#define VME_CRCSR_MAX   0x1000000ULL
 
#define VME_SCT   0x1
 
#define VME_BLT   0x2
 
#define VME_MBLT   0x4
 
#define VME_2eVME   0x8
 
#define VME_2eSST   0x10
 
#define VME_2eSSTB   0x20
 
#define VME_2eSST160   0x100
 
#define VME_2eSST267   0x200
 
#define VME_2eSST320   0x400
 
#define VME_SUPER   0x1000
 
#define VME_USER   0x2000
 
#define VME_PROG   0x4000
 
#define VME_DATA   0x8000
 
#define VME_D8   0x1
 
#define VME_D16   0x2
 
#define VME_D32   0x4
 
#define VME_D64   0x8
 
#define VME_R_ROBIN_MODE   0x1
 
#define VME_PRIORITY_MODE   0x2
 
#define VME_DMA_PATTERN   (1<<0)
 
#define VME_DMA_PCI   (1<<1)
 
#define VME_DMA_VME   (1<<2)
 
#define VME_DMA_PATTERN_BYTE   (1<<0)
 
#define VME_DMA_PATTERN_WORD   (1<<1)
 
#define VME_DMA_PATTERN_INCREMENT   (1<<2)
 
#define VME_DMA_VME_TO_MEM   (1<<0)
 
#define VME_DMA_MEM_TO_VME   (1<<1)
 
#define VME_DMA_VME_TO_VME   (1<<2)
 
#define VME_DMA_MEM_TO_MEM   (1<<3)
 
#define VME_DMA_PATTERN_TO_VME   (1<<4)
 
#define VME_DMA_PATTERN_TO_MEM   (1<<5)
 
#define VME_MAX_BRIDGES   (sizeof(unsigned int)*8)
 
#define VME_MAX_SLOTS   32
 
#define VME_SLOT_CURRENT   -1
 
#define VME_SLOT_ALL   -2
 

Enumerations

enum  vme_resource_type { VME_MASTER, VME_SLAVE, VME_DMA, VME_LM }
 

Functions

voidvme_alloc_consistent (struct vme_resource *, size_t, dma_addr_t *)
 
void vme_free_consistent (struct vme_resource *, size_t, void *, dma_addr_t)
 
size_t vme_get_size (struct vme_resource *)
 
struct vme_resourcevme_slave_request (struct vme_dev *, u32, u32)
 
int vme_slave_set (struct vme_resource *, int, unsigned long long, unsigned long long, dma_addr_t, u32, u32)
 
int vme_slave_get (struct vme_resource *, int *, unsigned long long *, unsigned long long *, dma_addr_t *, u32 *, u32 *)
 
void vme_slave_free (struct vme_resource *)
 
struct vme_resourcevme_master_request (struct vme_dev *, u32, u32, u32)
 
int vme_master_set (struct vme_resource *, int, unsigned long long, unsigned long long, u32, u32, u32)
 
int vme_master_get (struct vme_resource *, int *, unsigned long long *, unsigned long long *, u32 *, u32 *, u32 *)
 
ssize_t vme_master_read (struct vme_resource *, void *, size_t, loff_t)
 
ssize_t vme_master_write (struct vme_resource *, void *, size_t, loff_t)
 
unsigned int vme_master_rmw (struct vme_resource *, unsigned int, unsigned int, unsigned int, loff_t)
 
void vme_master_free (struct vme_resource *)
 
struct vme_resourcevme_dma_request (struct vme_dev *, u32)
 
struct vme_dma_listvme_new_dma_list (struct vme_resource *)
 
struct vme_dma_attrvme_dma_pattern_attribute (u32, u32)
 
struct vme_dma_attrvme_dma_pci_attribute (dma_addr_t)
 
struct vme_dma_attrvme_dma_vme_attribute (unsigned long long, u32, u32, u32)
 
void vme_dma_free_attribute (struct vme_dma_attr *)
 
int vme_dma_list_add (struct vme_dma_list *, struct vme_dma_attr *, struct vme_dma_attr *, size_t)
 
int vme_dma_list_exec (struct vme_dma_list *)
 
int vme_dma_list_free (struct vme_dma_list *)
 
int vme_dma_free (struct vme_resource *)
 
int vme_irq_request (struct vme_dev *, int, int, void(*callback)(int, int, void *), void *)
 
void vme_irq_free (struct vme_dev *, int, int)
 
int vme_irq_generate (struct vme_dev *, int, int)
 
struct vme_resourcevme_lm_request (struct vme_dev *)
 
int vme_lm_count (struct vme_resource *)
 
int vme_lm_set (struct vme_resource *, unsigned long long, u32, u32)
 
int vme_lm_get (struct vme_resource *, unsigned long long *, u32 *, u32 *)
 
int vme_lm_attach (struct vme_resource *, int, void(*callback)(int))
 
int vme_lm_detach (struct vme_resource *, int)
 
void vme_lm_free (struct vme_resource *)
 
int vme_slot_get (struct vme_dev *)
 
int vme_register_driver (struct vme_driver *, unsigned int)
 
void vme_unregister_driver (struct vme_driver *)
 

Variables

struct bus_type vme_bus_type
 

Macro Definition Documentation

#define VME_2eSST   0x10

Definition at line 35 of file vme.h.

#define VME_2eSST160   0x100

Definition at line 38 of file vme.h.

#define VME_2eSST267   0x200

Definition at line 39 of file vme.h.

#define VME_2eSST320   0x400

Definition at line 40 of file vme.h.

#define VME_2eSSTB   0x20

Definition at line 36 of file vme.h.

#define VME_2eVME   0x8

Definition at line 34 of file vme.h.

#define VME_A16   0x1

Definition at line 13 of file vme.h.

#define VME_A16_MAX   0x10000ULL

Definition at line 23 of file vme.h.

#define VME_A24   0x2

Definition at line 14 of file vme.h.

#define VME_A24_MAX   0x1000000ULL

Definition at line 24 of file vme.h.

#define VME_A32   0x4

Definition at line 15 of file vme.h.

#define VME_A32_MAX   0x100000000ULL

Definition at line 25 of file vme.h.

#define VME_A64   0x8

Definition at line 16 of file vme.h.

#define VME_A64_MAX   0x10000000000000000ULL

Definition at line 26 of file vme.h.

#define VME_BLT   0x2

Definition at line 32 of file vme.h.

#define VME_CRCSR   0x10

Definition at line 17 of file vme.h.

#define VME_CRCSR_MAX   0x1000000ULL

Definition at line 27 of file vme.h.

#define VME_D16   0x2

Definition at line 49 of file vme.h.

#define VME_D32   0x4

Definition at line 50 of file vme.h.

#define VME_D64   0x8

Definition at line 51 of file vme.h.

#define VME_D8   0x1

Definition at line 48 of file vme.h.

#define VME_DATA   0x8000

Definition at line 45 of file vme.h.

#define VME_DMA_MEM_TO_MEM   (1<<3)

Definition at line 68 of file vme.h.

#define VME_DMA_MEM_TO_VME   (1<<1)

Definition at line 66 of file vme.h.

#define VME_DMA_PATTERN   (1<<0)

Definition at line 57 of file vme.h.

#define VME_DMA_PATTERN_BYTE   (1<<0)

Definition at line 61 of file vme.h.

#define VME_DMA_PATTERN_INCREMENT   (1<<2)

Definition at line 63 of file vme.h.

#define VME_DMA_PATTERN_TO_MEM   (1<<5)

Definition at line 70 of file vme.h.

#define VME_DMA_PATTERN_TO_VME   (1<<4)

Definition at line 69 of file vme.h.

#define VME_DMA_PATTERN_WORD   (1<<1)

Definition at line 62 of file vme.h.

#define VME_DMA_PCI   (1<<1)

Definition at line 58 of file vme.h.

#define VME_DMA_VME   (1<<2)

Definition at line 59 of file vme.h.

#define VME_DMA_VME_TO_MEM   (1<<0)

Definition at line 65 of file vme.h.

#define VME_DMA_VME_TO_VME   (1<<2)

Definition at line 67 of file vme.h.

#define VME_MAX_BRIDGES   (sizeof(unsigned int)*8)

Definition at line 85 of file vme.h.

#define VME_MAX_SLOTS   32

Definition at line 86 of file vme.h.

#define VME_MBLT   0x4

Definition at line 33 of file vme.h.

#define VME_PRIORITY_MODE   0x2

Definition at line 55 of file vme.h.

#define VME_PROG   0x4000

Definition at line 44 of file vme.h.

#define VME_R_ROBIN_MODE   0x1

Definition at line 54 of file vme.h.

#define VME_SCT   0x1

Definition at line 31 of file vme.h.

#define VME_SLOT_ALL   -2

Definition at line 89 of file vme.h.

#define VME_SLOT_CURRENT   -1

Definition at line 88 of file vme.h.

#define VME_SUPER   0x1000

Definition at line 42 of file vme.h.

#define VME_USER   0x2000

Definition at line 43 of file vme.h.

#define VME_USER1   0x20

Definition at line 18 of file vme.h.

#define VME_USER2   0x40

Definition at line 19 of file vme.h.

#define VME_USER3   0x80

Definition at line 20 of file vme.h.

#define VME_USER4   0x100

Definition at line 21 of file vme.h.

Enumeration Type Documentation

Enumerator:
VME_MASTER 
VME_SLAVE 
VME_DMA 
VME_LM 

Definition at line 5 of file vme.h.

Function Documentation

void* vme_alloc_consistent ( struct vme_resource ,
size_t  ,
dma_addr_t  
)

Definition at line 84 of file vme.c.

int vme_dma_free ( struct vme_resource )

Definition at line 936 of file vme.c.

void vme_dma_free_attribute ( struct vme_dma_attr )

Definition at line 853 of file vme.c.

int vme_dma_list_add ( struct vme_dma_list ,
struct vme_dma_attr ,
struct vme_dma_attr ,
size_t   
)

Definition at line 860 of file vme.c.

int vme_dma_list_exec ( struct vme_dma_list )

Definition at line 884 of file vme.c.

int vme_dma_list_free ( struct vme_dma_list )

Definition at line 904 of file vme.c.

struct vme_dma_attr* vme_dma_pattern_attribute ( u32  ,
u32   
)
read

Definition at line 741 of file vme.c.

struct vme_dma_attr* vme_dma_pci_attribute ( dma_addr_t  )
read

Definition at line 776 of file vme.c.

struct vme_resource* vme_dma_request ( struct vme_dev ,
u32   
)
read

Definition at line 645 of file vme.c.

struct vme_dma_attr* vme_dma_vme_attribute ( unsigned long  long,
u32  ,
u32  ,
u32   
)
read

Definition at line 814 of file vme.c.

void vme_free_consistent ( struct vme_resource ,
size_t  ,
void ,
dma_addr_t   
)

Definition at line 118 of file vme.c.

size_t vme_get_size ( struct vme_resource )

Definition at line 149 of file vme.c.

void vme_irq_free ( struct vme_dev ,
int  ,
int   
)

Definition at line 1025 of file vme.c.

int vme_irq_generate ( struct vme_dev ,
int  ,
int   
)

Definition at line 1060 of file vme.c.

int vme_irq_request ( struct vme_dev ,
int  ,
int  ,
void(*)(int, int, void *)  callback,
void  
)

Definition at line 982 of file vme.c.

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

Definition at line 1206 of file vme.c.

int vme_lm_count ( struct vme_resource )

Definition at line 1147 of file vme.c.

int vme_lm_detach ( struct vme_resource ,
int   
)

Definition at line 1228 of file vme.c.

void vme_lm_free ( struct vme_resource )

Definition at line 1249 of file vme.c.

int vme_lm_get ( struct vme_resource ,
unsigned long long ,
u32 ,
u32  
)

Definition at line 1184 of file vme.c.

struct vme_resource* vme_lm_request ( struct vme_dev )
read

Definition at line 1087 of file vme.c.

int vme_lm_set ( struct vme_resource ,
unsigned long  long,
u32  ,
u32   
)

Definition at line 1162 of file vme.c.

void vme_master_free ( struct vme_resource )

Definition at line 612 of file vme.c.

int vme_master_get ( struct vme_resource ,
int ,
unsigned long long ,
unsigned long long ,
u32 ,
u32 ,
u32  
)

Definition at line 490 of file vme.c.

ssize_t vme_master_read ( struct vme_resource ,
void ,
size_t  ,
loff_t   
)

Definition at line 517 of file vme.c.

struct vme_resource* vme_master_request ( struct vme_dev ,
u32  ,
u32  ,
u32   
)
read

Definition at line 387 of file vme.c.

unsigned int vme_master_rmw ( struct vme_resource ,
unsigned  int,
unsigned  int,
unsigned  int,
loff_t   
)

Definition at line 590 of file vme.c.

int vme_master_set ( struct vme_resource ,
int  ,
unsigned long  long,
unsigned long  long,
u32  ,
u32  ,
u32   
)

Definition at line 454 of file vme.c.

ssize_t vme_master_write ( struct vme_resource ,
void ,
size_t  ,
loff_t   
)

Definition at line 554 of file vme.c.

struct vme_dma_list* vme_new_dma_list ( struct vme_resource )
read

Definition at line 713 of file vme.c.

int vme_register_driver ( struct vme_driver ,
unsigned  int 
)

Definition at line 1411 of file vme.c.

void vme_slave_free ( struct vme_resource )

Definition at line 354 of file vme.c.

int vme_slave_get ( struct vme_resource ,
int ,
unsigned long long ,
unsigned long long ,
dma_addr_t ,
u32 ,
u32  
)

Definition at line 330 of file vme.c.

struct vme_resource* vme_slave_request ( struct vme_dev ,
u32  ,
u32   
)
read

Definition at line 231 of file vme.c.

int vme_slave_set ( struct vme_resource ,
int  ,
unsigned long  long,
unsigned long  long,
dma_addr_t  ,
u32  ,
u32   
)

Definition at line 295 of file vme.c.

int vme_slot_get ( struct vme_dev )

Definition at line 1275 of file vme.c.

void vme_unregister_driver ( struct vme_driver )

Definition at line 1431 of file vme.c.

Variable Documentation

struct bus_type vme_bus_type

Definition at line 1494 of file vme.c.