diff options
| author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-05-30 14:45:06 +0200 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-05-30 14:45:06 +0200 | 
| commit | a19b0dd62d7b8efc658fa1aa685ff5665878f3ee (patch) | |
| tree | 1fadf0fb3da83203ba28f209ec99e1b33e03f4d5 /include/ext_common.h | |
| parent | 60985bba58e7695dac1fddae8cdbb62d8cfd1254 (diff) | |
| parent | a71d45d706a5b51c348160163b6c159632273fed (diff) | |
| download | olio-uboot-2014.01-a19b0dd62d7b8efc658fa1aa685ff5665878f3ee.tar.xz olio-uboot-2014.01-a19b0dd62d7b8efc658fa1aa685ff5665878f3ee.zip | |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts:
	common/cmd_fpga.c
	drivers/usb/host/ohci-at91.c
Diffstat (limited to 'include/ext_common.h')
| -rw-r--r-- | include/ext_common.h | 12 | 
1 files changed, 3 insertions, 9 deletions
| diff --git a/include/ext_common.h b/include/ext_common.h index 86373a6e5..78a7808aa 100644 --- a/include/ext_common.h +++ b/include/ext_common.h @@ -34,7 +34,6 @@  #define __EXT_COMMON__  #include <command.h>  #define SECTOR_SIZE		0x200 -#define SECTOR_BITS		9  /* Magic value used to identify an ext2 filesystem.  */  #define	EXT2_MAGIC			0xEF53 @@ -58,18 +57,13 @@  #define FILETYPE_INO_SYMLINK		0120000  #define EXT2_ROOT_INO			2 /* Root inode */ -/* Bits used as offset in sector */ -#define DISK_SECTOR_BITS		9  /* The size of an ext2 block in bytes.  */  #define EXT2_BLOCK_SIZE(data)	   (1 << LOG2_BLOCK_SIZE(data)) -/* Log2 size of ext2 block in 512 blocks.  */ -#define LOG2_EXT2_BLOCK_SIZE(data) (__le32_to_cpu \ -				(data->sblock.log2_block_size) + 1) -  /* Log2 size of ext2 block in bytes.  */ -#define LOG2_BLOCK_SIZE(data)	   (__le32_to_cpu \ -		(data->sblock.log2_block_size) + 10) +#define LOG2_BLOCK_SIZE(data)	   (__le32_to_cpu		   \ +				    (data->sblock.log2_block_size) \ +				    + EXT2_MIN_BLOCK_LOG_SIZE)  #define INODE_SIZE_FILESYSTEM(data)	(__le32_to_cpu \  			(data->sblock.inode_size)) |