diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-06-26 15:52:22 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-07-18 13:27:47 -0500 |
commit | 26491a388ce69d80c6d7d2b15ddf93d4399f04bc (patch) | |
tree | e63510dc6531157286f601f8d28d59ad955772a3 /tests/libqos/fw_cfg.h | |
parent | f88dc7dd4d5942714672aa293a3357f5c6469568 (diff) |
libqos: Generalize I/O-mapped fw_cfg
Provide a constructor that takes the base address in addition to the
PC-specific one.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-id: 1372254743-15808-12-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'tests/libqos/fw_cfg.h')
-rw-r--r-- | tests/libqos/fw_cfg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libqos/fw_cfg.h b/tests/libqos/fw_cfg.h index 19bb0530e7..61b1548b4e 100644 --- a/tests/libqos/fw_cfg.h +++ b/tests/libqos/fw_cfg.h @@ -33,5 +33,11 @@ uint32_t qfw_cfg_get_u32(QFWCFG *fw_cfg, uint16_t key); uint64_t qfw_cfg_get_u64(QFWCFG *fw_cfg, uint16_t key); QFWCFG *mm_fw_cfg_init(uint64_t base); +QFWCFG *io_fw_cfg_init(uint16_t base); + +static inline QFWCFG *pc_fw_cfg_init(void) +{ + return io_fw_cfg_init(0x510); +} #endif |