2 * libqos fw_cfg support for PC
4 * Copyright IBM, Corp. 2012-2013
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #include "libqos/fw_cfg-pc.h"
17 static void pc_fw_cfg_select(QFWCFG
*fw_cfg
, uint16_t key
)
22 static void pc_fw_cfg_read(QFWCFG
*fw_cfg
, void *data
, size_t len
)
27 for (i
= 0; i
< len
; i
++) {
32 QFWCFG
*pc_fw_cfg_init(void)
34 QFWCFG
*fw_cfg
= g_malloc0(sizeof(*fw_cfg
));
36 fw_cfg
->select
= pc_fw_cfg_select
;
37 fw_cfg
->read
= pc_fw_cfg_read
;