goldfish: add QEMU pipe driver
authorDavid 'Digit' Turner <digit@android.com>
Mon, 21 Jan 2013 23:48:21 +0000 (23:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jan 2013 21:49:34 +0000 (13:49 -0800)
commitc89f2750e9845aa115ca30c062edd569da619cad
treef2a230d581d13a84172cfa42c12130fb76f636b2
parente809c22b8fb0282048fc008cfcdd017186090dbc
goldfish: add QEMU pipe driver

A QEMU pipe is a very fast communication channel between the
guest system and the emulator. Usage from the guest is simply
something like;

  // connect to special device
  fd = open("/dev/qemu_pipe", O_RDWR);

  // tell which service we want to talk to (must be zero-terminated)
  write(fd, "pipeName", strlen("pipeName")+1);

  // do read()/write() through fd now
  ...

  // close channel
  close(fd);

Signed-off-by: David 'Digit' Turner <digit@android.com>
[Added support for parameter buffers for speed]
igned-off-by: Xin, Xiaohui <xiaohui.xin@intel.com>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Nakajima, Jun <jun.nakajima@intel.com>
[Ported to 3.6]
Signed-off-by: Tom Keel <thomas.keel@intel.com>
[Ported to 3.7, moved to platform/goldfish]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/Kconfig
drivers/platform/goldfish/Kconfig [new file with mode: 0644]
drivers/platform/goldfish/Makefile
drivers/platform/goldfish/goldfish_pipe.c [new file with mode: 0644]