1 /****************************************************************************
3 (c) SYSTEC electronic GmbH, D-07973 Greiz, August-Bebel-Str. 29
4 www.systec-electronic.com
8 Description: interface for ethernetdriver
9 "fast ethernet controller" (FEC)
10 freescale coldfire MCF528x and compatible FEC
14 Redistribution and use in source and binary forms, with or without
15 modification, are permitted provided that the following conditions
18 1. Redistributions of source code must retain the above copyright
19 notice, this list of conditions and the following disclaimer.
21 2. Redistributions in binary form must reproduce the above copyright
22 notice, this list of conditions and the following disclaimer in the
23 documentation and/or other materials provided with the distribution.
25 3. Neither the name of SYSTEC electronic GmbH nor the names of its
26 contributors may be used to endorse or promote products derived
27 from this software without prior written permission. For written
28 permission, please contact info@systec-electronic.com.
30 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
33 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
34 COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
35 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
36 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
37 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
38 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
39 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
40 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 POSSIBILITY OF SUCH DAMAGE.
45 If a provision of this License is or becomes illegal, invalid or
46 unenforceable in any jurisdiction, that shall not affect:
47 1. the validity or enforceability in that jurisdiction of any other
48 provision of this License; or
49 2. the validity or enforceability in other jurisdictions of that or
50 any other provision of this License.
52 -------------------------------------------------------------------------
54 $RCSfile: EdrvFec.h,v $
58 $Revision: 1.3 $ $Date: 2008/04/17 21:36:32 $
63 Dev C++ and GNU-Compiler for m68k
65 -------------------------------------------------------------------------
69 2005/08/01 m.b.: start of implementation
71 ****************************************************************************/
76 //---------------------------------------------------------------------------
78 //---------------------------------------------------------------------------
79 // do this in config header
80 #define TARGET_HARDWARE TGTHW_SPLC_CF54
83 #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
85 #elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485)
89 #error 'ERROR: Target was never implemented!'
93 //---------------------------------------------------------------------------
95 //---------------------------------------------------------------------------
97 // Rx and Tx buffer descriptor format
99 WORD m_wStatus; // control / status --- used by edrv, do not change in application
100 WORD m_wLength; // transfer length
101 BYTE *m_pbData; // buffer address
104 #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
106 #elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485)
110 //---------------------------------------------------------------------------
111 // function prototypes
112 //---------------------------------------------------------------------------
114 #endif // #ifndef _EDRV_FEC_H_