xhci: fix port assignment

Port assignment logic was generating negative port number

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Add private HCALL to inform updated RTAS base and entry

This patch adds a private HCALL to inform qemu the updated
rtas-base and rtas-entry address when OS invokes the call
"instantiate-rtas". This is required as qemu allocates the
error reporting structure in RTAS space upon a machine check
exception and hence needs to know the updated RTAS.

Enhancements to qemu to handle the private HCALL, prepare
error log and invoke machine check notification routine
are in a separate patch.

Signed-off-by: Nikunj A. Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Aravinda Prasad <aravinda@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
version: update to 20140827
rtas: Improve error handling in instantiate-rtas

Error handling, even when the call is not implemented,
code was printing failed.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
net-snk: Remoe some now unused "kernel" functions

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
js2x: Fix build

Add a dummy version.c to please the Makefile

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove pci/vio_config gunk

None of that is used anymore

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove snk_kernel_interface and related definitions

None of this if of any use anymore

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove insmod/rmmod

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove module system

It's not used anymore, let's just call directly into the relevant
OF functions. While at it, also make socket() actually return
an fd.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove some unused PCI functions

The read/write_io ones are used by biosemu, though we should
probably fix them to work on qemu platform at some stage.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove unused timer functions

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove redundant prototypes

Those functions are in string.h

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove printk() in favor of printf()

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: use socket descriptor in the network stack

With module layer cleanup, and a fixed socket() call, start using the
fd across the network stack.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Avoid type clash for stdin & stdout

Now that we are using the libc stdio

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Sanitize our .lds file

No need to have a single giant section, break it back up, add
some missing bits, and make sure .opd is separate so that objdump
and gdb can properly reconstitute the dot symbols.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[ do not discard .comment, this is fixed with binutils 2.24]
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
net-snk: Remove custom printf version

In favor of the libc one

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Make call_client_interface() a bit more ABI compliant

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: llfw startup is using the wrong offset to handler

It's loading from handler + 0x160 instead of 0x60. Not a big problem
in practice but should be fixed.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>