u-boot-brain/include/linux
Ben Gardiner 4ba692fb1e mtd: add an mtd method for get_len_incl_bad()
The logic to 'spread' mtd partitions needs to calculate the length in
the mtd device, including bad blocks.

This patch introduces a new function, mtd_get_len_incl_bad that can
return both the length including bad blocks and whether that length
was truncated on the device. This new function will be used by the
mtdparts spread command later in this series. The definition of the
function is #ifdef'd out in configurations that do not use the new
'mtdparts spread' command.

Signed-off-by: Ben Gardiner<bengardiner@nanometrics.ca>
CC: Scott Wood <scottwood@freescale.com>
2010-10-11 15:11:00 -05:00
..
byteorder Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
mtd mtd: add an mtd method for get_len_incl_bad() 2010-10-11 15:11:00 -05:00
unaligned ARM: Use Linux version for unaligned access code 2009-11-07 15:56:30 -06:00
usb USB-CDC: Fix coding style issues 2010-09-20 21:57:17 +02:00
apm_bios.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
bitops.h Correct ffs/fls regression for PowerPC etc 2009-09-17 22:45:31 +02:00
compiler-gcc.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler-gcc4.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
config.h Initial revision 2000-08-21 15:05:47 +00:00
crc32.h Coding style cleanup, update CHANGELOG. 2008-12-16 01:02:17 +01:00
ctype.h Initial revision 2000-08-21 15:05:47 +00:00
edd.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
err.h Update MTD to that of Linux 2.6.22.1 2008-08-12 11:31:15 -05:00
ioctl.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
ioport.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
list.h Coding style cleanup, update CHANGELOG 2008-09-13 02:23:05 +02:00
lzo.h add lzop decompression support 2009-12-05 01:30:23 +01:00
math64.h UBIFS: Implement read-only UBIFS support in U-Boot 2009-03-20 22:39:15 +01:00
mc146818rtc.h Replace BCD2BIN and BIN2BCD macros with inline functions 2009-08-25 12:57:55 +02:00
mii.h Merge with /home/wd/git/u-boot/custodian/u-boot-avr32; code cleanup. 2007-04-18 16:53:52 +02:00
poison.h update linux/list 2008-08-31 04:24:51 +02:00
posix_types.h Initial revision 2001-04-28 17:59:11 +00:00
rbtree.h Add Red Black Tree support 2008-10-18 21:54:01 +02:00
screen_info.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
stat.h nios2: add struct stat support in linux/stat.h 2010-04-02 12:28:40 -04:00
stddef.h Initial revision 2002-03-31 12:34:56 +00:00
string.h Scheduled for removal: strnicmp() which is unused 2006-05-03 01:00:39 +02:00
time.h Initial revision 2002-03-08 21:31:05 +00:00
types.h UBI: Add basic UBI support to U-Boot (Part 6/8) 2008-11-19 20:34:39 +01:00