aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/epl/EdrvFec.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/epl/EdrvFec.h')
-rw-r--r--drivers/staging/epl/EdrvFec.h24
1 files changed, 6 insertions, 18 deletions
diff --git a/drivers/staging/epl/EdrvFec.h b/drivers/staging/epl/EdrvFec.h
index 2dd737e0de9..5f252fbed74 100644
--- a/drivers/staging/epl/EdrvFec.h
+++ b/drivers/staging/epl/EdrvFec.h
@@ -73,40 +73,32 @@
73#ifndef _EDRVFEC_H_ 73#ifndef _EDRVFEC_H_
74#define _EDRVFEC_H_ 74#define _EDRVFEC_H_
75 75
76
77//--------------------------------------------------------------------------- 76//---------------------------------------------------------------------------
78// const defines 77// const defines
79//--------------------------------------------------------------------------- 78//---------------------------------------------------------------------------
80// do this in config header 79// do this in config header
81#define TARGET_HARDWARE TGTHW_SPLC_CF54 80#define TARGET_HARDWARE TGTHW_SPLC_CF54
82 81
83
84// base addresses 82// base addresses
85#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) 83#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
86 84
87
88#elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485) 85#elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485)
89 86
90
91#else 87#else
92 88
93 #error 'ERROR: Target was never implemented!' 89#error 'ERROR: Target was never implemented!'
94 90
95#endif 91#endif
96 92
97
98
99//--------------------------------------------------------------------------- 93//---------------------------------------------------------------------------
100// types 94// types
101//--------------------------------------------------------------------------- 95//---------------------------------------------------------------------------
102 96
103
104// Rx and Tx buffer descriptor format 97// Rx and Tx buffer descriptor format
105typedef struct 98typedef struct {
106{ 99 WORD m_wStatus; // control / status --- used by edrv, do not change in application
107 WORD m_wStatus; // control / status --- used by edrv, do not change in application 100 WORD m_wLength; // transfer length
108 WORD m_wLength; // transfer length 101 BYTE *m_pbData; // buffer address
109 BYTE * m_pbData; // buffer address
110} tBufferDescr; 102} tBufferDescr;
111 103
112#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) 104#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
@@ -119,8 +111,4 @@ typedef struct
119// function prototypes 111// function prototypes
120//--------------------------------------------------------------------------- 112//---------------------------------------------------------------------------
121 113
122 114#endif // #ifndef _EDRV_FEC_H_
123
124#endif // #ifndef _EDRV_FEC_H_
125
126