qemu: add pci_unregister_device (Marcelo Tosatti)
commit5851e08cb8df5c9d0c69fb5259ee6174ee651fae
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 11 Feb 2009 15:21:10 +0000 (11 15:21 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 11 Feb 2009 15:21:10 +0000 (11 15:21 +0000)
tree35056a440556d25ab63bcea3040a177b36f50058
parent51bf9e7e1870996ae7f4741530e6134b485de321
qemu: add pci_unregister_device (Marcelo Tosatti)

Unregister the pci device, unassign its IO and memory regions, and free
associated data.

Add a callback so drivers can free device state.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6603 c046a42c-6fe2-441c-8c8c-71466251a162
hw/pci.c
hw/pci.h