devLib2  2.11
devlib_dummy.c
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2010 Brookhaven Science Associates, as Operator of
3 * Brookhaven National Laboratory.
4 * devLib2 is distributed subject to a Software License Agreement found
5 * in file LICENSE that is included with this distribution.
6 \*************************************************************************/
7 /*
8  * Author: Michael Davidsaver <mdavidsaver@gmail.com>
9  */
10 
11 #include <string.h>
12 #include <stdio.h>
13 #include <stdlib.h>
14 
15 #include <devLib.h>
16 
17 /*
18  * Before 3.14.9 there was not default implementation of devLib
19  * so host builds were not possible.
20  *
21  * add a null implementation
22  */
23 
24 const char *epicsAddressTypeName[] = {"","","","","",""};
25 
26 long devAddressMap(void) {return -1;}
27 
28 long devReadProbe (unsigned wordSize, volatile const void *ptr, void *pValueRead) {return -1;}
29 
31  epicsAddressType addrType,
32  size_t base,
33  size_t size
34 ) {return -1;}
35 
36 long devWriteProbe (unsigned wordSize, volatile void *ptr, const void *pValueWritten) {return -1;}
37 
38 
40  const char *pOwnerName,
41  epicsAddressType addrType,
42  size_t logicalBaseAddress,
43  size_t size, /* bytes */
44  volatile void **pPhysicalAddress) {return -1;}
45 
47  epicsAddressType addrType,
48  size_t logicalBaseAddress,
49  const char *pOwnerName) {return -1;}
50 
52  const char *pOwnerName,
53  epicsAddressType addrType,
54  size_t size,
55  unsigned alignment, /*n ls bits zero in addr*/
56  volatile void **pLocalAddress) {return -1;}
57 
58 
59 long devDisableInterruptLevelVME (unsigned level) {return -1;}
60 
61 void *devLibA24Malloc(size_t l) {return NULL;}
62 void *devLibA24Calloc(size_t l) {return NULL;}
63 void devLibA24Free(void *pBlock) {}
64 
66  epicsInterruptType intType,
67  unsigned vectorNumber,
68  void (*pFunction)(void *),
69  void *parameter) {return -1;}
70 
72  epicsInterruptType intType,
73  unsigned vectorNumber,
74  void (*pFunction)(void *)) {return -1;}
75 
76 long devEnableInterruptLevel(epicsInterruptType intType, unsigned level) {return -1;}
77 
78 long devDisableInterruptLevel (epicsInterruptType intType, unsigned level) {return -1;}
79 
80 long locationProbe (epicsAddressType addrType, char *pLocation) {return -1;}
81 
82 #ifndef vxWorks
83 void bcopyLongs(char *source, char *destination, int nlongs) {}
84 #endif
85 
86 devLibVirtualOS *pdevLibVirtualOS=NULL;
long devRegisterAddress(const char *pOwnerName, epicsAddressType addrType, size_t logicalBaseAddress, size_t size, volatile void **pPhysicalAddress)
Definition: devlib_dummy.c:39
long devEnableInterruptLevel(epicsInterruptType intType, unsigned level)
Definition: devlib_dummy.c:76
devLibVirtualOS * pdevLibVirtualOS
Definition: devlib_dummy.c:86
void * devLibA24Malloc(size_t l)
Definition: devlib_dummy.c:61
long devUnregisterAddress(epicsAddressType addrType, size_t logicalBaseAddress, const char *pOwnerName)
Definition: devlib_dummy.c:46
void * devLibA24Calloc(size_t l)
Definition: devlib_dummy.c:62
long devDisableInterruptLevelVME(unsigned level)
Definition: devlib_dummy.c:59
long devAllocAddress(const char *pOwnerName, epicsAddressType addrType, size_t size, unsigned alignment, volatile void **pLocalAddress)
Definition: devlib_dummy.c:51
long devNoResponseProbe(epicsAddressType addrType, size_t base, size_t size)
Definition: devlib_dummy.c:30
void devLibA24Free(void *pBlock)
Definition: devlib_dummy.c:63
const char * epicsAddressTypeName[]
Definition: devlib_dummy.c:24
long devConnectInterrupt(epicsInterruptType intType, unsigned vectorNumber, void(*pFunction)(void *), void *parameter)
Definition: devlib_dummy.c:65
long devAddressMap(void)
Definition: devlib_dummy.c:26
long devDisableInterruptLevel(epicsInterruptType intType, unsigned level)
Definition: devlib_dummy.c:78
long devDisconnectInterrupt(epicsInterruptType intType, unsigned vectorNumber, void(*pFunction)(void *))
Definition: devlib_dummy.c:71
long locationProbe(epicsAddressType addrType, char *pLocation)
Definition: devlib_dummy.c:80
void bcopyLongs(char *source, char *destination, int nlongs)
Definition: devlib_dummy.c:83
long devWriteProbe(unsigned wordSize, volatile void *ptr, const void *pValueWritten)
Definition: devlib_dummy.c:36
long devReadProbe(unsigned wordSize, volatile const void *ptr, void *pValueRead)
Definition: devlib_dummy.c:28