libqos/ahci: Functional register helpers
commit4882f359493cd02d7a5caa7b85d2e1bc4b2f8177
authorJohn Snow <jsnow@redhat.com>
Mon, 19 Jan 2015 20:16:00 +0000 (19 15:16 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 14:40:55 +0000 (16 14:40 +0000)
tree3616caabce809895c8caede4342a5ad4781b91b4
parentc12e8293b8ed29d98f9ef563e997c9de8ff10e23
libqos/ahci: Functional register helpers

Introduce a set of "static inline" register helpers that are intended to
replace the current set of macros with more functional versions that are
better suited to inclusion in libqos than porcelain macros.

As a stopgap measure before eliminating the porcelain macros, define them
to use the new functions defined in the ahci.h header.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1421698563-6977-13-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/ahci-test.c
tests/libqos/ahci.h