diff options
| author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
|---|---|---|
| committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
| commit | cb5473205206c7f14cbb1e747f28ec75b48826e2 (patch) | |
| tree | 8f4808d60917100b18a10b05230f7638a0a9bbcc /include/net.h | |
| parent | baf449fc5ff96f071bb0e3789fd3265f6d4fd9a0 (diff) | |
| parent | 92c78a3bbcb2ce508b4bf1c4a1e0940406a024bb (diff) | |
| download | olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.tar.xz olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.zip | |
Merge branch 'fixes' into cleanups
Conflicts:
	board/atmel/atngw100/atngw100.c
	board/atmel/atstk1000/atstk1000.c
	cpu/at32ap/at32ap700x/gpio.c
	include/asm-avr32/arch-at32ap700x/clk.h
	include/configs/atngw100.h
	include/configs/atstk1002.h
	include/configs/atstk1003.h
	include/configs/atstk1004.h
	include/configs/atstk1006.h
	include/configs/favr-32-ezkit.h
	include/configs/hammerhead.h
	include/configs/mimc200.h
Diffstat (limited to 'include/net.h')
| -rw-r--r-- | include/net.h | 22 | 
1 files changed, 14 insertions, 8 deletions
| diff --git a/include/net.h b/include/net.h index 79ddfa294..d2d394f0d 100644 --- a/include/net.h +++ b/include/net.h @@ -38,16 +38,16 @@  #define CONFIG_NET_MULTI  #if (CONFIG_ETHER_INDEX == 1)  #define	CONFIG_ETHER_ON_FCC1 -# define CFG_CMXFCR_MASK1	CFG_CMXFCR_MASK -# define CFG_CMXFCR_VALUE1	CFG_CMXFCR_VALUE +# define CONFIG_SYS_CMXFCR_MASK1	CONFIG_SYS_CMXFCR_MASK +# define CONFIG_SYS_CMXFCR_VALUE1	CONFIG_SYS_CMXFCR_VALUE  #elif (CONFIG_ETHER_INDEX == 2)  #define	CONFIG_ETHER_ON_FCC2 -# define CFG_CMXFCR_MASK2	CFG_CMXFCR_MASK -# define CFG_CMXFCR_VALUE2	CFG_CMXFCR_VALUE +# define CONFIG_SYS_CMXFCR_MASK2	CONFIG_SYS_CMXFCR_MASK +# define CONFIG_SYS_CMXFCR_VALUE2	CONFIG_SYS_CMXFCR_VALUE  #elif (CONFIG_ETHER_INDEX == 3)  #define	CONFIG_ETHER_ON_FCC3 -# define CFG_CMXFCR_MASK3	CFG_CMXFCR_MASK -# define CFG_CMXFCR_VALUE3	CFG_CMXFCR_VALUE +# define CONFIG_SYS_CMXFCR_MASK3	CONFIG_SYS_CMXFCR_MASK +# define CONFIG_SYS_CMXFCR_VALUE3	CONFIG_SYS_CMXFCR_VALUE  #endif /* CONFIG_ETHER_INDEX */  #endif /* CONFIG_ETHER_ON_FCC */  #endif /* !CONFIG_NET_MULTI && CONFIG_8260 */ @@ -61,8 +61,8 @@   *   */ -#ifdef CFG_RX_ETH_BUFFER -# define PKTBUFSRX	CFG_RX_ETH_BUFFER +#ifdef CONFIG_SYS_RX_ETH_BUFFER +# define PKTBUFSRX	CONFIG_SYS_RX_ETH_BUFFER  #else  # define PKTBUFSRX	4  #endif @@ -200,6 +200,12 @@ typedef struct {  	ushort		udp_xsum;	/* Checksum			*/  } IP_t; +#define IP_OFFS		0x1fff /* ip offset *= 8 */ +#define IP_FLAGS	0xe000 /* first 3 bits */ +#define IP_FLAGS_RES	0x8000 /* reserved */ +#define IP_FLAGS_DFRAG	0x4000 /* don't fragments */ +#define IP_FLAGS_MFRAG	0x2000 /* more fragments */ +  #define IP_HDR_SIZE_NO_UDP	(sizeof (IP_t) - 8)  #define IP_HDR_SIZE		(sizeof (IP_t)) |