author | Patrick Bruenn <p.bruenn@beckhoff.com> |
Tue, 06 May 2014 17:23:33 +0200 | |
branch | stable-1.5 |
changeset 2565 | f7b06b264646 |
parent 2551 | 000da5069f1a |
child 2567 | d70aad2f131f |
permissions | -rw-r--r-- |
2551
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
1 |
/** |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
2 |
Network Driver for Beckhoff CCAT communication controller |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
3 |
Copyright (C) 2014 Beckhoff Automation GmbH |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
4 |
Author: Patrick Bruenn <p.bruenn@beckhoff.com> |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
5 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
6 |
This program is free software; you can redistribute it and/or modify |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
7 |
it under the terms of the GNU General Public License as published by |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
8 |
the Free Software Foundation; either version 2 of the License, or |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
9 |
(at your option) any later version. |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
10 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
11 |
This program is distributed in the hope that it will be useful, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
14 |
GNU General Public License for more details. |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
15 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
16 |
You should have received a copy of the GNU General Public License along |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
17 |
with this program; if not, write to the Free Software Foundation, Inc., |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
18 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
19 |
*/ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
20 |
#ifndef _CCAT_DEFINITIONS_H_ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
21 |
#define _CCAT_DEFINITIONS_H_ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
22 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
23 |
#ifndef WINDOWS |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
24 |
#include <linux/kernel.h> |
2550
7e25950ea941
replace not working symlinks with real copies from the ccat main repository(git)
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2549
diff
changeset
|
25 |
typedef uint8_t BYTE; |
7e25950ea941
replace not working symlinks with real copies from the ccat main repository(git)
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2549
diff
changeset
|
26 |
typedef uint32_t ULONG; |
7e25950ea941
replace not working symlinks with real copies from the ccat main repository(git)
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2549
diff
changeset
|
27 |
typedef uint16_t USHORT; |
7e25950ea941
replace not working symlinks with real copies from the ccat main repository(git)
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2549
diff
changeset
|
28 |
typedef uint8_t UINT8; |
2551
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
29 |
typedef uint16_t UINT16; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
30 |
typedef uint32_t UINT32; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
31 |
typedef uint64_t UINT64; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
32 |
#endif |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
33 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
34 |
#define CCAT_DMA_FRAME_HEADER_LENGTH (196 / 8) // 196 bit |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
35 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
36 |
typedef struct _ETHERNET_ADDRESS |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
37 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
38 |
UINT8 b[6]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
39 |
}ETHERNET_ADDRESS; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
40 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
41 |
typedef enum CCatInfoTypes |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
42 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
43 |
CCATINFO_NOTUSED = 0, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
44 |
CCATINFO_BLOCK = 1, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
45 |
CCATINFO_ETHERCAT_SLAVE = 2, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
46 |
CCATINFO_ETHERCAT_MASTER = 3, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
47 |
CCATINFO_ETHERNET_MAC = 4, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
48 |
CCATINFO_ETHERNET_SWITCH = 5, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
49 |
CCATINFO_SERCOS3 = 6, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
50 |
CCATINFO_PROFIBUS = 7, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
51 |
CCATINFO_CAN_CONTROLLER = 8, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
52 |
CCATINFO_KBUS_MASTER = 9, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
53 |
CCATINFO_IP_LINK = 10, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
54 |
CCATINFO_SPI_MASTER = 11, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
55 |
CCATINFO_I2C_MASTER = 12, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
56 |
CCATINFO_GPIO = 13, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
57 |
CCATINFO_DRIVEIP = 14, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
58 |
CCATINFO_EPCS_PROM = 15, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
59 |
CCATINFO_SYSTIME = 16, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
60 |
CCATINFO_INTCTRL = 17, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
61 |
CCATINFO_EEPROM = 18, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
62 |
CCATINFO_DMA = 19, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
63 |
CCATINFO_ETHERCAT_MASTER_DMA = 20, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
64 |
CCATINFO_ETHERNET_MAC_DMA = 21, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
65 |
CCATINFO_SRAM = 22, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
66 |
CCATINFO_COPY_BLOCK = 23, |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
67 |
CCATINFO_MAX |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
68 |
} _CCatInfoTypes; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
69 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
70 |
typedef struct |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
71 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
72 |
USHORT eCCatInfoType; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
73 |
USHORT nRevision; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
74 |
union |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
75 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
76 |
ULONG nParam; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
77 |
struct |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
78 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
79 |
BYTE nMaxEntries; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
80 |
BYTE compileDay; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
81 |
BYTE compileMonth; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
82 |
BYTE compileYear; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
83 |
}; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
84 |
struct |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
85 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
86 |
BYTE txDmaChn; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
87 |
BYTE rxDmaChn; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
88 |
}; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
89 |
struct |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
90 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
91 |
BYTE nExternalDataSize : 2; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
92 |
BYTE reserved1 : 6; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
93 |
BYTE nRamSize; //size = 2^ramSize |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
94 |
USHORT reserved2; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
95 |
}; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
96 |
}; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
97 |
ULONG nAddr; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
98 |
ULONG nSize; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
99 |
} CCatInfoBlock, *PCCatInfoBlock; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
100 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
101 |
typedef struct _CCatMacRegs |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
102 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
103 |
union |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
104 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
105 |
struct |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
106 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
107 |
UINT8 frameLenErrCnt; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
108 |
UINT8 rxErrCnt; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
109 |
UINT8 crcErrCnt; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
110 |
UINT8 linkLostErrCnt; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
111 |
}; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
112 |
UINT32 errCnt; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
113 |
}; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
114 |
UINT32 reserved1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
115 |
UINT8 dropFrameErrCnt; // 0x08 |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
116 |
UINT8 reserved2[7]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
117 |
UINT32 txFrameCnt; // 0x10 |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
118 |
UINT32 rxFrameCnt; // 0x14 |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
119 |
UINT32 reserved3[2]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
120 |
UINT8 txFifoLevel : 7; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
121 |
UINT8 reserved4 : 1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
122 |
UINT8 reserved5[7]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
123 |
UINT8 txErrMemFull; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
124 |
UINT8 reserved6[7]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
125 |
UINT32 reserved8[18]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
126 |
UINT8 miiConnected; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
127 |
}CCatMacRegs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
128 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
129 |
typedef struct _CCatMii |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
130 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
131 |
USHORT startMiCycle : 1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
132 |
USHORT reserved1 : 6; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
133 |
USHORT cmdErr : 1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
134 |
#define MII_CMD_READ 1 |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
135 |
#define MII_CMD_WRITE 2 |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
136 |
USHORT cmd : 2; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
137 |
USHORT reserved2 : 6; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
138 |
USHORT phyAddr : 5; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
139 |
USHORT reserved3 : 3; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
140 |
USHORT phyReg : 5; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
141 |
USHORT reserved4 : 3; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
142 |
USHORT phyWriteData; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
143 |
USHORT phyReadData; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
144 |
ETHERNET_ADDRESS macAddr; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
145 |
USHORT macFilterEnabled : 1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
146 |
USHORT reserved6 : 7; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
147 |
USHORT linkStatus : 1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
148 |
USHORT reserved7 : 7; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
149 |
ULONG led0; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
150 |
ULONG led1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
151 |
ULONG led2[2]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
152 |
ULONG systimeInsertion[4]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
153 |
ULONG interruptState[2]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
154 |
ULONG interruptMask[2]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
155 |
}CCatMii; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
156 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
157 |
typedef struct _CCatDmaTxFifo |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
158 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
159 |
UINT32 startAddr : 24; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
160 |
UINT32 numQuadWords : 8; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
161 |
UINT32 reserved1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
162 |
UINT8 fifoReset; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
163 |
UINT8 reserved2[7]; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
164 |
}CCatDmaTxFifo; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
165 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
166 |
typedef union _CCatDmaRxActBuf |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
167 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
168 |
struct |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
169 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
170 |
UINT32 startAddr : 24; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
171 |
UINT32 reserved1 : 7; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
172 |
UINT32 nextValid : 1; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
173 |
UINT32 lastAddr : 24; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
174 |
UINT32 reserved2 : 8; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
175 |
UINT32 FifoLevel : 24; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
176 |
UINT32 bufferLevel : 8; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
177 |
UINT32 nextAddr; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
178 |
}; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
179 |
UINT32 rxActBuf; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
180 |
}CCatDmaRxActBuf; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
181 |
|
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
182 |
typedef struct _CCatInfoBlockOffs |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
183 |
{ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
184 |
UINT32 reserved; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
185 |
UINT32 nMMIOffs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
186 |
UINT32 nTxFifoOffs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
187 |
UINT32 nMacRegOffs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
188 |
UINT32 nRxMemOffs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
189 |
UINT32 nTxMemOffs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
190 |
UINT32 nMiscOffs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
191 |
} CCatInfoBlockOffs; |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
192 |
#endif /* #ifndef _CCAT_DEFINITIONS_H_ */ |
000da5069f1a
clean up CCatDefinitions.h
Patrick Bruenn <p.bruenn@beckhoff.com>
parents:
2550
diff
changeset
|
193 |