linuxboot_dma: move common functions in a new header
commit6dfa01437bea02b2e5ae14f9e163e55610ead6fe
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 18 Jan 2019 12:01:40 +0000 (18 13:01 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Feb 2019 15:50:17 +0000 (5 16:50 +0100)
treee871cf713ecb34d1c26b48e3f8bae72cbe285dba
parent526d798435045d74e819700d8c5c64900776b980
linuxboot_dma: move common functions in a new header

In order to allow other option roms to use these common
useful functions and definitions, this patch put them
in two new C header files called optrom.h and
optrom_fw_cfg.h. We also add useful out*() in*()
functions for different size, and new fw_cfg functions
to use when DMA feature is not available.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
pc-bios/optionrom/linuxboot_dma.c
pc-bios/optionrom/optrom.h [new file with mode: 0644]
pc-bios/optionrom/optrom_fw_cfg.h [new file with mode: 0644]