summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* fs: fix standard zero, full devicesSascha Hauer2012-07-042-0/+2
| | | | | | | | | | | | | | | | The standard devices are currently broken since they have the size ~0. As now files use loff_t as file size which is a signed type the read implementation gets confused and now returns -1. The current implementation also has the (somewhat theorical) problem that we do not have real streaming devices, so /dev/zero went out of zeroes after reading 4GB (or now LLONG_MAX). This patch introduces a new cdev flag DEVFS_IS_CHARACTER_DEV and a new file size flag FILE_SIZE_STREAM which makes it possible to create real stream devices instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/resource-size'Sascha Hauer2012-07-021-4/+4
|\ | | | | | | | | | | Conflicts: drivers/base/resource.c fs/fs.c
| * resource: store 'end' instead of 'size' in struct resourceSascha Hauer2012-07-011-4/+4
| | | | | | | | | | | | | | | | | | | | Storing the size instead of the resource end in struct resource was a mistake. 'size' ranges from 0 to UINT[32|64]_MAX + 1 which obviously leads to problems. 'end' on the other hand will never exceed UINT[32|64]_MAX. Also this way we can express a iomem region covering the whole address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/poweroff'Sascha Hauer2012-07-021-0/+1
|\ \
| * | add 'poweroff' commandAntony Pavlov2012-06-301-0/+1
| |/ | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mips-clocksource'Sascha Hauer2012-07-022-151/+3
|\ \
| * | clocksource: move the NSEC_PER_SEC constant to common headerAntony Pavlov2012-06-292-0/+4
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | include/linux/time.h: remove dead codeSascha Hauer2012-06-291-152/+0
| |/ | | | | | | | | | | | | | | include/linux/time.h contains several unused functions derived from U-Boot code. Since this is a file under include/linux/ it should contain only code from the kernel, so remove all this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ethernet'Sascha Hauer2012-07-022-4/+8
|\ \
| * | eth: eth MAC addresses are six bytesJohannes Stezenbach2012-06-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Reduce confusion by making clear six bytes are passed, not a string. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | miidev: add support for 1000MbitJohannes Stezenbach2012-06-301-0/+4
| |/ | | | | | | | | Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/size-decrease'Sascha Hauer2012-07-021-3/+0
|\ \
| * | menu: factor out a function to print an entrySascha Hauer2012-06-281-3/+0
| |/ | | | | | | | | | | To save a few bytes of binary space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/net-designware'Sascha Hauer2012-07-021-0/+9
|\ \
| * | drivers/net: add designware driverJohannes Stezenbach2012-06-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Straight forward port of Synopsys Designware ethernet driver from u-boot v2012.04.01. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/watchdog'Sascha Hauer2012-07-021-0/+24
|\ \ \
| * | | Add a simple watchdog frameworkJuergen Beisert2012-06-291-0/+24
| | |/ | |/| | | | | | | | | | | | | | | | | | | This patch adds a simple wd command which can setup, trigger and stop a watchdog on the platform. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/sparse'Sascha Hauer2012-07-023-2/+4
|\ \ \
| * | | define __user emptySascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no seperate user address space, so do not generate sparse warnings for this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Do not use iomem space for dev_get_mem_regionSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It is mostly used for mmapping sdram which is no iomem. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | qsort: declare strcmp_compar publicallySascha Hauer2012-06-301-0/+2
| |/ / | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2012-07-021-1/+1
|\ \ \
| * | | common: fix typo cammand_var_completeSteffen Trumtrar2012-06-301-1/+1
| |/ / | | | | | | | | | | | | | | | | | | Change function name to command_var_complete in all calls and its declaration. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/dma-cache-align'Sascha Hauer2012-07-022-1/+32
|\ \ \
| * | | USB core: device descriptor using dma_allocSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The device descriptor needs to be dma save. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | USB core: allocate setup_packet using dma_allocSascha Hauer2012-06-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The setup packet needs to be dma save. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | blackfin, mips, openrisc, ppc, sandbox, x86: add generic dma_alloc, dma_free ↵Marc Kleine-Budde2012-06-301-0/+30
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inlines Some drivers call dma_inv_range() on buffers, on arm these buffers must be cache line aligned. This patch introduces a generic dma_alloc, dma_free. Archs can implement in their own functions in "asm/dma.h" and add a: #define dma_alloc dma_alloc #define dma_free dma_free On all other archs the generic versions, which translate into xmalloc and free are used. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | partitions: Make 64bit capableSascha Hauer2012-06-302-2/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | make cdev 64bit capableSascha Hauer2012-06-301-5/+5
| | | | | | | | | | | | | | | | | | Next step to 64bit support: Make cdev size a 64bit type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | make st_size in struct stat 64 bitSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | make memory display 64bit capableSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | make parse_area_spec arguments loff_tSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | introduce strtoull_suffix functionSascha Hauer2012-06-301-0/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | use loff_t for file offsetsSascha Hauer2012-06-302-14/+14
| | | | | | | | | | | | | | | | | | | | | This is a first step for 64bit file support: Make the file sizes/offsets 64bit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Change byte order detection mechanism to kernel styleSascha Hauer2012-06-285-19/+42
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux Kernel defines only one of __LITTLE_ENDIAN and __BIG_ENDIAN. Endianess can then be tested with #ifdef __xx_ENDIAN. Userspace always defined both __LITTLE_ENDIAN and __BIG_ENDIAN and byteorder can then be tested with #if __BYTE_ORDER == __xx_ENDIAN. As we tend to use a lot of Kernel code in barebox we switch to use the kernel way of determing the byte order. As this always causes a lot of confusion add a check to include/common.h to make sure only one of __LITTLE_ENDIAN and __BIG_ENDIAN is defined. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / print out resource_size_t correctlySascha Hauer2012-06-251-0/+6
|/ | | | | | | resource_size_t can be 32bit or 64bit depending on the architecture. Add a define for it to be able to printf a resource_size_t correctly Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hostcc tools: include "compiler.h", fix included headersDirk Hörner2012-06-052-1/+3
| | | | | | | | | When barebox headers get included from HOSTCC tools they should not include other architecture specific headers as barebox might get cross-compiled. Instead, the tool itself should include "compiler.h". Signed-off-by: Dirk Hörner <dirker@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: set MAXINTERFACES = 16Antony Pavlov2012-05-291-1/+1
| | | | | | | Tegra2 needs MAXINTERFACES > 8, so increase the macro's value. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* iim: fix compilation when NET is not selectedEric Bénard2012-05-181-1/+6
| | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/magicvar' into nextSascha Hauer2012-05-151-2/+6
|\
| * magicvar: Add magicvar macro with additional name argumentSascha Hauer2012-05-151-2/+6
| | | | | | | | | | | | | | | | Currently magicvar fails on variables containing a '.' because we can't use these as C names. Overcome this by adding a new macro which allows to specify a name seperately. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | add qsort supportSascha Hauer2012-05-141-0/+7
|/ | | | | | | This is based on U-Boot code which in turn is based on uclibc code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* booting: more flexible Linux bootargs generationSascha Hauer2012-05-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | We currently use the environment variable 'bootargs' to get the Linux bootargs. This patch allows for a more flexible bootargs generation using global variables. With it the Linux bootargs are concatenated from multiple variables. This allows to replace parts of the bootargs string without having to reconstruct it completely. With this bootargs can be constructed like: global linux.bootargs.base="console=ttyS0,115200" global linux.bootargs.ip="ip=dhcp" global linux.mtdparts="physmap-flash.0:512K(nor0.barebox),-(root)" This will then automatically be combined into a kernel bootargs string during boot. If the 'linux.bootargs.' variables are all empty the old standard 'bootargs' way will be used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add 'global' commandSascha Hauer2012-05-141-0/+12
| | | | | | | | | | | This implements global shell variable support. This is done by registering a new device named 'global', so global variables are just plain device parameters. Global variables are useful for storing the global state in the environment. Currently we do this by sourcing scripts instead of executing them which is quite limiting. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* linux/types.h: define phys_size_tRenaud Barbier2012-05-131-0/+2
| | | | | | | | Add this definition in preparation for the introduction of the mpc85xx support. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/parameter' into nextSascha Hauer2012-05-131-1/+0
|\
| * parameter: remove unused struct memberSascha Hauer2012-05-131-1/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fix typo funtion -> functionAntony Pavlov2012-05-131-1/+1
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Removed duplicate definition for DEVFS_PARTITION_xxxAlexander Shiyan2012-05-131-3/+0
|/ | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: bootm: add "MIPS barebox" handlerAntony Pavlov2012-05-111-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>