]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
fw_cfg: add API for file transfer.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Dec 2009 11:01:10 +0000 (12:01 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 19 Dec 2009 14:26:25 +0000 (08:26 -0600)
commite6ea832410be570d8b6f9ba9285c9fec2174de3a
tree36cfce6e1b503c32283df2eb2d5337e73ebdeee7
parent22d0cc8d380fba2cd101b8d88cd969bdc961d34a
fw_cfg: add API for file transfer.

This patch adds a file transfer interface to fw_cfg.  Intended to be
used for passing non-pci option roms and vgabios to seabios.  Namespace
is modeled after the existing cbfs filesystem support in seabios.

Reading the new FW_CFG_FILE_DIR entry returns a file list.
Fields there are in network byte order (aka bigendian).

aliguori: fix fw_cfg.h for multiboot.bin, add proper fw_cfg.h declarations,
          quiet fprintf() in fw_cfg.c

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit abe147e0ce41c07e789f6627bcb01c905d1f9bbf)
hw/fw_cfg.c
hw/fw_cfg.h