Go to the documentation of this file.
18 #include <linux/pci.h>
20 #include <linux/swab.h>
25 #define TPCI200_NB_SLOT 0x4
26 #define TPCI200_NB_BAR 0x6
28 #define TPCI200_VENDOR_ID 0x1498
29 #define TPCI200_DEVICE_ID 0x30C8
30 #define TPCI200_SUBVENDOR_ID 0x1498
31 #define TPCI200_SUBDEVICE_ID 0x300A
33 #define TPCI200_CFG_MEM_BAR 0
34 #define TPCI200_IP_INTERFACE_BAR 2
35 #define TPCI200_IO_ID_INT_SPACES_BAR 3
36 #define TPCI200_MEM16_SPACE_BAR 4
37 #define TPCI200_MEM8_SPACE_BAR 5
49 #define TPCI200_IFACE_SIZE 0x100
51 #define TPCI200_IO_SPACE_OFF 0x0000
52 #define TPCI200_IO_SPACE_GAP 0x0100
53 #define TPCI200_IO_SPACE_SIZE 0x0080
54 #define TPCI200_ID_SPACE_OFF 0x0080
55 #define TPCI200_ID_SPACE_GAP 0x0100
56 #define TPCI200_ID_SPACE_SIZE 0x0040
57 #define TPCI200_INT_SPACE_OFF 0x00C0
58 #define TPCI200_INT_SPACE_GAP 0x0100
59 #define TPCI200_INT_SPACE_SIZE 0x0040
60 #define TPCI200_IOIDINT_SIZE 0x0400
62 #define TPCI200_MEM8_GAP 0x00400000
63 #define TPCI200_MEM8_SIZE 0x00400000
64 #define TPCI200_MEM16_GAP 0x00800000
65 #define TPCI200_MEM16_SIZE 0x00800000
68 #define TPCI200_INT0_EN 0x0040
69 #define TPCI200_INT1_EN 0x0080
70 #define TPCI200_INT0_EDGE 0x0010
71 #define TPCI200_INT1_EDGE 0x0020
72 #define TPCI200_ERR_INT_EN 0x0008
73 #define TPCI200_TIME_INT_EN 0x0004
74 #define TPCI200_RECOVER_EN 0x0002
75 #define TPCI200_CLK32 0x0001
78 #define TPCI200_A_RESET 0x0001
79 #define TPCI200_B_RESET 0x0002
80 #define TPCI200_C_RESET 0x0004
81 #define TPCI200_D_RESET 0x0008
84 #define TPCI200_A_TIMEOUT 0x1000
85 #define TPCI200_B_TIMEOUT 0x2000
86 #define TPCI200_C_TIMEOUT 0x4000
87 #define TPCI200_D_TIMEOUT 0x8000
89 #define TPCI200_A_ERROR 0x0100
90 #define TPCI200_B_ERROR 0x0200
91 #define TPCI200_C_ERROR 0x0400
92 #define TPCI200_D_ERROR 0x0800
94 #define TPCI200_A_INT0 0x0001
95 #define TPCI200_A_INT1 0x0002
96 #define TPCI200_B_INT0 0x0004
97 #define TPCI200_B_INT1 0x0008
98 #define TPCI200_C_INT0 0x0010
99 #define TPCI200_C_INT1 0x0020
100 #define TPCI200_D_INT0 0x0040
101 #define TPCI200_D_INT1 0x0080
103 #define TPCI200_SLOT_INT_MASK 0x00FF
106 #define LAS1_DESC 0x2C
107 #define LAS2_DESC 0x30
110 #define LAS_BIT_BIGENDIAN 24
112 #define VME_IOID_SPACE "IOID"
113 #define VME_MEM_SPACE "MEM"