range: add Range structure
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 13 May 2013 14:13:15 +0000 (17:13 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jul 2013 07:40:56 +0000 (10:40 +0300)
commit620ac82eb0fc4218fb6a4937bcef3fdab3126703
treed914935f025c71e8ba2133c07af0a54faf8fbccc
parentab8bf29078e0ab8347e2ff8b4e5542f7a0c751cf
range: add Range structure

Sometimes we need to pass ranges around, add a
handy structure for this purpose.

Note: memory.c defines its own concept of AddrRange structure for
working with 128 addresses.  It's necessary there for doing range math.
This is not needed for most users: struct Range is
much simpler, and is only used for passing the range around.

Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/qemu/range.h