pci: implement RW1C register framework.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 15 Sep 2010 05:38:15 +0000 (14:38 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 Sep 2010 18:10:20 +0000 (20:10 +0200)
commit9720a12ddfce982826708709b535010dd9ff9547
tree2a11c5a118f98af364360d5795a0ba3cf46b1fa4
parent53be522f09a67b9658eb3a138b63e08eab47e9cc
pci: implement RW1C register framework.

Implement RW1C register framework.
With this patch, it would be easy to implement
W1C(Write 1 to Clear) register by just setting w1cmask.
Later RW1C register will be used by pcie.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c
hw/pci.h