versadac  1
versadac - Scalable Recorder Firmware
eio.h
1 /*******************************************************************************
2 FILE : eio.h
3 VERSION : $Id$
4 AUTHOR : David Cozens
5 SYSTEM : Diab C for PowerPC under vxWorks
6 DESCRIPTION : Definition of systm wide eio data structures.
7 *******************************************************************************/
8 #ifndef __EIO_H
9 #define __EIO_H
10 
11 #define EIO_T2500_HARDWARE_PRESENT 1
12 #define EIO_SCALABLE_REC 1
13 #define EIO_T2750 1
14 #define EIO_T2500 1
15 
16 #ifndef EIO_NULL
17 #define EIO_NULL 0
18 #endif
19 #ifndef EIO_PHOENIX
20 #define EIO_PHOENIX 0
21 #endif
22 #ifndef EIO_T2500
23 #define EIO_T2500 0
24 #endif
25 #ifndef EIO_T2750
26 #define EIO_T2750 0
27 #endif
28 
29 #define EIO_NUMBER_OF_SYSTEMS (EIO_NULL + EIO_T2500 + EIO_PHOENIX)
30 
31 
32 #include "stdtypes.h"
33 #include "eio_syst.h"
34 #include "eio_mod.h"
35 #include "eio_ai.h"
36 #include "eio_ao.h"
37 #include "eio_di.h"
38 #include "eio_do.h"
39 #include "eio_fi.h"
40 #include "eio_sys.h"
41 #include "eio_node.h"
42 #include "eio_sysf.h"
43 
44 #if EIO_NULL
45 #include "eio_null.h"
46 #if (EIO_NUMBER_OF_SYSTEMS==1)
47 #define TheIOSystem (&NullIOSystem)
48 #endif
49 #endif
50 
51 #if EIO_PHOENIX
52 #include "eio_phnx.h"
53 #if (EIO_NUMBER_OF_SYSTEMS==1)
54 #define TheIOSystem (&PhnxIOSystem)
55 #endif
56 #endif
57 
58 #if EIO_T2500
59 #include "eio_T25.h"
60 #if (EIO_NUMBER_OF_SYSTEMS==1)
61 #if EIO_T2750
62 #define TheIOSystem (&T2750IOSystem_16w)
63 #else
64 #define TheIOSystem (&T25IOSystem_16w)
65 #endif
66 #endif
67 #endif
68 
69 #if (EIO_NUMBER_OF_SYSTEMS!=1)
70 extern EioSystem *TheIOSystem;
71 #endif
72 
73 #endif /* __EIO_H */
Definition: eio_syst.h:52