devLib2  2.12
Data Structures | Macros | Typedefs | Functions
osdPciShared.h File Reference
#include "devLibPCIOSD.h"
#include <dbDefs.h>
#include <shareLib.h>

Go to the source code of this file.

Data Structures

struct  osdPCIDevice
 

Macros

#define CONTAINER(ptr, structure, member)   ((structure*)((char*)(ptr) - offsetof(structure, member)))
 

Typedefs

typedef struct osdPCIDevice osdPCIDevice
 

Functions

INLINE osdPCIDevicepcidev2osd (const epicsPCIDevice *devptr)
 
int sharedDevPCIFindCB (const epicsPCIID *idlist, devPCISearchFn searchfn, void *arg, unsigned int opt)
 
int sharedDevPCIToLocalAddr (const epicsPCIDevice *dev, unsigned int bar, volatile void **ppLocalAddr, unsigned int opt)
 
int sharedDevPCIBarLen (const epicsPCIDevice *dev, unsigned int bar, epicsUInt32 *len)
 
int sharedDevPCIConfigAccess (const epicsPCIDevice *dev, unsigned offset, void *pArg, devPCIAccessMode mode)
 
int sharedDevPCIInit (void)
 

Macro Definition Documentation

◆ CONTAINER

#define CONTAINER (   ptr,
  structure,
  member 
)    ((structure*)((char*)(ptr) - offsetof(structure, member)))

Definition at line 30 of file osdPciShared.h.

Typedef Documentation

◆ osdPCIDevice

typedef struct osdPCIDevice osdPCIDevice

Definition at line 48 of file osdPciShared.h.

Function Documentation

◆ pcidev2osd()

INLINE osdPCIDevice* pcidev2osd ( const epicsPCIDevice devptr)

Definition at line 52 of file osdPciShared.h.

◆ sharedDevPCIBarLen()

int sharedDevPCIBarLen ( const epicsPCIDevice dev,
unsigned int  bar,
epicsUInt32 *  len 
)

Definition at line 230 of file osdPciShared.c.

◆ sharedDevPCIConfigAccess()

int sharedDevPCIConfigAccess ( const epicsPCIDevice dev,
unsigned  offset,
void *  pArg,
devPCIAccessMode  mode 
)

Definition at line 296 of file osdPciShared.c.

◆ sharedDevPCIFindCB()

int sharedDevPCIFindCB ( const epicsPCIID idlist,
devPCISearchFn  searchfn,
void *  arg,
unsigned int  opt 
)

Definition at line 146 of file osdPciShared.c.

◆ sharedDevPCIInit()

int sharedDevPCIInit ( void  )

Definition at line 36 of file osdPciShared.c.

◆ sharedDevPCIToLocalAddr()

int sharedDevPCIToLocalAddr ( const epicsPCIDevice dev,
unsigned int  bar,
volatile void **  ppLocalAddr,
unsigned int  opt 
)

Definition at line 194 of file osdPciShared.c.