diff options
Diffstat (limited to 'drivers/staging/epl/EdrvFec.h')
-rw-r--r-- | drivers/staging/epl/EdrvFec.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/drivers/staging/epl/EdrvFec.h b/drivers/staging/epl/EdrvFec.h index 2dd737e..5f252fb 100644 --- a/drivers/staging/epl/EdrvFec.h +++ b/drivers/staging/epl/EdrvFec.h @@ -73,40 +73,32 @@ #ifndef _EDRVFEC_H_ #define _EDRVFEC_H_ - //--------------------------------------------------------------------------- // const defines //--------------------------------------------------------------------------- // do this in config header #define TARGET_HARDWARE TGTHW_SPLC_CF54 - // base addresses #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) - #elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485) - #else - #error 'ERROR: Target was never implemented!' +#error 'ERROR: Target was never implemented!' #endif - - //--------------------------------------------------------------------------- // types //--------------------------------------------------------------------------- - // Rx and Tx buffer descriptor format -typedef struct -{ - WORD m_wStatus; // control / status --- used by edrv, do not change in application - WORD m_wLength; // transfer length - BYTE * m_pbData; // buffer address +typedef struct { + WORD m_wStatus; // control / status --- used by edrv, do not change in application + WORD m_wLength; // transfer length + BYTE *m_pbData; // buffer address } tBufferDescr; #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) @@ -119,8 +111,4 @@ typedef struct // function prototypes //--------------------------------------------------------------------------- - - -#endif // #ifndef _EDRV_FEC_H_ - - +#endif // #ifndef _EDRV_FEC_H_ |