devLib2  2.11
Data Structures | Macros | Enumerations | Functions
devLibPCIImpl.h File Reference
#include <stddef.h>
#include <dbDefs.h>
#include <ellLib.h>
#include <shareLib.h>
#include <epicsTypes.h>
#include "devLibPCI.h"

Go to the source code of this file.

Data Structures

struct  devLibPCI
 

Macros

#define CFG_ACC_WIDTH(mode)   ((mode) & 0x0f)
 
#define CFG_ACC_WRITE(mode)   ((mode) & 0x10)
 
#define devLibPCIRegisterDriver(TPTR)   devLibPCIRegisterDriver2(TPTR, sizeof(*(TPTR)))
 

Enumerations

enum  devPCIAccessMode {
  RD_08 = 0x01, RD_16 = 0x02, RD_32 = 0x04, WR_08 = 0x11,
  WR_16 = 0x12, WR_32 = 0x14
}
 

Functions

epicsShareFunc int devLibPCIRegisterDriver2 (devLibPCI *, size_t)
 
epicsShareFunc void devLibPCIRegisterBaseDefault (void)
 
epicsShareFunc int devLibPCIMatch (const epicsPCIID *match, const epicsPCIID *dev)
 

Macro Definition Documentation

◆ CFG_ACC_WIDTH

#define CFG_ACC_WIDTH (   mode)    ((mode) & 0x0f)

Definition at line 36 of file devLibPCIImpl.h.

◆ CFG_ACC_WRITE

#define CFG_ACC_WRITE (   mode)    ((mode) & 0x10)

Definition at line 37 of file devLibPCIImpl.h.

◆ devLibPCIRegisterDriver

#define devLibPCIRegisterDriver (   TPTR)    devLibPCIRegisterDriver2(TPTR, sizeof(*(TPTR)))

Definition at line 72 of file devLibPCIImpl.h.

Enumeration Type Documentation

◆ devPCIAccessMode

Enumerator
RD_08 
RD_16 
RD_32 
WR_08 
WR_16 
WR_32 

Definition at line 27 of file devLibPCIImpl.h.

Function Documentation

◆ devLibPCIMatch()

epicsShareFunc int devLibPCIMatch ( const epicsPCIID match,
const epicsPCIID dev 
)

Helper for implementing devLibPCI::pDevPCIFind()

Returns true if the given match (which may include DEVPCI_ANY_* wildcards) matches the given device (which may not).

Definition at line 153 of file devLibPCI.c.

◆ devLibPCIRegisterBaseDefault()

epicsShareFunc void devLibPCIRegisterBaseDefault ( void  )

Register default implementation

Not needed by IOCs

◆ devLibPCIRegisterDriver2()

epicsShareFunc int devLibPCIRegisterDriver2 ( devLibPCI ,
size_t   
)

Definition at line 70 of file devLibPCI.c.