diff options
Diffstat (limited to 'cpu/mpc512x/fec.h')
-rw-r--r-- | cpu/mpc512x/fec.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpu/mpc512x/fec.h b/cpu/mpc512x/fec.h index d2d877aa528..9c385028708 100644 --- a/cpu/mpc512x/fec.h +++ b/cpu/mpc512x/fec.h @@ -164,10 +164,13 @@ typedef enum { #define FEC_RBD_NUM 32 /* The user can adjust this value */ /* packet size limit */ -#define FEC_MAX_PKT_SIZE 1536 +#define FEC_MAX_FRAME_LEN 1522 /* recommended default value */ + +/* Buffer size must be evenly divisible by 16 */ +#define FEC_BUFFER_SIZE ((FEC_MAX_FRAME_LEN + 0x10) & (~0xf)) typedef struct { - uint8 frame[FEC_MAX_PKT_SIZE]; + uint8 frame[FEC_BUFFER_SIZE]; } mpc512x_frame; typedef struct { |