Add pci_unregister_device
commit6a8aff9100ff4ea674ef6878b411e22212f762dd
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Mar 2008 20:12:12 +0000 (11 17:12 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 16 Mar 2008 12:26:52 +0000 (16 14:26 +0200)
treec62ca75a7798052a87f901497d26819491bcce70
parent28c62d2499585731d6df82bc0a121a2129c5a44e
Add pci_unregister_device

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: Avi Kivity <avi@qumranet.com>
hw/pci.c
hw/pci.h