summary refs log tree commit diff stats
path: root/hw/lm32_timer.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-02-07 13:27:27 +0000
committerKevin Wolf <kwolf@redhat.com>2012-02-09 16:17:50 +0100
commit6e4f59bd0d69f0a7aa4010b49a5c49a01987b9d8 (patch)
treecb700373b4032a2fa495234789aa327eba304c51 /hw/lm32_timer.c
parent79c053bde9fa40595670ae274d047da07f1df88c (diff)
downloadfocaccia-qemu-6e4f59bd0d69f0a7aa4010b49a5c49a01987b9d8.tar.gz
focaccia-qemu-6e4f59bd0d69f0a7aa4010b49a5c49a01987b9d8.zip
qed: replace is_write with flags field
Per-request attributes like read/write are currently implemented as bool
fields in the QEDAIOCB struct.  This becomes unwiedly as the number of
attributes grows.  For example, the qed_aio_setup() function would have
to take multiple bool arguments and at call sites it would be hard to
distinguish the meaning of each bool.

Instead use a flags field with bitmask constants.  This will be used
when zero write support is added.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/lm32_timer.c')
0 files changed, 0 insertions, 0 deletions