aboutsummaryrefslogtreecommitdiff
path: root/clients
AgeCommit message (Collapse)AuthorFilesLines
2011-12-28Enabled -Wmissing-prototypes and -Wstrict-prototypes CFLAGS and cleaned upThomas Huth3-4/+8
These two compiler flags for additional warnings help to improve the quality of the source code: Removed some unused code and fixed some obvious bugs. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-12-20Fixed assembler constraints for lwbrx and lhbrxThomas Huth1-2/+4
The biosemu on bimini had some problems with newer versions of GCC ... I saw on a couple of websites that for lwbrx and lhbrx, the assembler constraint "Z" should be used instead of "r". This seems to fix the hang.
2011-12-20Added net-snk client-interface moduleThomas Huth4-3/+138
So far the net-snk could only use networking cards that had corresponding drivers in the ROM filesystem. NICs that come with their of FCODE drivers were not supported yet. For these NICs I added now a pseudo-module to the net-snk that is able to use the corresponding device tree nodes via the "read" and "write" functions of the client interface. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-12-20JS2x: Added oco files to be able to built board-js2xThomas Huth1-0/+0
These additional files are necessary to built board-js2x, see the following URL for details: http://www.ibm.com/developerworks/power/pa-slof-js20/
2011-12-20Repeat TFTP read request in case the packet got lost.Thomas Huth1-1/+7
The TFTP downloads failed when the read request packet got lost. This problem is now fixed by retransmitting the read request after a while. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-12-20Silenced some compiler warnings that occur when compiling with prototype checksThomas Huth26-69/+106
The compiler flags -Wmissing-prototypes and -Wstrict-prototypes generally help to write code with proper prototypes. This way one can avoid some ugly bugs because it helps to identify functions that do not have prototypes in headers. It also helps to improve performance since local functions then have to be declared "static", so the compiler can do better optimizations. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-24Support for virtio-net PCI devicesThomas Huth3-17/+19
Added a driver for the "virtio-net" virtualized network devices from KVM/qemu. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-24Check whether local-mac-address property exists before using its valueThomas Huth1-1/+2
Fixed network booting for device tree nodes that do not provide a local-mac-address property by default. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-24Do not disassemble net-snk by defaultThomas Huth1-1/+3
2011-11-17Silenced some compiler warningsThomas Huth1-3/+5
When the biosemu has been enabled, there were some additional compiler warnings showing up which have been silenced now. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-17JS2x: Add some additional delays to takeover client.Thomas Huth2-7/+17
These delays were needed to get the code running on the PowerStation again. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-17JS2x: Fixed takeover code to work with GCC 4.6Thomas Huth2-3/+3
Fixed an "unused-but-set" warning and removed the obsolete "-a32" parameter. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Added PCI DMA functionsThomas Huth2-1/+45
DMA transfers can only happen within a dedicated DMA window, so we need special functions for allocating buffers and for mapping these buffers in and out again. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Removed obsolete types.h header filesThomas Huth12-37/+12
Our "portable" types are defined in stdint.h, so there is no need for the types.h header files anymore. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Cleaned up MakefilesThomas Huth1-4/+4
Replaced "make" by "$(MAKE)" to be able to built in parallel, fixed the indentation of some rules and removed some unused targets. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Fixed get_puid functionThomas Huth1-8/+8
The function for determining the PHB Unit ID had a bug - when translating the address, it used the PCI child node for starting the translation. However, since the PHB Unit ID is bound to the PCI bus root node, we've got to use that node as starting point instead. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Fix compiler warningsThomas Huth1-2/+7
GCC 4.6 complains about unused-but-set variables - which can safely be removed in our cases. Also fixed a strict-aliasing problem in rtas_flash.c of board-js2x. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Fix for 8-byte wide local-mac-address propertiesThomas Huth1-1/+13
The /vdevice/l-lan device tree node from qemu uses a 8-byte wide local-mac-address property instead of a normal 6-byte wide one. According to a comments in the qemu code, this is necessary for backward compatibility with old Linux kernels, so the problem is not going to be fixed on the qemu side and we've got to take care about this in SLOF instead. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Fixed net-snk Makefiles to only re-built client when something has changedThomas Huth3-5/+10
Due to some bad built rules, client has always been linked during each built. This has been fixed now so that it only gets rebuild when something has changed. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Fixed a crash with early debug printf statementsThomas Huth1-6/+10
printf does not work during rtas_init of snk yet, so the code has to use the snk_kernel_interface instead. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Make net-snk and modules relocatable, too.Thomas Huth11-181/+97
Cleaned up the toc-relative assembly of net-snk, fixed the Makefiles, save the modules as ELF files instead of raw binaries, adjust the net-snk base address and the load-base variable... a lot of changes were required to make the net-snk and the snk modules relocatable, too. But now it should be possible to relocate all files so that the firmware also runs with less than 256 MiB RAM. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-10-12Move functions for byte-swapping into common header file.Thomas Huth3-77/+1
The byte-swapping functions were scattered all over the source tree, now they are merged into a new common header file called byteswap.h. Signed-off-by: <thuth@linux.vnet.ibm.com>
2011-03-22Removed superfluous getchar() function.qemu-slof-20110323Thomas Huth1-11/+0
We've got a getchar() function already in our libc, so there is no need to define a second one within the net-snk code itself. Signed-off-by: <thuth@linux.vnet.ibm.com>
2011-03-22Do not override CFLAGS and LDFLAGS from main makefile.Thomas Huth3-21/+3
CFLAGS and LDFLAGS are declared in make.rules already and should not be redefined in sub-folders. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Removed obsolete/unused code.Thomas Huth3-31/+4
Cleaned up some remainders of SNK modules that have never been used in production. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Improved make.rules filesThomas Huth1-27/+3
The make.rules of net-snk now uses the rules of the main make.rules file, too, so that it is not necessary anymore to configure everything twice. Also replaced the non-intuitive NEW_BUILD variable with the simply "V" flag variable, so that you can now type "make V=x" with x being either 0, 1 or 2 for controlling the verbosity level of the build process. Finally I also replaced the "echo -e" constructs with printfs since "echo -e" is not POSIX compliant and and thus does not work other shells than bash. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Initial qemu/KVM board supportBenjamin Herrenschmidt8-30/+51
Added a new board for SLOF running on KVM/qemu. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2010-12-01Initial import of slof-JX-1.7.0-4Benjamin Herrenschmidt91-0/+13351
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>